[X9D+ 2019] Red led fix
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user