mbed library sources. Supersedes mbed-src. Fixed broken STM32F1xx RTC on rtc_api.c
Dependents: Nucleo_F103RB_RTC_battery_bkup_pwr_off_okay
Fork of mbed-dev by
targets/TARGET_Maxim/TARGET_MAX32620/device.h@177:619788de047e, 2017-11-07 (annotated)
- Committer:
- maxxir
- Date:
- Tue Nov 07 16:46:29 2017 +0000
- Revision:
- 177:619788de047e
- Parent:
- 149:156823d33999
To fix broken RTC on Nucleo_F103RB / STM32F103 BluePill etc..; Used direct RTC register manipulation for STM32F1xx; rtc_read() && rtc_write() (native rtc_init() - works good); also added stub for non-working on STM32F1xx rtc_read_subseconds().
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | // The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. |
<> | 149:156823d33999 | 2 | // Check the 'features' section of the target description in 'targets.json' for more details. |
<> | 149:156823d33999 | 3 | /******************************************************************************* |
<> | 149:156823d33999 | 4 | * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. |
<> | 149:156823d33999 | 5 | * |
<> | 149:156823d33999 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
<> | 149:156823d33999 | 7 | * copy of this software and associated documentation files (the "Software"), |
<> | 149:156823d33999 | 8 | * to deal in the Software without restriction, including without limitation |
<> | 149:156823d33999 | 9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
<> | 149:156823d33999 | 10 | * and/or sell copies of the Software, and to permit persons to whom the |
<> | 149:156823d33999 | 11 | * Software is furnished to do so, subject to the following conditions: |
<> | 149:156823d33999 | 12 | * |
<> | 149:156823d33999 | 13 | * The above copyright notice and this permission notice shall be included |
<> | 149:156823d33999 | 14 | * in all copies or substantial portions of the Software. |
<> | 149:156823d33999 | 15 | * |
<> | 149:156823d33999 | 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
<> | 149:156823d33999 | 17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
<> | 149:156823d33999 | 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
<> | 149:156823d33999 | 19 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
<> | 149:156823d33999 | 20 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
<> | 149:156823d33999 | 21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
<> | 149:156823d33999 | 22 | * OTHER DEALINGS IN THE SOFTWARE. |
<> | 149:156823d33999 | 23 | * |
<> | 149:156823d33999 | 24 | * Except as contained in this notice, the name of Maxim Integrated |
<> | 149:156823d33999 | 25 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
<> | 149:156823d33999 | 26 | * Products, Inc. Branding Policy. |
<> | 149:156823d33999 | 27 | * |
<> | 149:156823d33999 | 28 | * The mere transfer of this software does not imply any licenses |
<> | 149:156823d33999 | 29 | * of trade secrets, proprietary technology, copyrights, patents, |
<> | 149:156823d33999 | 30 | * trademarks, maskwork rights, or any other form of intellectual |
<> | 149:156823d33999 | 31 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
<> | 149:156823d33999 | 32 | * ownership rights. |
<> | 149:156823d33999 | 33 | ******************************************************************************* |
<> | 149:156823d33999 | 34 | */ |
<> | 149:156823d33999 | 35 | |
<> | 149:156823d33999 | 36 | #ifndef MBED_DEVICE_H |
<> | 149:156823d33999 | 37 | #define MBED_DEVICE_H |
<> | 149:156823d33999 | 38 | #include "objects.h" |
<> | 149:156823d33999 | 39 | |
<> | 149:156823d33999 | 40 | #endif |