mbed library sources. Supersedes mbed-src.

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

Committer:
AnnaBridge
Date:
Fri Feb 16 16:09:33 2018 +0000
Revision:
181:57724642e740
Parent:
targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L072CZ_LRWAN1/objects.h@171:89b338f31ef1
mbed-dev library. Release version 159.

Who changed what in which revision?

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