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.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
PortNames.h@27:7110ebee3484, 2011-11-29 (annotated)
- Committer:
- emilmont
- Date:
- Tue Nov 29 14:59:27 2011 +0000
- Revision:
- 27:7110ebee3484
- Parent:
- 18:b3c9f16cbb96
New Libraries 11.11
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 |
| emilmont | 27:7110ebee3484 | 2 | * Copyright (c) 2010-2011 ARM Limited. All rights reserved. |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 3 | */ |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 4 | |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 5 | #ifndef MBED_PORTNAMES_H |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 6 | #define MBED_PORTNAMES_H |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 7 | |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 8 | #ifdef __cplusplus |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 9 | extern "C" { |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 10 | #endif |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 11 | |
| emilmont | 27:7110ebee3484 | 12 | #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) |
| emilmont | 27:7110ebee3484 | 13 | |
| 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 | }; |
| emilmont | 27:7110ebee3484 | 21 | typedef enum PortName PortName; |
| emilmont | 27:7110ebee3484 | 22 | |
| emilmont | 27:7110ebee3484 | 23 | #elif defined(TARGET_LPC11U24) |
| emilmont | 27:7110ebee3484 | 24 | |
| emilmont | 27:7110ebee3484 | 25 | enum PortName { |
| emilmont | 27:7110ebee3484 | 26 | Port0 = 0 |
| emilmont | 27:7110ebee3484 | 27 | , Port1 = 1 |
| emilmont | 27:7110ebee3484 | 28 | }; |
| emilmont | 27:7110ebee3484 | 29 | typedef enum PortName PortName; |
| emilmont | 27:7110ebee3484 | 30 | |
| emilmont | 27:7110ebee3484 | 31 | |
| emilmont | 27:7110ebee3484 | 32 | #endif |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 33 | |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 34 | #ifdef __cplusplus |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 35 | } |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 36 | #endif |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 37 | #endif |
| simon.ford@mbed.co.uk | 18:b3c9f16cbb96 | 38 |
