mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/objects.h@158:b23ee177fd68, 2017-02-14 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 14 14:44:10 2017 +0000
- Revision:
- 158:b23ee177fd68
- Parent:
- targets/TARGET_STM/TARGET_STM32L4/TARGET_L476_L486/objects.h@157:ff67d9f36b67
- Child:
- 168:9672193075cf
This updates the lib to the mbed lib v136
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | /* mbed Microcontroller Library |
<> | 149:156823d33999 | 2 | ******************************************************************************* |
<> | 149:156823d33999 | 3 | * Copyright (c) 2015, STMicroelectronics |
<> | 149:156823d33999 | 4 | * All rights reserved. |
<> | 149:156823d33999 | 5 | * |
<> | 149:156823d33999 | 6 | * Redistribution and use in source and binary forms, with or without |
<> | 149:156823d33999 | 7 | * modification, are permitted provided that the following conditions are met: |
<> | 149:156823d33999 | 8 | * |
<> | 149:156823d33999 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
<> | 149:156823d33999 | 10 | * this list of conditions and the following disclaimer. |
<> | 149:156823d33999 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
<> | 149:156823d33999 | 12 | * this list of conditions and the following disclaimer in the documentation |
<> | 149:156823d33999 | 13 | * and/or other materials provided with the distribution. |
<> | 149:156823d33999 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
<> | 149:156823d33999 | 15 | * may be used to endorse or promote products derived from this software |
<> | 149:156823d33999 | 16 | * without specific prior written permission. |
<> | 149:156823d33999 | 17 | * |
<> | 149:156823d33999 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
<> | 149:156823d33999 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
<> | 149:156823d33999 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
<> | 149:156823d33999 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
<> | 149:156823d33999 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
<> | 149:156823d33999 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
<> | 149:156823d33999 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
<> | 149:156823d33999 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
<> | 149:156823d33999 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
<> | 149:156823d33999 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
<> | 149:156823d33999 | 28 | ******************************************************************************* |
<> | 149:156823d33999 | 29 | */ |
<> | 149:156823d33999 | 30 | #ifndef MBED_OBJECTS_H |
<> | 149:156823d33999 | 31 | #define MBED_OBJECTS_H |
<> | 149:156823d33999 | 32 | |
<> | 149:156823d33999 | 33 | #include "cmsis.h" |
<> | 149:156823d33999 | 34 | #include "PortNames.h" |
<> | 149:156823d33999 | 35 | #include "PeripheralNames.h" |
<> | 149:156823d33999 | 36 | #include "PinNames.h" |
<> | 149:156823d33999 | 37 | |
<> | 149:156823d33999 | 38 | #ifdef __cplusplus |
<> | 149:156823d33999 | 39 | extern "C" { |
<> | 149:156823d33999 | 40 | #endif |
<> | 149:156823d33999 | 41 | |
<> | 149:156823d33999 | 42 | struct gpio_irq_s { |
<> | 149:156823d33999 | 43 | IRQn_Type irq_n; |
<> | 149:156823d33999 | 44 | uint32_t irq_index; |
<> | 149:156823d33999 | 45 | uint32_t event; |
<> | 149:156823d33999 | 46 | PinName pin; |
<> | 149:156823d33999 | 47 | }; |
<> | 149:156823d33999 | 48 | |
<> | 149:156823d33999 | 49 | struct port_s { |
<> | 149:156823d33999 | 50 | PortName port; |
<> | 149:156823d33999 | 51 | uint32_t mask; |
<> | 149:156823d33999 | 52 | PinDirection direction; |
<> | 149:156823d33999 | 53 | __IO uint32_t *reg_in; |
<> | 149:156823d33999 | 54 | __IO uint32_t *reg_out; |
<> | 149:156823d33999 | 55 | }; |
<> | 149:156823d33999 | 56 | |
<> | 149:156823d33999 | 57 | struct analogin_s { |
<> | 149:156823d33999 | 58 | ADCName adc; |
<> | 149:156823d33999 | 59 | PinName pin; |
<> | 149:156823d33999 | 60 | uint32_t channel; |
<> | 149:156823d33999 | 61 | }; |
<> | 149:156823d33999 | 62 | |
<> | 149:156823d33999 | 63 | struct dac_s { |
<> | 149:156823d33999 | 64 | DACName dac; |
<> | 149:156823d33999 | 65 | PinName pin; |
<> | 149:156823d33999 | 66 | uint32_t channel; |
<> | 149:156823d33999 | 67 | }; |
<> | 149:156823d33999 | 68 | |
<> | 149:156823d33999 | 69 | struct can_s { |
<> | 149:156823d33999 | 70 | CANName can; |
<> | 149:156823d33999 | 71 | int index; |
<> | 149:156823d33999 | 72 | }; |
<> | 149:156823d33999 | 73 | |
<> | 149:156823d33999 | 74 | struct trng_s { |
<> | 149:156823d33999 | 75 | RNG_HandleTypeDef handle; |
<> | 149:156823d33999 | 76 | }; |
<> | 149:156823d33999 | 77 | |
<> | 149:156823d33999 | 78 | #include "common_objects.h" |
<> | 149:156823d33999 | 79 | |
<> | 149:156823d33999 | 80 | #ifdef __cplusplus |
<> | 149:156823d33999 | 81 | } |
<> | 149:156823d33999 | 82 | #endif |
<> | 149:156823d33999 | 83 | |
<> | 149:156823d33999 | 84 | #endif |