Andrew Boyson / lpc1768

Dependents:   test-lpc1768 oldheating gps motorhome ... more

Committer:
andrewboyson
Date:
Mon May 27 10:11:37 2019 +0000
Revision:
51:fb18aa3ec115
Parent:
49:d056e2c5c4ee
Child:
52:88d594aca377
Brought in the timer, random and scan modules as they fit better here.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 28:00c3324e2434 1 #include "system.h"
andrewboyson 28:00c3324e2434 2 #include "led.h"
andrewboyson 49:d056e2c5c4ee 3 #include "reset.h"
andrewboyson 28:00c3324e2434 4 #include "firmware.h"
andrewboyson 48:9784768cdc6c 5 #include "lpc1768-this.h"
andrewboyson 51:fb18aa3ec115 6 #include "rtc.h"
andrewboyson 51:fb18aa3ec115 7 #include "hrtimer.h"
andrewboyson 51:fb18aa3ec115 8 #include "random.h"
andrewboyson 51:fb18aa3ec115 9 #include "mstimer.h"
andrewboyson 51:fb18aa3ec115 10 #include "scan.h"
andrewboyson 28:00c3324e2434 11
andrewboyson 48:9784768cdc6c 12 void Lpc1768Init()
andrewboyson 48:9784768cdc6c 13 {
andrewboyson 48:9784768cdc6c 14 SystemInit();
andrewboyson 48:9784768cdc6c 15 LedInit();
andrewboyson 49:d056e2c5c4ee 16 ResetInit();
andrewboyson 48:9784768cdc6c 17 Lpc1768ThisInit();
andrewboyson 51:fb18aa3ec115 18 RtcInit();
andrewboyson 51:fb18aa3ec115 19 HrTimerInit();
andrewboyson 48:9784768cdc6c 20 }
andrewboyson 28:00c3324e2434 21 void Lpc1768Main()
andrewboyson 28:00c3324e2434 22 {
andrewboyson 49:d056e2c5c4ee 23 ResetMain();
andrewboyson 48:9784768cdc6c 24 FirmwareMain();
andrewboyson 48:9784768cdc6c 25 Lpc1768ThisMain();
andrewboyson 51:fb18aa3ec115 26 RandomMain();
andrewboyson 51:fb18aa3ec115 27 MsTimerMain();
andrewboyson 51:fb18aa3ec115 28 ScanMain();
andrewboyson 28:00c3324e2434 29 }