mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/objects.h@171:89b338f31ef1, 2017-08-16 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Aug 16 18:27:13 2017 +0100
- Revision:
- 171:89b338f31ef1
- Parent:
- 158:b23ee177fd68
- Child:
- 174:b96e65c34a4d
This updates the lib to the mbed lib v 149
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 153:fa9ff456f731 | 1 | /* mbed Microcontroller Library |
<> | 153:fa9ff456f731 | 2 | * Copyright (c) 2016 ARM Limited |
<> | 153:fa9ff456f731 | 3 | * |
<> | 153:fa9ff456f731 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 153:fa9ff456f731 | 5 | * you may not use this file except in compliance with the License. |
<> | 153:fa9ff456f731 | 6 | * You may obtain a copy of the License at |
<> | 153:fa9ff456f731 | 7 | * |
<> | 153:fa9ff456f731 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 153:fa9ff456f731 | 9 | * |
<> | 153:fa9ff456f731 | 10 | * Unless required by applicable law or agreed to in writing, software |
<> | 153:fa9ff456f731 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 153:fa9ff456f731 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 153:fa9ff456f731 | 13 | * See the License for the specific language governing permissions and |
<> | 153:fa9ff456f731 | 14 | * limitations under the License. |
<> | 153:fa9ff456f731 | 15 | */ |
<> | 153:fa9ff456f731 | 16 | #ifndef MBED_OBJECTS_H |
<> | 153:fa9ff456f731 | 17 | #define MBED_OBJECTS_H |
<> | 153:fa9ff456f731 | 18 | |
<> | 153:fa9ff456f731 | 19 | #include "cmsis.h" |
<> | 153:fa9ff456f731 | 20 | #include "PortNames.h" |
<> | 153:fa9ff456f731 | 21 | #include "PeripheralNames.h" |
<> | 153:fa9ff456f731 | 22 | #include "PinNames.h" |
<> | 153:fa9ff456f731 | 23 | |
<> | 153:fa9ff456f731 | 24 | #ifdef __cplusplus |
<> | 153:fa9ff456f731 | 25 | extern "C" { |
<> | 153:fa9ff456f731 | 26 | #endif |
<> | 153:fa9ff456f731 | 27 | |
<> | 153:fa9ff456f731 | 28 | struct gpio_irq_s { |
<> | 153:fa9ff456f731 | 29 | IRQn_Type irq_n; |
<> | 153:fa9ff456f731 | 30 | uint32_t irq_index; |
<> | 153:fa9ff456f731 | 31 | uint32_t event; |
<> | 153:fa9ff456f731 | 32 | PinName pin; |
<> | 153:fa9ff456f731 | 33 | }; |
<> | 153:fa9ff456f731 | 34 | |
<> | 153:fa9ff456f731 | 35 | struct port_s { |
<> | 153:fa9ff456f731 | 36 | PortName port; |
<> | 153:fa9ff456f731 | 37 | uint32_t mask; |
<> | 153:fa9ff456f731 | 38 | PinDirection direction; |
<> | 153:fa9ff456f731 | 39 | __IO uint32_t *reg_in; |
<> | 153:fa9ff456f731 | 40 | __IO uint32_t *reg_out; |
<> | 153:fa9ff456f731 | 41 | }; |
<> | 153:fa9ff456f731 | 42 | |
<> | 156:95d6b41a828b | 43 | struct can_s { |
<> | 156:95d6b41a828b | 44 | CANName can; |
<> | 156:95d6b41a828b | 45 | int index; |
<> | 156:95d6b41a828b | 46 | }; |
<> | 156:95d6b41a828b | 47 | |
<> | 156:95d6b41a828b | 48 | struct trng_s { |
<> | 156:95d6b41a828b | 49 | RNG_HandleTypeDef handle; |
<> | 156:95d6b41a828b | 50 | }; |
<> | 156:95d6b41a828b | 51 | |
<> | 153:fa9ff456f731 | 52 | #include "common_objects.h" |
<> | 153:fa9ff456f731 | 53 | |
<> | 153:fa9ff456f731 | 54 | #ifdef __cplusplus |
<> | 153:fa9ff456f731 | 55 | } |
<> | 153:fa9ff456f731 | 56 | #endif |
<> | 153:fa9ff456f731 | 57 | |
<> | 153:fa9ff456f731 | 58 | #endif |