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:
emilmont
Date:
Fri Feb 21 12:21:39 2014 +0000
Revision:
80:8e73be2a2ac1
Parent:
79:0c05e21ae27e
Child:
81:7d30d6019079
First alpha release for the NRF51822 target (to be tested in the online IDE)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 79:0c05e21ae27e 1 /* mbed Microcontroller Library
emilmont 79:0c05e21ae27e 2 * Copyright (c) 2006-2014 ARM Limited
emilmont 79:0c05e21ae27e 3 *
emilmont 79:0c05e21ae27e 4 * Licensed under the Apache License, Version 2.0 (the "License");
emilmont 79:0c05e21ae27e 5 * you may not use this file except in compliance with the License.
emilmont 79:0c05e21ae27e 6 * You may obtain a copy of the License at
emilmont 79:0c05e21ae27e 7 *
emilmont 79:0c05e21ae27e 8 * http://www.apache.org/licenses/LICENSE-2.0
emilmont 79:0c05e21ae27e 9 *
emilmont 79:0c05e21ae27e 10 * Unless required by applicable law or agreed to in writing, software
emilmont 79:0c05e21ae27e 11 * distributed under the License is distributed on an "AS IS" BASIS,
emilmont 79:0c05e21ae27e 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
emilmont 79:0c05e21ae27e 13 * See the License for the specific language governing permissions and
emilmont 79:0c05e21ae27e 14 * limitations under the License.
emilmont 79:0c05e21ae27e 15 */
emilmont 79:0c05e21ae27e 16 #ifndef MBED_DEVICE_H
emilmont 79:0c05e21ae27e 17 #define MBED_DEVICE_H
emilmont 79:0c05e21ae27e 18
emilmont 79:0c05e21ae27e 19 #define DEVICE_PORTIN 0
emilmont 79:0c05e21ae27e 20 #define DEVICE_PORTOUT 0
emilmont 79:0c05e21ae27e 21 #define DEVICE_PORTINOUT 0
emilmont 79:0c05e21ae27e 22
emilmont 79:0c05e21ae27e 23 #define DEVICE_INTERRUPTIN 1
emilmont 79:0c05e21ae27e 24
emilmont 79:0c05e21ae27e 25 #define DEVICE_ANALOGIN 1
emilmont 79:0c05e21ae27e 26 #define DEVICE_ANALOGOUT 0
emilmont 79:0c05e21ae27e 27
emilmont 79:0c05e21ae27e 28 #define DEVICE_SERIAL 1
emilmont 79:0c05e21ae27e 29 #define DEVICE_SERIAL_FC 1
emilmont 79:0c05e21ae27e 30
emilmont 79:0c05e21ae27e 31 #define DEVICE_I2C 1
emilmont 79:0c05e21ae27e 32 #define DEVICE_I2CSLAVE 0
emilmont 79:0c05e21ae27e 33
emilmont 79:0c05e21ae27e 34 #define DEVICE_SPI 1
emilmont 79:0c05e21ae27e 35 #define DEVICE_SPISLAVE 1
emilmont 79:0c05e21ae27e 36
emilmont 79:0c05e21ae27e 37 #define DEVICE_CAN 0
emilmont 79:0c05e21ae27e 38
emilmont 79:0c05e21ae27e 39 #define DEVICE_RTC 0
emilmont 79:0c05e21ae27e 40
emilmont 79:0c05e21ae27e 41 #define DEVICE_ETHERNET 0
emilmont 79:0c05e21ae27e 42
emilmont 79:0c05e21ae27e 43 #define DEVICE_PWMOUT 0
emilmont 79:0c05e21ae27e 44
emilmont 79:0c05e21ae27e 45 #define DEVICE_SEMIHOST 0
emilmont 79:0c05e21ae27e 46 #define DEVICE_LOCALFILESYSTEM 0
emilmont 79:0c05e21ae27e 47
emilmont 79:0c05e21ae27e 48 #define DEVICE_SLEEP 0
emilmont 79:0c05e21ae27e 49
emilmont 79:0c05e21ae27e 50 #define DEVICE_DEBUG_AWARENESS 0
emilmont 79:0c05e21ae27e 51
emilmont 79:0c05e21ae27e 52 #define DEVICE_STDIO_MESSAGES 0
emilmont 79:0c05e21ae27e 53
emilmont 79:0c05e21ae27e 54 #define DEVICE_ERROR_RED 0
emilmont 79:0c05e21ae27e 55
emilmont 79:0c05e21ae27e 56 #include "objects.h"
emilmont 79:0c05e21ae27e 57
emilmont 79:0c05e21ae27e 58 #endif