The field version of the solarnano grid on the ionQubes
Fork of SolarNanoGridv3 by
Diff: Locker/Locker.h
- Revision:
- 9:541c2ae1cfec
- Parent:
- 5:57b06b4b47c6
- Child:
- 10:30c9e8df0032
--- a/Locker/Locker.h Fri Jun 03 13:24:20 2016 +0000 +++ b/Locker/Locker.h Fri Jun 03 13:43:11 2016 +0000 @@ -80,9 +80,9 @@ // * Protected interrupts: * // ********************* - InterruptIn* button=NULL; - Ticker* rxWatch=NULL; - Ticker* oneSecond=NULL; + InterruptIn* button; + Ticker* rxWatch; + Ticker* oneSecond; // ********************** // * Protected variables: * // ********************** @@ -90,37 +90,37 @@ /** * Open channel address of the locker */ - long long openAddr=0; + long long openAddr; /** * Channel address for Utility */ - long long addrUtil=0; + long long addrUtil; /** * Array of battery states */ - char* battIn=NULL; // array of all battery states - char* battPipes=NULL; // array of RX pipes + char* battIn; // array of all battery states + char* battPipes; // array of RX pipes char* dirNames[4]; char* fileNames[4]; unsigned int lengthFile[4]; - char* temp=NULL; - char* sdBuffer=NULL; - unsigned int sdBuffPnt=0; - int battQP=0; // Battery queue pointer - int pipeQP=0; // pipe q pointer (Add 2) - int pipe = 0; - int width = 0; + char* temp; + char* sdBuffer; + unsigned int sdBuffPnt; + int battQP; // Battery queue pointer + int pipeQP; // pipe q pointer (Add 2) + int pipe; + int width; - char *timeValue=NULL; + char *timeValue; - volatile time_t now=0; - volatile time_t lastRxTme=0; + volatile time_t now; + volatile time_t lastRxTme; // flags - volatile bool flagRotate=false; - volatile char flagNrf=0; - volatile char flagOneSecond=0; + volatile bool flagRotate; + volatile char flagNrf; + volatile char flagOneSecond; // ********************** // * Protected functions: *