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:
simon.ford@mbed.co.uk
Date:
Mon May 17 14:18:54 2010 +0000
Revision:
18:b3c9f16cbb96
Child:
27:7110ebee3484
* Digital I/O speed improved
* Added Port
* Added OpenDrain mode
* Fixes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon.ford@mbed.co.uk 18:b3c9f16cbb96 1 /* mbed Microcontroller Library - PortName
simon.ford@mbed.co.uk 18:b3c9f16cbb96 2 * Copyright (c) 2010 ARM Limited. All rights reserved.
simon.ford@mbed.co.uk 18:b3c9f16cbb96 3 * jward
simon.ford@mbed.co.uk 18:b3c9f16cbb96 4 */
simon.ford@mbed.co.uk 18:b3c9f16cbb96 5
simon.ford@mbed.co.uk 18:b3c9f16cbb96 6 #ifndef MBED_PORTNAMES_H
simon.ford@mbed.co.uk 18:b3c9f16cbb96 7 #define MBED_PORTNAMES_H
simon.ford@mbed.co.uk 18:b3c9f16cbb96 8
simon.ford@mbed.co.uk 18:b3c9f16cbb96 9 #ifdef __cplusplus
simon.ford@mbed.co.uk 18:b3c9f16cbb96 10 extern "C" {
simon.ford@mbed.co.uk 18:b3c9f16cbb96 11 #endif
simon.ford@mbed.co.uk 18:b3c9f16cbb96 12
simon.ford@mbed.co.uk 18:b3c9f16cbb96 13 typedef enum PortName PortName;
simon.ford@mbed.co.uk 18:b3c9f16cbb96 14 enum PortName {
simon.ford@mbed.co.uk 18:b3c9f16cbb96 15 Port0 = 0
simon.ford@mbed.co.uk 18:b3c9f16cbb96 16 , Port1 = 1
simon.ford@mbed.co.uk 18:b3c9f16cbb96 17 , Port2 = 2
simon.ford@mbed.co.uk 18:b3c9f16cbb96 18 , Port3 = 3
simon.ford@mbed.co.uk 18:b3c9f16cbb96 19 , Port4 = 4
simon.ford@mbed.co.uk 18:b3c9f16cbb96 20 };
simon.ford@mbed.co.uk 18:b3c9f16cbb96 21
simon.ford@mbed.co.uk 18:b3c9f16cbb96 22 #ifdef __cplusplus
simon.ford@mbed.co.uk 18:b3c9f16cbb96 23 }
simon.ford@mbed.co.uk 18:b3c9f16cbb96 24 #endif
simon.ford@mbed.co.uk 18:b3c9f16cbb96 25 #endif
simon.ford@mbed.co.uk 18:b3c9f16cbb96 26