1.1 --- a/stage2/stage2.c Tue Feb 23 22:51:36 2016 +0100
1.2 +++ b/stage2/stage2.c Tue Feb 23 23:22:30 2016 +0100
1.3 @@ -2,7 +2,7 @@
1.4 * Ben NanoNote stage 2 payload test.
1.5 *
1.6 * Copyright (C) Wolfgang Spraul <wolfgang@sharism.cc>
1.7 - * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software: you can redistribute it and/or modify
1.11 * it under the terms of the GNU General Public License as published by
1.12 @@ -34,13 +34,19 @@
1.13 /* The actual work. */
1.14
1.15 started = is_started();
1.16 - if (!started) {
1.17 +
1.18 + if (!started)
1.19 + {
1.20 gpio_init2();
1.21 cpm_init();
1.22 rtc_init();
1.23 timer_init();
1.24 }
1.25 +
1.26 lcd_init();
1.27 irq_init();
1.28 +
1.29 start_task();
1.30 +
1.31 + while (1) asm volatile("wait");
1.32 }