use mbed-src latest version and everything works well. RTC is also fine.
Dependencies: L3GD20 LIS3DH TextLCD mbed-rtos mbed
Use standard library mbed & mbed-rtos (GR-PEACH can run without mbed-src and special mbed-rtos).
Revision 9:de986e74bd93, committed 2015-02-12
- Comitter:
- kenjiArai
- Date:
- Thu Feb 12 07:53:25 2015 +0000
- Parent:
- 8:4006b111c0d4
- Commit message:
- use standard library mbed & mbed-rtos
Changed in this revision
--- a/main.cpp Sat Feb 07 21:25:10 2015 +0000 +++ b/main.cpp Thu Feb 12 07:53:25 2015 +0000 @@ -156,11 +156,11 @@ void watch_time (void const *args) { uint32_t i = 0; - struct tm t; time_t seconds; char buf[64]; +#if 0 + struct tm t; -#if 1 t.tm_year = 15 + 100; t.tm_mon = 2 - 1; t.tm_mday = 7;
--- a/mbed-rtos-v60-pre.lib Sat Feb 07 21:25:10 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://developer.mbed.org/teams/GR-PEACH_producer_meeting/code/mbed-rtos-v60-pre/#72154779aa27
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Thu Feb 12 07:53:25 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-rtos/#ab4200083b07
--- a/mbed-src.lib Sat Feb 07 21:25:10 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed-src/#12a9a5f8fea0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Feb 12 07:53:25 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e188a91d3eaa \ No newline at end of file
--- a/mon.cpp Sat Feb 07 21:25:10 2015 +0000 +++ b/mon.cpp Thu Feb 12 07:53:25 2015 +0000 @@ -266,7 +266,7 @@ // check and set RTC //--------------------------------------------------------------------------------------------- case 'r' : - put_r(); + put_r(); while(true) { show_flag1 = 1; if ( READABLE() ) { @@ -284,23 +284,6 @@ msg_hlp(); break; //--------------------------------------------------------------------------------------------- - // Go to special command - //--------------------------------------------------------------------------------------------- - case 'x' : -#if defined(TARGET_RZ_A1H) - PRINTF("Not implement yet\r\n"); -#elif defined(TARGET_LPC1114) - PRINTF("Not implement yet\r\n"); -#elif defined(TARGET_NUCLEO_F411RE) || defined(TARGET_STM32F401RE) - PRINTF("Not implement yet\r\n"); -#elif defined(TARGET_LPC1768) - PRINTF("Not implement yet\r\n"); -#elif defined(TARGET_K64F) - PRINTF("Not implement yet\r\n"); -#endif - PRINTF("->Came back monitor\r\n"); - break; - //--------------------------------------------------------------------------------------------- // Go back to main() //--------------------------------------------------------------------------------------------- case 'q' : // Quit