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