[nps] fix time: initialize sys_time by adding missing PERIPHERALS_AUTO_INIT

This commit is contained in:
Felix Ruess
2013-02-27 21:44:35 +01:00
parent 9d82064b47
commit 7ce7fc917a
3 changed files with 4 additions and 1 deletions
@@ -57,7 +57,7 @@ nps.srcs += $(NPSDIR)/nps_main.c \
nps.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
nps.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG) -DPERIPHERALS_AUTO_INIT
nps.srcs += firmwares/rotorcraft/main.c
nps.srcs += mcu.c
+2
View File
@@ -141,6 +141,8 @@ void mcu_init(void) {
#ifdef USE_DAC
dac_init();
#endif
#else
#pragma message "Info: Not auto-initializing mcu peripherals including sys_time"
#endif /* PERIPHERALS_AUTO_INIT */
}
+1
View File
@@ -122,6 +122,7 @@ static void nps_main_init(void) {
nps_ivy_init(nps_main.ivy_bus);
nps_fdm_init(SIM_DT);
nps_sensors_init(nps_main.sim_time);
printf("Simulating with dt of %f\n", SIM_DT);
enum NpsRadioControlType rc_type;
char* rc_dev = NULL;