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:
Wed Nov 21 10:49:56 2012 +0000
Revision:
44:24d45a770a51
Parent:
27:7110ebee3484
Child:
54:71b101360fb9
Complete refactoring of the mbed library to move the target dependent code to a thin well defined layer, defining a proper object oriented C API to be implemented by the different silicon vendors.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon.ford@mbed.co.uk 0:82220227f4fa 1 /* mbed Microcontroller Library
emilmont 44:24d45a770a51 2 * Copyright (c) 2006-2012 ARM Limited
emilmont 44:24d45a770a51 3 *
emilmont 44:24d45a770a51 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
emilmont 44:24d45a770a51 5 * of this software and associated documentation files (the "Software"), to deal
emilmont 44:24d45a770a51 6 * in the Software without restriction, including without limitation the rights
emilmont 44:24d45a770a51 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
emilmont 44:24d45a770a51 8 * copies of the Software, and to permit persons to whom the Software is
emilmont 44:24d45a770a51 9 * furnished to do so, subject to the following conditions:
emilmont 44:24d45a770a51 10 *
emilmont 44:24d45a770a51 11 * The above copyright notice and this permission notice shall be included in
emilmont 44:24d45a770a51 12 * all copies or substantial portions of the Software.
emilmont 44:24d45a770a51 13 *
emilmont 44:24d45a770a51 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
emilmont 44:24d45a770a51 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
emilmont 44:24d45a770a51 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
emilmont 44:24d45a770a51 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
emilmont 44:24d45a770a51 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
emilmont 44:24d45a770a51 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
emilmont 44:24d45a770a51 20 * SOFTWARE.
emilmont 44:24d45a770a51 21 */
simon.ford@mbed.co.uk 0:82220227f4fa 22 #ifndef MBED_H
simon.ford@mbed.co.uk 0:82220227f4fa 23 #define MBED_H
simon.ford@mbed.co.uk 5:62573be585e9 24
emilmont 44:24d45a770a51 25 #define MBED_LIBRARY_VERSION 30
emilmont 44:24d45a770a51 26
emilmont 44:24d45a770a51 27 #include "platform.h"
emilmont 44:24d45a770a51 28
simon.ford@mbed.co.uk 0:82220227f4fa 29 // Useful C libraries
simon.ford@mbed.co.uk 4:5d1359a283bc 30 #include <math.h>
rolf.meyer@arm.com 14:20a79241b4a0 31 #include <time.h>
simon.ford@mbed.co.uk 0:82220227f4fa 32
simon.ford@mbed.co.uk 0:82220227f4fa 33 // mbed Debug libraries
rolf.meyer@arm.com 12:f63353af7be8 34 #include "error.h"
emilmont 27:7110ebee3484 35 #include "mbed_interface.h"
simon.ford@mbed.co.uk 0:82220227f4fa 36
simon.ford@mbed.co.uk 0:82220227f4fa 37 // mbed Peripheral components
simon.ford@mbed.co.uk 0:82220227f4fa 38 #include "DigitalIn.h"
simon.ford@mbed.co.uk 0:82220227f4fa 39 #include "DigitalOut.h"
rolf.meyer@arm.com 11:1c1ebd0324fa 40 #include "DigitalInOut.h"
simon.ford@mbed.co.uk 0:82220227f4fa 41 #include "BusIn.h"
simon.ford@mbed.co.uk 0:82220227f4fa 42 #include "BusOut.h"
rolf.meyer@arm.com 11:1c1ebd0324fa 43 #include "BusInOut.h"
simon.ford@mbed.co.uk 18:b3c9f16cbb96 44 #include "PortIn.h"
simon.ford@mbed.co.uk 18:b3c9f16cbb96 45 #include "PortInOut.h"
simon.ford@mbed.co.uk 18:b3c9f16cbb96 46 #include "PortOut.h"
simon.ford@mbed.co.uk 0:82220227f4fa 47 #include "AnalogIn.h"
simon.ford@mbed.co.uk 0:82220227f4fa 48 #include "AnalogOut.h"
simon.ford@mbed.co.uk 0:82220227f4fa 49 #include "PwmOut.h"
simon.ford@mbed.co.uk 0:82220227f4fa 50 #include "Serial.h"
simon.ford@mbed.co.uk 0:82220227f4fa 51 #include "SPI.h"
simon 20:029aa53d7323 52 #include "SPISlave.h"
simon.ford@mbed.co.uk 0:82220227f4fa 53 #include "I2C.h"
simon 22:9114680c05da 54 #include "I2CSlave.h"
rolf.meyer@arm.com 11:1c1ebd0324fa 55 #include "Ethernet.h"
rolf.meyer@arm.com 14:20a79241b4a0 56 #include "CAN.h"
simon.ford@mbed.co.uk 0:82220227f4fa 57
simon.ford@mbed.co.uk 0:82220227f4fa 58 // mbed Internal components
simon.ford@mbed.co.uk 0:82220227f4fa 59 #include "Timer.h"
simon.ford@mbed.co.uk 3:aefd12a1f1c5 60 #include "Ticker.h"
simon.ford@mbed.co.uk 3:aefd12a1f1c5 61 #include "Timeout.h"
simon.ford@mbed.co.uk 4:5d1359a283bc 62 #include "LocalFileSystem.h"
rolf.meyer@arm.com 11:1c1ebd0324fa 63 #include "InterruptIn.h"
rolf.meyer@arm.com 11:1c1ebd0324fa 64 #include "wait_api.h"
rolf.meyer@arm.com 14:20a79241b4a0 65 #include "rtc_time.h"
simon.ford@mbed.co.uk 0:82220227f4fa 66
emilmont 44:24d45a770a51 67 using namespace mbed;
emilmont 44:24d45a770a51 68 using namespace std;
simon.ford@mbed.co.uk 0:82220227f4fa 69
emilmont 44:24d45a770a51 70 #endif