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:
<>
Date:
Fri Oct 28 11:17:30 2016 +0100
Revision:
149:156823d33999
Parent:
targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/objects.h@80:bdf1132a57cf
This updates the lib to the mbed lib v128

NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 80:bdf1132a57cf 1 /* mbed Microcontroller Library
mbed_official 80:bdf1132a57cf 2 * Copyright (c) 2006-2015 ARM Limited
mbed_official 80:bdf1132a57cf 3 *
mbed_official 80:bdf1132a57cf 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 80:bdf1132a57cf 5 * you may not use this file except in compliance with the License.
mbed_official 80:bdf1132a57cf 6 * You may obtain a copy of the License at
mbed_official 80:bdf1132a57cf 7 *
mbed_official 80:bdf1132a57cf 8 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 80:bdf1132a57cf 9 *
mbed_official 80:bdf1132a57cf 10 * Unless required by applicable law or agreed to in writing, software
mbed_official 80:bdf1132a57cf 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 80:bdf1132a57cf 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 80:bdf1132a57cf 13 * See the License for the specific language governing permissions and
mbed_official 80:bdf1132a57cf 14 * limitations under the License.
mbed_official 80:bdf1132a57cf 15 */
mbed_official 80:bdf1132a57cf 16 #ifndef MBED_OBJECTS_H
mbed_official 80:bdf1132a57cf 17 #define MBED_OBJECTS_H
mbed_official 80:bdf1132a57cf 18
mbed_official 80:bdf1132a57cf 19 #include "cmsis.h"
mbed_official 80:bdf1132a57cf 20 #include "PortNames.h"
mbed_official 80:bdf1132a57cf 21 #include "PeripheralNames.h"
mbed_official 80:bdf1132a57cf 22 #include "PinNames.h"
mbed_official 80:bdf1132a57cf 23
mbed_official 80:bdf1132a57cf 24 #ifdef __cplusplus
mbed_official 80:bdf1132a57cf 25 extern "C" {
mbed_official 80:bdf1132a57cf 26 #endif
mbed_official 80:bdf1132a57cf 27
mbed_official 80:bdf1132a57cf 28 struct gpio_irq_s {
mbed_official 80:bdf1132a57cf 29 uint32_t ch;
mbed_official 80:bdf1132a57cf 30 };
mbed_official 80:bdf1132a57cf 31
mbed_official 80:bdf1132a57cf 32 struct port_s {
mbed_official 80:bdf1132a57cf 33 __IO uint32_t *reg_dir;
mbed_official 80:bdf1132a57cf 34 __IO uint32_t *reg_dirclr;
mbed_official 80:bdf1132a57cf 35 __IO uint32_t *reg_out;
mbed_official 80:bdf1132a57cf 36 __IO uint32_t *reg_in;
mbed_official 80:bdf1132a57cf 37 PortName port;
mbed_official 80:bdf1132a57cf 38 uint32_t mask;
mbed_official 80:bdf1132a57cf 39 };
mbed_official 80:bdf1132a57cf 40
mbed_official 80:bdf1132a57cf 41 struct serial_s {
mbed_official 80:bdf1132a57cf 42 CMSDK_UART_TypeDef *uart;
mbed_official 80:bdf1132a57cf 43 int index;
mbed_official 80:bdf1132a57cf 44 };
mbed_official 80:bdf1132a57cf 45
mbed_official 80:bdf1132a57cf 46 struct i2c_s {
mbed_official 80:bdf1132a57cf 47 MPS2_I2C_TypeDef *i2c;
mbed_official 80:bdf1132a57cf 48 };
mbed_official 80:bdf1132a57cf 49
mbed_official 80:bdf1132a57cf 50 struct tsc_s {
mbed_official 80:bdf1132a57cf 51 MPS2_I2C_TypeDef *tsc;
mbed_official 80:bdf1132a57cf 52 };
mbed_official 80:bdf1132a57cf 53
mbed_official 80:bdf1132a57cf 54 struct audio_s {
mbed_official 80:bdf1132a57cf 55 MPS2_I2S_TypeDef *audio_I2S;
mbed_official 80:bdf1132a57cf 56 MPS2_I2C_TypeDef *audio_I2C;
mbed_official 80:bdf1132a57cf 57 };
mbed_official 80:bdf1132a57cf 58
mbed_official 80:bdf1132a57cf 59
mbed_official 80:bdf1132a57cf 60 struct spi_s {
mbed_official 80:bdf1132a57cf 61 MPS2_SSP_TypeDef *spi;
mbed_official 80:bdf1132a57cf 62 };
mbed_official 80:bdf1132a57cf 63
mbed_official 80:bdf1132a57cf 64 struct clcd_s {
mbed_official 80:bdf1132a57cf 65 MPS2_SSP_TypeDef *clcd;
mbed_official 80:bdf1132a57cf 66 };
mbed_official 80:bdf1132a57cf 67
mbed_official 80:bdf1132a57cf 68 struct analogin_s {
mbed_official 80:bdf1132a57cf 69 ADCName adc;
mbed_official 80:bdf1132a57cf 70 MPS2_SSP_TypeDef *adc_spi;
mbed_official 80:bdf1132a57cf 71 PinName pin;
mbed_official 80:bdf1132a57cf 72 uint32_t pin_number;
mbed_official 80:bdf1132a57cf 73 __IO uint32_t address;
mbed_official 80:bdf1132a57cf 74 };
mbed_official 80:bdf1132a57cf 75
mbed_official 80:bdf1132a57cf 76 #include "gpio_object.h"
mbed_official 80:bdf1132a57cf 77
mbed_official 80:bdf1132a57cf 78 #ifdef __cplusplus
mbed_official 80:bdf1132a57cf 79 }
mbed_official 80:bdf1132a57cf 80 #endif
mbed_official 80:bdf1132a57cf 81
mbed_official 80:bdf1132a57cf 82 #endif