You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
459 B
22 lines
459 B
#include "blink.h"
|
|
|
|
#include "utils/timebase.h"
|
|
|
|
void green_toggle(void) { GPIOC_ODR ^= BIT9; }
|
|
void green_off(void) { GPIOC_ODR &= ~BIT9; }
|
|
void green_on(void) { GPIOC_ODR |= BIT9; }
|
|
void blue_toggle(void) { GPIOC_ODR ^= BIT8; }
|
|
void blue_on(void) { GPIOC_ODR |= BIT8; }
|
|
void blue_off(void) { GPIOC_ODR &= ~BIT8; }
|
|
|
|
void blink_green(void)
|
|
{
|
|
green_on();
|
|
schedule_task(green_off, 250);
|
|
}
|
|
|
|
void blink_blue(void)
|
|
{
|
|
blue_on();
|
|
schedule_task(blue_off, 250);
|
|
}
|
|
|