summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2015-09-02 16:52:00 +0200
committerFredrik Thulin <fredrik@thulin.net>2015-09-02 16:52:00 +0200
commit53e92f830110356f853b365041acc972a83faeef (patch)
tree17e661ee4784d3a866708345ab5186e555fec83a
parent09ef0d0d459f680bdb3510bb03535a389541fe89 (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.
-rw-r--r--src/fmc-test/src/main.c8
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();