diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,7 @@ #include "stm32.h" #include "interrupt.h" #include "thread.h" +#include "time.h" #include "ppmsum.h" #include "i2c.h" @@ -69,6 +70,9 @@ uint32_t thstack[1024]; Thread thread(thstack, sizeof(thstack), threadmain); int main() { + // Initialize system timer. + Time::init(); + RCC.enable(RCC.AFIO); RCC.enable(RCC.IOPA); RCC.enable(RCC.IOPB); |