This is a RTC additional function. This is only for Nucleo F401RE & F411RE mbed(Added L152RE, F334R8, L476RG & F746xx). If you connected battery backup circuit for internal RTC, you can make a power-off and reset condition. RTC still has proper time and date.
Dependents: Nucleo_rtos_sample PB_Emma_Ethernet
Please refer following NOTE information.
/users/kenjiArai/notebook/nucleo-series-rtc-control-under-power-onoff-and-re/
modify_info_L152.h@2:765470eab2a6, 2015-02-16 (annotated)
- Committer:
- kenjiArai
- Date:
- Mon Feb 16 12:33:22 2015 +0000
- Revision:
- 2:765470eab2a6
- Child:
- 8:88d30761683b
L152RE sets an interrupt driven sleep mode when +5V is off
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 2:765470eab2a6 | 1 | /* |
kenjiArai | 2:765470eab2a6 | 2 | * mbed Application program |
kenjiArai | 2:765470eab2a6 | 3 | * Library differ part (This is only information document) |
kenjiArai | 2:765470eab2a6 | 4 | * |
kenjiArai | 2:765470eab2a6 | 5 | * Copyright (c) 2015 Kenji Arai / JH1PJL |
kenjiArai | 2:765470eab2a6 | 6 | * http://www.page.sannet.ne.jp/kenjia/index.html |
kenjiArai | 2:765470eab2a6 | 7 | * http://mbed.org/users/kenjiArai/ |
kenjiArai | 2:765470eab2a6 | 8 | * Created: January 23rd, 2015 |
kenjiArai | 2:765470eab2a6 | 9 | * Revised: Feburary 16th, 2015 |
kenjiArai | 2:765470eab2a6 | 10 | * |
kenjiArai | 2:765470eab2a6 | 11 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
kenjiArai | 2:765470eab2a6 | 12 | * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
kenjiArai | 2:765470eab2a6 | 13 | * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
kenjiArai | 2:765470eab2a6 | 14 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
kenjiArai | 2:765470eab2a6 | 15 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
kenjiArai | 2:765470eab2a6 | 16 | */ |
kenjiArai | 2:765470eab2a6 | 17 | //************************************************************************************************* |
kenjiArai | 2:765470eab2a6 | 18 | // Replace following files in the library |
kenjiArai | 2:765470eab2a6 | 19 | // rtc_api.c -> rtc_api_L152.c |
kenjiArai | 2:765470eab2a6 | 20 | //************************************************************************************************* |
kenjiArai | 2:765470eab2a6 | 21 | // |
kenjiArai | 2:765470eab2a6 | 22 | // (1) Update mbed-src library if you want |
kenjiArai | 2:765470eab2a6 | 23 | // (2) File rtc_api_L152.c copy to directry /mbed-src/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/ |
kenjiArai | 2:765470eab2a6 | 24 | // (3) Delete rtc_api.c in the same directory |
kenjiArai | 2:765470eab2a6 | 25 | // (4) Edit rtc_api_L152.c |
kenjiArai | 2:765470eab2a6 | 26 | // (a)Delete 1st line |
kenjiArai | 2:765470eab2a6 | 27 | // (b)Delete last line |
kenjiArai | 2:765470eab2a6 | 28 | // |