X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fclock_stm32.c;h=c1db8b6b1d18621fbbc688059930f2dcc190be04;hb=8016ea0a758a96d75ee7d64c773990b38d94fa8e;hp=c225da8d767175e702764e1ca7ce03485db7839d;hpb=452d25b78e551f18eb70bff8c9b764630cbc5161;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/clock_stm32.c b/bertos/cpu/cortex-m3/drv/clock_stm32.c index c225da8d..c1db8b6b 100644 --- a/bertos/cpu/cortex-m3/drv/clock_stm32.c +++ b/bertos/cpu/cortex-m3/drv/clock_stm32.c @@ -35,10 +35,12 @@ * \author Andrea Righi */ +#include "clock_stm32.h" + #include #include + #include -#include "clock_stm32.h" struct RCC *RCC; @@ -66,7 +68,7 @@ INLINE int rcc_get_flag_status(uint32_t flag) INLINE uint16_t pll_clock(void) { - int div, mul; + unsigned int div, mul; /* Hopefully this is evaluate at compile time... */ for (div = 2; div; div--)