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: FreescaleIAP mbed-rtos mbed
Fork of RAJANGAM_REVIEW_BAE_CODE by
Diff: EPS.cpp
- Revision:
- 77:6a5f6e1c7a35
- Parent:
- 76:293693fb7949
- Child:
- 79:bc093fd525d7
diff -r 293693fb7949 -r 6a5f6e1c7a35 EPS.cpp
--- a/EPS.cpp Sat Dec 10 11:28:22 2016 +0000
+++ b/EPS.cpp Sat Dec 10 13:25:06 2016 +0000
@@ -162,7 +162,8 @@
//eps cdms fault
extern uint8_t CDMS_SW_STATUS;
extern DigitalIn CDMS_OC_FAULT;
-extern bool CDMS_SW_ENABLE; //Temp name for CDMS_RESET pin
+extern DigitalOut CDMS_RESET; // CDMS RESET
+//extern bool CDMS_SW_ENABLE; //Temp name for CDMS_RESET pin
extern int CDMS_FAULT_COUNTER;
extern uint8_t EPS_BTRY_HTR_AUTO;
@@ -259,7 +260,7 @@
else
{
if(CDMS_SW_STATUS == 0b10) //changed 0b10) //powered off and oc fault
- CDMS_SW_ENABLE = 1; //Temp name
+ CDMS_RESET = 1;
if(CDMS_OC_FAULT == 1) //changed
{
CDMS_FAULT_COUNTER = 0; //Temp name
@@ -272,7 +273,7 @@
CDMS_SW_STATUS = 0b11; //changed->0b11; //powered on and oc fault
else
{
- CDMS_SW_ENABLE = 0; //Temp name //power OFF switch
+ CDMS_RESET = 0; //power OFF switch
CDMS_SW_STATUS = 0b10; //chaged->0b10; //powered off and oc fault
}
}
