diff options
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/time.h | 11 | ||||
-rw-r--r-- | wirish/wirish.c | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/wirish/time.h b/wirish/time.h index c925f74..8d3d074 100644 --- a/wirish/time.h +++ b/wirish/time.h @@ -30,17 +30,16 @@ #ifndef _TIME_H #define _TIME_H -#ifdef __cplusplus -extern "C"{ -#endif - +#include "libmaple.h" #include "nvic.h" #include "systick.h" #include "boards.h" -#define US_PER_MS 1000 +#ifdef __cplusplus +extern "C"{ +#endif -extern volatile uint32 systick_timer_millis; +#define US_PER_MS 1000 /** * Returns time (in milliseconds) since the beginning of program diff --git a/wirish/wirish.c b/wirish/wirish.c index db38050..5935f95 100644 --- a/wirish/wirish.c +++ b/wirish/wirish.c @@ -54,7 +54,7 @@ void init(void) { #if NR_DAC_PINS > 0 dac_init(); #endif - + /* initialize clocks */ rcc_clk_init(RCC_CLKSRC_PLL, RCC_PLLSRC_HSE, RCC_PLLMUL_9); rcc_set_prescaler(RCC_PRESCALER_AHB, RCC_AHB_SYSCLK_DIV_1); |