From d25f3883bc1c2ac72082a60f423ffa6590bc4915 Mon Sep 17 00:00:00 2001 From: Richard Meadows Date: Mon, 30 Nov 2015 18:23:59 +0000 Subject: [PATCH] Add some watchdog kicks during startup microsecond timer is still TODO --- firmware/src/init.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/firmware/src/init.c b/firmware/src/init.c index db4219b..6e664e2 100644 --- a/firmware/src/init.c +++ b/firmware/src/init.c @@ -117,12 +117,11 @@ void init(enum init_type init_t) * --------------------------------------------------------------------------- */ - /* Memory */ - init_memory(); - /* i2c */ i2c_init(I2C_SERCOM, I2C_SERCOM_SDA_PINMUX, I2C_SERCOM_SCL_PINMUX); + kick_the_watchdog(); + /* barometer */ barometer_init(); @@ -131,12 +130,14 @@ void init(enum init_type init_t) telemetry_init(); /* We need to wait for the GPS 32kHz clock to start (~300ms). TODO: more robust method for this */ - for (int i = 0; i < 1*1000*1000; i++); + for (int i = 0; i < 300*1000; i++); /* GPS init */ gps_init(); } + kick_the_watchdog(); + /* Initialise Si4060 interface */ si_trx_init(); }