diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2015-09-02 16:52:00 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2015-09-02 16:52:00 +0200 |
commit | 53e92f830110356f853b365041acc972a83faeef (patch) | |
tree | 17e661ee4784d3a866708345ab5186e555fec83a /src/fmc-test | |
parent | 09ef0d0d459f680bdb3510bb03535a389541fe89 (diff) |
Delay FMC startup to not upset the Novena at boot.
For some unknown reason, Novenas seems to not boot unless the
initialization of the FMC interface is delayed for a little while.
Diffstat (limited to 'src/fmc-test')
-rw-r--r-- | src/fmc-test/src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fmc-test/src/main.c b/src/fmc-test/src/main.c index 872c182..69c5bb0 100644 --- a/src/fmc-test/src/main.c +++ b/src/fmc-test/src/main.c @@ -58,6 +58,7 @@ int test_fpga_address_bus(void); int main(void) //------------------------------------------------------------------------------ { + int i; // initialize hal HAL_Init(); @@ -67,6 +68,13 @@ int main(void) // initialize gpio MX_GPIO_Init(); + // Blink blue LED for six seconds to not upset the Novena at boot. + led_on(GPIO_PIN_LED_BLUE); + for (i = 0; i < 12; i++) { + HAL_Delay(500); + led_toggle(GPIO_PIN_LED_BLUE); + } + // initialize rng MX_RNG_Init(); |