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: mbed-STM32F103C8T6 mbed
Fork of STM32F103C8T6_GPRS_TCP by
main.cpp
00001 #include "stm32f103c8t6.h" 00002 #include "mbed.h" 00003 #include "Time.h" 00004 00005 00006 Serial pc(PA_2, PA_3); 00007 DigitalOut myled(LED1); 00008 00009 00010 int main() 00011 { 00012 confSysClock(); 00013 myled = 0; // turn the LED on 00014 wait_ms(200); // 200 millisecond 00015 myled = 1; // turn the LED off 00016 wait_ms(1000); // 1000 millisecond 00017 pc.printf("Blink\r\n"); 00018 char DATE[12]={'\0'}; 00019 char TIME[10]={'\0'}; 00020 00021 int success=iSetTerminalTime("14072018101113"); 00022 00023 if(success==0) 00024 pc.printf(" Time Set Successfull\r\n"); 00025 else 00026 pc.printf(" Unable to set terminal time \r\n"); 00027 00028 while(success==0) 00029 { 00030 Get_Date_Time(DATE,TIME); 00031 pc.printf("Date : %s\r\n",DATE); 00032 pc.printf("Time : %s\r\n",TIME); 00033 } 00034 00035 } 00036 00037 00038 00039 00040 00041 00042 00043
Generated on Tue Jul 12 2022 20:19:22 by
1.7.2
