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.

36 lines
466 B

9 years ago
#include <common.h>
#include "utils/usart.h"
#include "utils/timebase.h"
#include "utils/debounce.h"
9 years ago
#include "init.h"
9 years ago
#include "blink.h"
9 years ago
// called every 1s
void say_hello(void)
{
usart_tx_string(USART3, "HELLO\r\n");
}
9 years ago
/** Called before main() */
void SystemInit(void)
{
init_clock();
init_systick();
9 years ago
init_gpios();
init_usart();
9 years ago
register_periodic_task(green_toggle, 1000);
register_periodic_task(blink_blue, 5000);
9 years ago
}
int main(void)
{
while (1);
9 years ago
}