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: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
gravarRelogio.cpp
00001 #include "appCommands.h" 00002 00003 void cmdGravarRelogio(char * dados, unsigned char tamanhoDados) { 00004 unsigned int seconds = (dados[3] << 24) + (dados[2] << 16) + (dados[1] << 8) + dados[0]; 00005 DEBUG(printf("[CLK] Setting time to %d\r\n", seconds)); 00006 set_time(seconds); 00007 time_t t = time(NULL); 00008 DEBUG(printf("[CLK] Current time = %d, %s\r\n", t, ctime(&t))); 00009 exec.enviaResposta(RESP_GRAVAR_RELOGIO, (char*) &t, 4); 00010 }
Generated on Thu Jul 14 2022 00:24:57 by
1.7.2
