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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/main.cpp
- Revision:
- 59:c68c5bc9d077
- Parent:
- 58:a4422d19b2ea
- Child:
- 60:96e17fb215a6
--- a/src/main.cpp Wed Sep 14 18:54:23 2016 +0000 +++ b/src/main.cpp Wed Sep 14 22:26:43 2016 +0000 @@ -17,6 +17,7 @@ #include "ControlTask.h" #include "OutputTask.h" #include "CloudDataHandler.h" +#include "rtc.h" // main thread identifier (for signaling) osThreadId mainThreadId = NULL; @@ -57,6 +58,10 @@ *****************************************************************************/ static void banner( void ) { + int iyr=0, imo=0, idy=0, ihr=0, imn=0, isc=0; + + rtc_get_time(&iyr, &imo, &idy, &ihr, &imn, &isc); + printf("\n\n\r\nWelcome to Project: ICE v0.0.35\n"); printf("\rThe Intelligent Connected Experience\n"); printf("\rCopyright 2016 Nalco Water, an Ecolab Company\n"); @@ -67,6 +72,8 @@ printf("\r\t | | | | | __| \n"); printf("\r\t _| |_ | |____ | |____ \n"); printf("\r\t |_____| \\_____| |______|\n"); + + printf("\r\nCurrent time is: %04d-%02d-%02d %02d:%02d:%02d\r\n", iyr, imo, idy, ihr, imn, isc); printf("\r\n\r\n\r\r\n"); } @@ -87,6 +94,8 @@ mDotRadioInit( dot ); i2c = &i2c_instance; + + rtc_init(); // for signaling from the configuration handler mainThreadId = osThreadGetId();