System Management code

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Files at this revision

API Documentation at this revision

Comitter:
pspatel321
Date:
Sun Nov 16 02:43:58 2014 +0000
Parent:
31:7eaa5e881b56
Child:
33:6bc82b6b62e5
Commit message:
Changed watchdog to 110ms from 250ms. Forgot to change it back.

Changed in this revision

IOobjects/IOobjects.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/IOobjects/IOobjects.cpp	Fri Nov 14 06:05:59 2014 +0000
+++ b/IOobjects/IOobjects.cpp	Sun Nov 16 02:43:58 2014 +0000
@@ -21,7 +21,7 @@
 IMD imd(p1_26);                                      // IMD PWM sense channel to read status and resistance (IMD PWM PIN)
 LatchMonitor AMSlatch(p0_18, p0_22, 15000);          // Supervisor for AMS hardware latch/reset circuit (OK PIN, FAULT PIN, STARTUP DELAY (ms))
 LatchMonitor IMDlatch(p0_17, p0_21, 15000);          // Supervisor for IMD hardware latch/reset circuit (OK PIN, FAULT PIN, STARTUP DELAY (ms))
-MODSERIAL pc(USBTX, USBRX);                          // Serial to computer for diagnostics
+MODSERIAL pc(USBTX, USBRX, 3072, 256);               // Serial to computer for diagnostics, 3kB output buffer, 256 byte input buffer
 Temperature internalTmp(&NXFT15XH103_TABLE, p15);    // Temperature conversion look-up table for internal temperature on the GLV bat charger FET (TABLE PTR, PIN)
 PollSwitch switches(sw, sizeof(sw)/sizeof(sw[0]));   // Shutdown switch sense pins (SWITCH PIN ARRAY, NUM PINS)
 Watchdog wdt(0.25);                                  // Watchdog timer (TIMEOUT (sec))
--- a/main.cpp	Fri Nov 14 06:05:59 2014 +0000
+++ b/main.cpp	Sun Nov 16 02:43:58 2014 +0000
@@ -4,7 +4,7 @@
 #include "serviceCAN.h"
 
 int main() {
-    wdt.kick(0.25);                     // Kick the watchdog timer, set the timeout to 110ms
+    wdt.kick(0.11);                     // Kick the watchdog timer, set the timeout to 110ms
     pc.baud(921600);
     pc.printf("\r\n\r\nSys Mgmt Reset\r\n");
     can.mode(FIFO);                     // Use FIFO mode