The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Thu Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
Parent:
TARGET_MIMXRT1050_EVK/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_IMX/objects.h@170:e95d10626187
mbed library. Release version 164

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 161:aa5281ff4a02 1 /* mbed Microcontroller Library
AnnaBridge 161:aa5281ff4a02 2 * Copyright (c) 2006-2013 ARM Limited
AnnaBridge 161:aa5281ff4a02 3 *
AnnaBridge 161:aa5281ff4a02 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 161:aa5281ff4a02 5 * you may not use this file except in compliance with the License.
AnnaBridge 161:aa5281ff4a02 6 * You may obtain a copy of the License at
AnnaBridge 161:aa5281ff4a02 7 *
AnnaBridge 161:aa5281ff4a02 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 161:aa5281ff4a02 9 *
AnnaBridge 161:aa5281ff4a02 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 161:aa5281ff4a02 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 161:aa5281ff4a02 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 161:aa5281ff4a02 13 * See the License for the specific language governing permissions and
AnnaBridge 161:aa5281ff4a02 14 * limitations under the License.
AnnaBridge 161:aa5281ff4a02 15 */
AnnaBridge 161:aa5281ff4a02 16 #ifndef MBED_OBJECTS_H
AnnaBridge 161:aa5281ff4a02 17 #define MBED_OBJECTS_H
AnnaBridge 161:aa5281ff4a02 18
AnnaBridge 161:aa5281ff4a02 19 #include "cmsis.h"
AnnaBridge 161:aa5281ff4a02 20 #include "PortNames.h"
AnnaBridge 161:aa5281ff4a02 21 #include "PeripheralNames.h"
AnnaBridge 161:aa5281ff4a02 22 #include "PinNames.h"
AnnaBridge 161:aa5281ff4a02 23
AnnaBridge 161:aa5281ff4a02 24 #ifdef __cplusplus
AnnaBridge 161:aa5281ff4a02 25 extern "C" {
AnnaBridge 161:aa5281ff4a02 26 #endif
AnnaBridge 161:aa5281ff4a02 27
AnnaBridge 161:aa5281ff4a02 28 struct gpio_irq_s {
AnnaBridge 161:aa5281ff4a02 29 uint32_t port;
AnnaBridge 161:aa5281ff4a02 30 uint32_t pin;
AnnaBridge 161:aa5281ff4a02 31 uint32_t ch;
AnnaBridge 161:aa5281ff4a02 32 };
AnnaBridge 161:aa5281ff4a02 33
AnnaBridge 161:aa5281ff4a02 34 struct port_s {
AnnaBridge 161:aa5281ff4a02 35 PortName port;
AnnaBridge 161:aa5281ff4a02 36 uint32_t mask;
AnnaBridge 161:aa5281ff4a02 37 };
AnnaBridge 161:aa5281ff4a02 38
AnnaBridge 161:aa5281ff4a02 39 struct pwmout_s {
AnnaBridge 161:aa5281ff4a02 40 PWMName pwm_name;
AnnaBridge 161:aa5281ff4a02 41 };
AnnaBridge 161:aa5281ff4a02 42
AnnaBridge 161:aa5281ff4a02 43 struct serial_s {
AnnaBridge 161:aa5281ff4a02 44 int index;
AnnaBridge 161:aa5281ff4a02 45 };
AnnaBridge 161:aa5281ff4a02 46
AnnaBridge 161:aa5281ff4a02 47 struct analogin_s {
AnnaBridge 161:aa5281ff4a02 48 ADCName adc;
AnnaBridge 161:aa5281ff4a02 49 };
AnnaBridge 161:aa5281ff4a02 50
AnnaBridge 161:aa5281ff4a02 51 struct i2c_s {
AnnaBridge 161:aa5281ff4a02 52 uint32_t instance;
AnnaBridge 170:e95d10626187 53 uint8_t address_set;
AnnaBridge 161:aa5281ff4a02 54 };
AnnaBridge 161:aa5281ff4a02 55
AnnaBridge 161:aa5281ff4a02 56 struct spi_s {
AnnaBridge 161:aa5281ff4a02 57 uint32_t instance;
AnnaBridge 161:aa5281ff4a02 58 uint8_t bits;
AnnaBridge 161:aa5281ff4a02 59 };
AnnaBridge 161:aa5281ff4a02 60
AnnaBridge 161:aa5281ff4a02 61 struct dac_s {
AnnaBridge 161:aa5281ff4a02 62 DACName dac;
AnnaBridge 161:aa5281ff4a02 63 };
AnnaBridge 161:aa5281ff4a02 64
AnnaBridge 161:aa5281ff4a02 65 struct trng_s {
AnnaBridge 161:aa5281ff4a02 66 uint8_t dummy;
AnnaBridge 161:aa5281ff4a02 67 };
AnnaBridge 161:aa5281ff4a02 68
AnnaBridge 161:aa5281ff4a02 69 #include "gpio_object.h"
AnnaBridge 161:aa5281ff4a02 70
AnnaBridge 161:aa5281ff4a02 71 #ifdef __cplusplus
AnnaBridge 161:aa5281ff4a02 72 }
AnnaBridge 161:aa5281ff4a02 73 #endif
AnnaBridge 161:aa5281ff4a02 74
AnnaBridge 161:aa5281ff4a02 75 #endif