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.
 
 
 
 
 

20 lines
362 B

#pragma once
#include "common.h"
// don't forget to implement the handler:
// void SysTick_Handler(void)
/**
* Set up and start systick
* @param prescaller divider (eg. for 1ms @ 16MHz: 16000)
*/
void systick_setup(uint32_t prescaller);
/** Enable (start) systick */
void systick_enable(void);
/** Disable (stop) systick */
void systick_disable(void);