mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
[X9D+ 2019] Red led fix
This commit is contained in:
parent
177b372a2b
commit
01e312a8d4
2 changed files with 7 additions and 7 deletions
|
@ -867,10 +867,10 @@
|
||||||
|
|
||||||
#if defined(PCBX9DP) && PCBREV >= 2019
|
#if defined(PCBX9DP) && PCBREV >= 2019
|
||||||
#define STATUS_LEDS
|
#define STATUS_LEDS
|
||||||
#define GPIO_LED_GPIO_ON GPIO_SetBits
|
#define GPIO_LED_GPIO_ON GPIO_ResetBits
|
||||||
#define GPIO_LED_GPIO_OFF GPIO_ResetBits
|
#define GPIO_LED_GPIO_OFF GPIO_SetBits
|
||||||
#define LED_GREEN_GPIO GPIOA
|
#define LED_RED_GPIO GPIOA
|
||||||
#define LED_GREEN_GPIO_PIN GPIO_Pin_13 // PA.13
|
#define LED_RED_GPIO_PIN GPIO_Pin_13 // PA.13
|
||||||
#elif defined(PCBXLITE)
|
#elif defined(PCBXLITE)
|
||||||
#define STATUS_LEDS
|
#define STATUS_LEDS
|
||||||
#define GPIO_LED_GPIO_ON GPIO_ResetBits
|
#define GPIO_LED_GPIO_ON GPIO_ResetBits
|
||||||
|
|
|
@ -59,24 +59,24 @@ void ledOff()
|
||||||
|
|
||||||
void ledRed()
|
void ledRed()
|
||||||
{
|
{
|
||||||
#if defined(LED_RED_GPIO)
|
|
||||||
ledOff();
|
ledOff();
|
||||||
|
#if defined(LED_RED_GPIO)
|
||||||
GPIO_LED_GPIO_ON(LED_RED_GPIO, LED_RED_GPIO_PIN);
|
GPIO_LED_GPIO_ON(LED_RED_GPIO, LED_RED_GPIO_PIN);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ledGreen()
|
void ledGreen()
|
||||||
{
|
{
|
||||||
#if defined(LED_GREEN_GPIO)
|
|
||||||
ledOff();
|
ledOff();
|
||||||
|
#if defined(LED_GREEN_GPIO)
|
||||||
GPIO_LED_GPIO_ON(LED_GREEN_GPIO, LED_GREEN_GPIO_PIN);
|
GPIO_LED_GPIO_ON(LED_GREEN_GPIO, LED_GREEN_GPIO_PIN);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ledBlue()
|
void ledBlue()
|
||||||
{
|
{
|
||||||
#if defined(LED_BLUE_GPIO)
|
|
||||||
ledOff();
|
ledOff();
|
||||||
|
#if defined(LED_BLUE_GPIO)
|
||||||
GPIO_LED_GPIO_ON(LED_BLUE_GPIO, LED_BLUE_GPIO_PIN);
|
GPIO_LED_GPIO_ON(LED_BLUE_GPIO, LED_BLUE_GPIO_PIN);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue