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 workinQM_5thJan_azad by
Diff: main.cpp
- Revision:
- 47:d59ba66229ce
- Parent:
- 39:670133e7ffd8
- Child:
- 48:9fd15e3e0b53
--- a/main.cpp Tue Jul 05 13:44:15 2016 +0000 +++ b/main.cpp Thu Jul 07 14:34:00 2016 +0000 @@ -5,8 +5,8 @@ #include "EPS.h" #include "BCN.h" #include "TCTM.h" -#define tm_len 135 -#define tc_len 134 +#define tm_len 134 +#define tc_len 135 #define batt_heat_low 20 #define print 1 #define PRINT2 1 @@ -314,8 +314,8 @@ bool if2check = 0; //ASSIGNING PINS// -DigitalInOut ATS1_SW_ENABLE(PTC0); // enable of att sens2 switch -DigitalInOut ATS2_SW_ENABLE(PTC16); // enable of att sens switch +DigitalOut ATS1_SW_ENABLE(PTC0); // enable of att sens2 switch +DigitalOut ATS2_SW_ENABLE(PTC16); // enable of att sens switch InterruptIn irpt_4m_mstr(PIN38); //I2c interrupt from CDMS DigitalOut irpt_2_mstr(PIN4); //I2C interrupt to CDMS I2CSlave slave (PIN1,PIN2);///pin1 pin2 @@ -336,7 +336,7 @@ DigitalInOut DRV_Z_EN(PIN88); //Sleep pin of driver z DigitalInOut TRZ_SW(PIN40); //TR Z Switch DigitalOut CDMS_RESET(PIN7,1); // CDMS RESET -DigitalInOut BCN_SW(PIN14); //Beacon switch +DigitalOut BCN_SW(PIN14,0); //Beacon switch DigitalInOut DRV_XY_EN(PIN82);