mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
use new sys_time for rotorcrafts on stm32
SYS_TIME_RESOLUTION is now in seconds renamed tics to ticks renamed SYS_TIME_TICS to CPU_TICKS
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "mcu.h"
|
||||
|
||||
#ifdef PERIPHERALS_AUTO_INIT
|
||||
#include "mcu_periph/sys_time.h"
|
||||
#ifdef USE_LED
|
||||
#include "led.h"
|
||||
#endif
|
||||
@@ -58,6 +59,7 @@ void mcu_init(void) {
|
||||
mcu_arch_init();
|
||||
|
||||
#ifdef PERIPHERALS_AUTO_INIT
|
||||
sys_time_init();
|
||||
#ifdef USE_LED
|
||||
led_init();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user