1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-24 21:21:24 +01:00

Update main file to reflect library changes

This commit is contained in:
David Cutting 2020-05-30 13:06:45 -06:00
parent a33270dff3
commit 1dd214931f

View File

@ -35,6 +35,9 @@ void main_IrqHandler() {
} }
void setup() { void setup() {
mainTrack->hdw.init();
progTrack->hdw.init();
// TimerA is TCC0 on SAMD21, Timer1 on MEGA2560, and Timer1 on MEGA328 // TimerA is TCC0 on SAMD21, Timer1 on MEGA2560, and Timer1 on MEGA328
// We will fire an interrupt every 58us to generate the signal on the track // We will fire an interrupt every 58us to generate the signal on the track
TimerA.initialize(); TimerA.initialize();
@ -53,7 +56,7 @@ void setup() {
EEStore::init(); EEStore::init();
StringParser::init(mainTrack, progTrack); // Set up the string parser to accept commands from the interfaces JMRIParser::init(mainTrack, progTrack); // Set up the string parser to accept commands from the interfaces
CommManager::showInitInfo(); CommManager::showInitInfo();
} }