@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user