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.
 
 
 
 
 

17 lines
470 B

#pragma once
#include <common.h>
/** Global millisecond time base */
extern volatile uint32_t TIME_MS;
/** Millisecond delay */
void delay_ms(uint32_t ms);
/** Second delay */
void delay_s(uint32_t s);
/** Schedule a periodic task (like a cron job). Returns success. */
bool register_periodic_task(void (*callback) (void), uint32_t interval_ms);
/** Schedule a future one-off task. Returns success. */
bool schedule_task(void (*callback)(void), uint32_t delay_ms);