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 mbed official

Committer:
maxxir
Date:
Tue Nov 07 16:46:29 2017 +0000
Revision:
177:619788de047e
Parent:
167:e84263d55307
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?

UserRevisionLine numberNew contents of line
AnnaBridge 165:e614a9f1c9e2 1 /* mbed Microcontroller Library
AnnaBridge 165:e614a9f1c9e2 2 * Copyright (c) 2016 ARM Limited
AnnaBridge 165:e614a9f1c9e2 3 *
AnnaBridge 165:e614a9f1c9e2 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 165:e614a9f1c9e2 5 * you may not use this file except in compliance with the License.
AnnaBridge 165:e614a9f1c9e2 6 * You may obtain a copy of the License at
AnnaBridge 165:e614a9f1c9e2 7 *
AnnaBridge 165:e614a9f1c9e2 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 165:e614a9f1c9e2 9 *
AnnaBridge 165:e614a9f1c9e2 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 165:e614a9f1c9e2 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 165:e614a9f1c9e2 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 165:e614a9f1c9e2 13 * See the License for the specific language governing permissions and
AnnaBridge 165:e614a9f1c9e2 14 * limitations under the License.
AnnaBridge 165:e614a9f1c9e2 15 */
AnnaBridge 165:e614a9f1c9e2 16
AnnaBridge 165:e614a9f1c9e2 17 #ifndef MBED_MBED_RTX_H
AnnaBridge 165:e614a9f1c9e2 18 #define MBED_MBED_RTX_H
AnnaBridge 165:e614a9f1c9e2 19
AnnaBridge 165:e614a9f1c9e2 20 #if defined(TARGET_WIZWIKI_W7500)
AnnaBridge 165:e614a9f1c9e2 21
AnnaBridge 165:e614a9f1c9e2 22 #ifndef INITIAL_SP
AnnaBridge 165:e614a9f1c9e2 23 #define INITIAL_SP (0x20004000UL)
AnnaBridge 165:e614a9f1c9e2 24 #endif
AnnaBridge 165:e614a9f1c9e2 25
AnnaBridge 165:e614a9f1c9e2 26 #elif defined(TARGET_WIZWIKI_W7500P)
AnnaBridge 165:e614a9f1c9e2 27
AnnaBridge 165:e614a9f1c9e2 28 #ifndef INITIAL_SP
AnnaBridge 165:e614a9f1c9e2 29 #define INITIAL_SP (0x20004000UL)
AnnaBridge 165:e614a9f1c9e2 30 #endif
AnnaBridge 167:e84263d55307 31
AnnaBridge 165:e614a9f1c9e2 32
AnnaBridge 165:e614a9f1c9e2 33 #elif defined(TARGET_WIZWIKI_W7500ECO)
AnnaBridge 165:e614a9f1c9e2 34
AnnaBridge 165:e614a9f1c9e2 35 #ifndef INITIAL_SP
AnnaBridge 165:e614a9f1c9e2 36 #define INITIAL_SP (0x20004000UL)
AnnaBridge 165:e614a9f1c9e2 37 #endif
AnnaBridge 165:e614a9f1c9e2 38
AnnaBridge 165:e614a9f1c9e2 39 #endif //
AnnaBridge 165:e614a9f1c9e2 40
AnnaBridge 165:e614a9f1c9e2 41 #endif // MBED_MBED_RTX_H