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_STM/TARGET_STM32F0/spi_device.h@177:619788de047e, 2017-11-07 (annotated)
- Committer:
- maxxir
- Date:
- Tue Nov 07 16:46:29 2017 +0000
- Revision:
- 177:619788de047e
- Parent:
- 168:9672193075cf
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 |
---|---|---|---|
AnnaBridge | 168:9672193075cf | 1 | /* mbed Microcontroller Library |
AnnaBridge | 168:9672193075cf | 2 | ******************************************************************************* |
AnnaBridge | 168:9672193075cf | 3 | * Copyright (c) 2017, STMicroelectronics |
AnnaBridge | 168:9672193075cf | 4 | * All rights reserved. |
AnnaBridge | 168:9672193075cf | 5 | * |
AnnaBridge | 168:9672193075cf | 6 | * Redistribution and use in source and binary forms, with or without |
AnnaBridge | 168:9672193075cf | 7 | * modification, are permitted provided that the following conditions are met: |
AnnaBridge | 168:9672193075cf | 8 | * |
AnnaBridge | 168:9672193075cf | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
AnnaBridge | 168:9672193075cf | 10 | * this list of conditions and the following disclaimer. |
AnnaBridge | 168:9672193075cf | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
AnnaBridge | 168:9672193075cf | 12 | * this list of conditions and the following disclaimer in the documentation |
AnnaBridge | 168:9672193075cf | 13 | * and/or other materials provided with the distribution. |
AnnaBridge | 168:9672193075cf | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
AnnaBridge | 168:9672193075cf | 15 | * may be used to endorse or promote products derived from this software |
AnnaBridge | 168:9672193075cf | 16 | * without specific prior written permission. |
AnnaBridge | 168:9672193075cf | 17 | * |
AnnaBridge | 168:9672193075cf | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
AnnaBridge | 168:9672193075cf | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
AnnaBridge | 168:9672193075cf | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 168:9672193075cf | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
AnnaBridge | 168:9672193075cf | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
AnnaBridge | 168:9672193075cf | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
AnnaBridge | 168:9672193075cf | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
AnnaBridge | 168:9672193075cf | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
AnnaBridge | 168:9672193075cf | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
AnnaBridge | 168:9672193075cf | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 168:9672193075cf | 28 | ******************************************************************************* |
AnnaBridge | 168:9672193075cf | 29 | */ |
AnnaBridge | 168:9672193075cf | 30 | #ifndef MBED_SPI_DEVICE_H |
AnnaBridge | 168:9672193075cf | 31 | #define MBED_SPI_DEVICE_H |
AnnaBridge | 168:9672193075cf | 32 | |
AnnaBridge | 168:9672193075cf | 33 | #include "stm32f0xx_ll_spi.h" |
AnnaBridge | 168:9672193075cf | 34 | |
AnnaBridge | 168:9672193075cf | 35 | #endif |