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.
Diff: MinimouseSrc/ApiRtc.cpp
- Revision:
- 1:eda561b01daf
- Parent:
- 0:2325d1d28df3
diff -r 2325d1d28df3 -r eda561b01daf MinimouseSrc/ApiRtc.cpp --- a/MinimouseSrc/ApiRtc.cpp Fri Dec 15 13:15:04 2017 +0000 +++ b/MinimouseSrc/ApiRtc.cpp Mon Dec 18 16:31:11 2017 +0000 @@ -181,28 +181,30 @@ NVIC_SetVector(RTC_WKUP_IRQn, (uint32_t)RTC_IRQHandler); NVIC_EnableIRQ(RTC_WKUP_IRQn); myrtc_write ( 0 ); -// __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_EVENT(); + +} + + + + + + + +//void mysleep (int time) +//{ // pcf.printf("status %d\n",HAL_RTCEx_SetWakeUpTimer_IT(&RtcHandle, 10000, 0)); -// HAL_RTCEx_WakeUpTimerIRQHandler(&RtcHandle); -// pcf.printf("rtccounter %d\n",HAL_RTCEx_GetWakeUpTimer(&RtcHandle)); -// wait_ms(100); -// pcf.printf("rtccounter %d\n",HAL_RTCEx_GetWakeUpTimer(&RtcHandle)); -} -void mysleep (int time) -{ - pcf.printf("status %d\n",HAL_RTCEx_SetWakeUpTimer_IT(&RtcHandle, 10000, 0)); - deepsleep(); -} +// deepsleep(); +//} void wait_s ( int t ) { wait(t); } -Timer timerglobal ; -void TimerLoraInit(void){ - timerglobal.start(); -} -int GetTime(void) -{ - return(timerglobal.read_ms()); -} \ No newline at end of file +//Timer timerglobal ; +//void TimerLoraInit(void){ +// timerglobal.start(); +//} +//int GetTime(void) +//{ +// return(timerglobal.read_ms()); +//} \ No newline at end of file