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 14 14:36:43 2014 +0000
Revision:
77:869cf507173a
Release 77 of the mbed library

Main changes:
* Add target NUCLEO_F030R8
* Add target NUCLEO_F401RE
* Add target NUCLEO_F103RB
* Add target NUCLEO_L152RE

Who changed what in which revision?

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