mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Thu Feb 02 17:01:33 2017 +0000
Revision:
157:ff67d9f36b67
Parent:
156:95d6b41a828b
This updates the lib to the mbed lib v135

Who changed what in which revision?

UserRevisionLine numberNew 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
<> 153:fa9ff456f731 43 struct analogin_s {
<> 153:fa9ff456f731 44 ADCName adc;
<> 153:fa9ff456f731 45 PinName pin;
<> 153:fa9ff456f731 46 uint8_t channel;
<> 153:fa9ff456f731 47 };
<> 153:fa9ff456f731 48
<> 156:95d6b41a828b 49 struct can_s {
<> 156:95d6b41a828b 50 CANName can;
<> 156:95d6b41a828b 51 int index;
<> 156:95d6b41a828b 52 };
<> 156:95d6b41a828b 53
<> 156:95d6b41a828b 54 struct trng_s {
<> 156:95d6b41a828b 55 RNG_HandleTypeDef handle;
<> 156:95d6b41a828b 56 };
<> 156:95d6b41a828b 57
<> 153:fa9ff456f731 58 #include "common_objects.h"
<> 153:fa9ff456f731 59
<> 153:fa9ff456f731 60 #ifdef __cplusplus
<> 153:fa9ff456f731 61 }
<> 153:fa9ff456f731 62 #endif
<> 153:fa9ff456f731 63
<> 153:fa9ff456f731 64 #endif