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_ublox/TARGET_HI2110/device/cmsis.h@177:619788de047e, 2017-11-07 (annotated)
- Committer:
- maxxir
- Date:
- Tue Nov 07 16:46:29 2017 +0000
- Revision:
- 177:619788de047e
- Parent:
- 150:02e0a0aed4ec
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 |
---|---|---|---|
<> | 150:02e0a0aed4ec | 1 | /* |
<> | 150:02e0a0aed4ec | 2 | * PackageLicenseDeclared: Apache-2.0 |
<> | 150:02e0a0aed4ec | 3 | * Copyright (c) 2015 ARM Limited |
<> | 150:02e0a0aed4ec | 4 | * |
<> | 150:02e0a0aed4ec | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 150:02e0a0aed4ec | 6 | * you may not use this file except in compliance with the License. |
<> | 150:02e0a0aed4ec | 7 | * You may obtain a copy of the License at |
<> | 150:02e0a0aed4ec | 8 | * |
<> | 150:02e0a0aed4ec | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 150:02e0a0aed4ec | 10 | * |
<> | 150:02e0a0aed4ec | 11 | * Unless required by applicable law or agreed to in writing, software |
<> | 150:02e0a0aed4ec | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 150:02e0a0aed4ec | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 150:02e0a0aed4ec | 14 | * See the License for the specific language governing permissions and |
<> | 150:02e0a0aed4ec | 15 | * limitations under the License. |
<> | 150:02e0a0aed4ec | 16 | */ |
<> | 150:02e0a0aed4ec | 17 | |
<> | 150:02e0a0aed4ec | 18 | #ifndef MBED_CMSIS_H |
<> | 150:02e0a0aed4ec | 19 | #define MBED_CMSIS_H |
<> | 150:02e0a0aed4ec | 20 | |
<> | 150:02e0a0aed4ec | 21 | #include "hi2110.h" |
<> | 150:02e0a0aed4ec | 22 | #include "cmsis_nvic.h" |
<> | 150:02e0a0aed4ec | 23 | |
<> | 150:02e0a0aed4ec | 24 | /** Reference clock in Hz */ |
<> | 150:02e0a0aed4ec | 25 | #define CLOCKS_REFERENCE_CLOCK_FREQ 32768 |
<> | 150:02e0a0aed4ec | 26 | |
<> | 150:02e0a0aed4ec | 27 | #endif |