Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Diff: main.cpp
- Revision:
- 3:28336c2e94e4
- Parent:
- 2:ea883307d02f
- Child:
- 4:1f8e079924ba
--- a/main.cpp Wed Aug 22 13:27:34 2012 +0000 +++ b/main.cpp Thu Aug 23 13:32:32 2012 +0000 @@ -10,7 +10,7 @@ #include "rtos.h" #include "VodafoneUSBModem.h" #include "VodafoneTestCase.h" -#include "ExampleTest.h" +#include "Tests.h" #include "TestManager.h" DigitalOut led1(LED1); @@ -32,12 +32,32 @@ } } +time_t startTime = 0; + +void setTime() { + struct tm t; + t.tm_year = 2012; + t.tm_mon = 8; + t.tm_mday = 23; + t.tm_hour = 9; + t.tm_min = 19; + t.tm_sec = 0; + t.tm_year -= 1900; + t.tm_mon -= 1; + set_time(mktime(&t)); +} + int main() { DBG_INIT(); DBG_SET_SPEED(115200); DBG_SET_NEWLINE("\r\n"); + //setTime(); + size_t currentTime = time(NULL); + fprintf(stdout,"Invocation time: %s\r\n",ctime(¤tTime)); + + Thread testTask(test, NULL, osPriorityNormal, 1024 * 5); // this thread just waits and blinks leds periodically while(1) {