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_ARM_SSG/TARGET_MPS2/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 |
---|---|---|---|
<> | 144:ef7eb2e8f9f7 | 1 | // The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches. |
<> | 144:ef7eb2e8f9f7 | 2 | // Check the 'features' section of the target description in 'targets.json' for more details. |
mbed_official | 80:bdf1132a57cf | 3 | /* mbed Microcontroller Library |
mbed_official | 80:bdf1132a57cf | 4 | * Copyright (c) 2006-2015 ARM Limited |
mbed_official | 80:bdf1132a57cf | 5 | * |
mbed_official | 80:bdf1132a57cf | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 80:bdf1132a57cf | 7 | * you may not use this file except in compliance with the License. |
mbed_official | 80:bdf1132a57cf | 8 | * You may obtain a copy of the License at |
mbed_official | 80:bdf1132a57cf | 9 | * |
mbed_official | 80:bdf1132a57cf | 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 80:bdf1132a57cf | 11 | * |
mbed_official | 80:bdf1132a57cf | 12 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 80:bdf1132a57cf | 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 80:bdf1132a57cf | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 80:bdf1132a57cf | 15 | * See the License for the specific language governing permissions and |
mbed_official | 80:bdf1132a57cf | 16 | * limitations under the License. |
mbed_official | 80:bdf1132a57cf | 17 | */ |
mbed_official | 80:bdf1132a57cf | 18 | #ifndef MBED_DEVICE_H |
mbed_official | 80:bdf1132a57cf | 19 | #define MBED_DEVICE_H |
mbed_official | 80:bdf1132a57cf | 20 | |
<> | 144:ef7eb2e8f9f7 | 21 | |
mbed_official | 80:bdf1132a57cf | 22 | |
mbed_official | 80:bdf1132a57cf | 23 | |
mbed_official | 80:bdf1132a57cf | 24 | |
<> | 144:ef7eb2e8f9f7 | 25 | |
mbed_official | 80:bdf1132a57cf | 26 | |
mbed_official | 80:bdf1132a57cf | 27 | |
mbed_official | 80:bdf1132a57cf | 28 | |
mbed_official | 80:bdf1132a57cf | 29 | |
mbed_official | 80:bdf1132a57cf | 30 | |
mbed_official | 80:bdf1132a57cf | 31 | |
mbed_official | 80:bdf1132a57cf | 32 | |
mbed_official | 80:bdf1132a57cf | 33 | |
mbed_official | 80:bdf1132a57cf | 34 | |
mbed_official | 80:bdf1132a57cf | 35 | |
mbed_official | 80:bdf1132a57cf | 36 | |
mbed_official | 80:bdf1132a57cf | 37 | |
mbed_official | 80:bdf1132a57cf | 38 | |
mbed_official | 80:bdf1132a57cf | 39 | #include "objects.h" |
mbed_official | 80:bdf1132a57cf | 40 | |
mbed_official | 80:bdf1132a57cf | 41 | #endif |