Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: SysMngmt.cpp
- Revision:
- 7:5f6e31faa08e
- Parent:
- 6:6a04210a3f4f
- Child:
- 8:ecf68db484af
diff -r 6a04210a3f4f -r 5f6e31faa08e SysMngmt.cpp
--- a/SysMngmt.cpp Fri Oct 10 20:24:22 2014 +0000
+++ b/SysMngmt.cpp Fri Oct 10 20:59:36 2014 +0000
@@ -18,6 +18,7 @@
#include "Watchdog.cpp"
#include "FanPump.h"
#include "DC_DC.h"
+#include "PollSwitch.h"
//Possible problems in IMD coz change of counter
//Possible problems in BatteryStatus coz change in library
@@ -267,17 +268,20 @@
char sys_src_id = 4; // source address of system management
-Watchdog wdt;
-
int main() {
- CANMessage rx_msg;
+ CANMessage rx_msg;
+ Watchdog wdt;
+
wdt.kick(10.0);
pc1.baud(115200);
FanPump fanPump(&rxBuffer);
DC dc_dc(&fanPump, &rxBuffer);
+ PollSwitch pollSwitch(&rxBuffer);
fanPump.start_update();
+ dc_dc.start_update();
+ pollSwitch.start_update();
while(1)
{
