mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Mon Oct 02 15:33:19 2017 +0100
Revision:
174:b96e65c34a4d
Parent:
171:89b338f31ef1
This updates the lib to the mbed lib v 152

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 162:e13f6fdb2ac4 1 /* mbed Microcontroller Library
<> 162:e13f6fdb2ac4 2 *******************************************************************************
<> 162:e13f6fdb2ac4 3 * Copyright (c) 2015, STMicroelectronics
<> 162:e13f6fdb2ac4 4 * All rights reserved.
<> 162:e13f6fdb2ac4 5 *
<> 162:e13f6fdb2ac4 6 * Redistribution and use in source and binary forms, with or without
<> 162:e13f6fdb2ac4 7 * modification, are permitted provided that the following conditions are met:
<> 162:e13f6fdb2ac4 8 *
<> 162:e13f6fdb2ac4 9 * 1. Redistributions of source code must retain the above copyright notice,
<> 162:e13f6fdb2ac4 10 * this list of conditions and the following disclaimer.
<> 162:e13f6fdb2ac4 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 162:e13f6fdb2ac4 12 * this list of conditions and the following disclaimer in the documentation
<> 162:e13f6fdb2ac4 13 * and/or other materials provided with the distribution.
<> 162:e13f6fdb2ac4 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 162:e13f6fdb2ac4 15 * may be used to endorse or promote products derived from this software
<> 162:e13f6fdb2ac4 16 * without specific prior written permission.
<> 162:e13f6fdb2ac4 17 *
<> 162:e13f6fdb2ac4 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 162:e13f6fdb2ac4 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 162:e13f6fdb2ac4 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 162:e13f6fdb2ac4 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 162:e13f6fdb2ac4 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 162:e13f6fdb2ac4 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 162:e13f6fdb2ac4 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 162:e13f6fdb2ac4 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 162:e13f6fdb2ac4 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 162:e13f6fdb2ac4 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 162:e13f6fdb2ac4 28 *******************************************************************************
<> 162:e13f6fdb2ac4 29 */
<> 162:e13f6fdb2ac4 30 #ifndef MBED_OBJECTS_H
<> 162:e13f6fdb2ac4 31 #define MBED_OBJECTS_H
<> 162:e13f6fdb2ac4 32
<> 162:e13f6fdb2ac4 33 #include "cmsis.h"
<> 162:e13f6fdb2ac4 34 #include "PortNames.h"
<> 162:e13f6fdb2ac4 35 #include "PeripheralNames.h"
<> 162:e13f6fdb2ac4 36 #include "PinNames.h"
<> 162:e13f6fdb2ac4 37
<> 162:e13f6fdb2ac4 38 #ifdef __cplusplus
<> 162:e13f6fdb2ac4 39 extern "C" {
<> 162:e13f6fdb2ac4 40 #endif
<> 162:e13f6fdb2ac4 41
<> 162:e13f6fdb2ac4 42 struct gpio_irq_s {
<> 162:e13f6fdb2ac4 43 IRQn_Type irq_n;
<> 162:e13f6fdb2ac4 44 uint32_t irq_index;
<> 162:e13f6fdb2ac4 45 uint32_t event;
<> 162:e13f6fdb2ac4 46 PinName pin;
<> 162:e13f6fdb2ac4 47 };
<> 162:e13f6fdb2ac4 48
<> 162:e13f6fdb2ac4 49 struct port_s {
<> 162:e13f6fdb2ac4 50 PortName port;
<> 162:e13f6fdb2ac4 51 uint32_t mask;
<> 162:e13f6fdb2ac4 52 PinDirection direction;
<> 162:e13f6fdb2ac4 53 __IO uint32_t *reg_in;
<> 162:e13f6fdb2ac4 54 __IO uint32_t *reg_out;
<> 162:e13f6fdb2ac4 55 };
<> 162:e13f6fdb2ac4 56
<> 162:e13f6fdb2ac4 57 struct trng_s {
<> 162:e13f6fdb2ac4 58 RNG_HandleTypeDef handle;
<> 162:e13f6fdb2ac4 59 };
<> 162:e13f6fdb2ac4 60
<> 162:e13f6fdb2ac4 61 #include "common_objects.h"
<> 162:e13f6fdb2ac4 62 #include "gpio_object.h"
<> 162:e13f6fdb2ac4 63
<> 162:e13f6fdb2ac4 64 #ifdef __cplusplus
<> 162:e13f6fdb2ac4 65 }
<> 162:e13f6fdb2ac4 66 #endif
<> 162:e13f6fdb2ac4 67
<> 162:e13f6fdb2ac4 68 #endif