Bsongis/xlite fixes (#5803)

X-Lite fixes
This commit is contained in:
Bertrand Songis
2018-04-04 23:40:21 +02:00
committed by GitHub
parent fabee0e675
commit ec463819fe
8 changed files with 50 additions and 39 deletions
+6 -6
View File
@@ -39,25 +39,25 @@ void ledInit()
void ledOff()
{
GPIO_ResetBits(LED_RED_GPIO, LED_RED_GPIO_PIN);
GPIO_ResetBits(LED_BLUE_GPIO, LED_BLUE_GPIO_PIN);
GPIO_ResetBits(LED_GREEN_GPIO, LED_GREEN_GPIO_PIN);
GPIO_LED_GPIO_OFF(LED_RED_GPIO, LED_RED_GPIO_PIN);
GPIO_LED_GPIO_OFF(LED_BLUE_GPIO, LED_BLUE_GPIO_PIN);
GPIO_LED_GPIO_OFF(LED_GREEN_GPIO, LED_GREEN_GPIO_PIN);
}
void ledRed()
{
ledOff();
GPIO_SetBits(LED_RED_GPIO, LED_RED_GPIO_PIN);
GPIO_LED_GPIO_ON(LED_RED_GPIO, LED_RED_GPIO_PIN);
}
void ledGreen()
{
ledOff();
GPIO_SetBits(LED_GREEN_GPIO, LED_GREEN_GPIO_PIN);
GPIO_LED_GPIO_ON(LED_GREEN_GPIO, LED_GREEN_GPIO_PIN);
}
void ledBlue()
{
ledOff();
GPIO_SetBits(LED_BLUE_GPIO, LED_BLUE_GPIO_PIN);
GPIO_LED_GPIO_ON(LED_BLUE_GPIO, LED_BLUE_GPIO_PIN);
}