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.
 
 
 
 
 

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