Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
PortNames.h@18:b3c9f16cbb96, 2010-05-17 (annotated)
- 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?
User | Revision | Line number | New 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 |