Basic vanilla C boilerplate for STM32L100xC (Discovery L100C). Uses GCC. This was some class project without much practical use
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.

23 lines
459 B

9 years ago
#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 green_blink(void)
9 years ago
{
green_on();
schedule_task(green_off, 100);
9 years ago
}
void blue_blink(void)
9 years ago
{
blue_on();
schedule_task(blue_off, 100);
9 years ago
}