Programme d'utilisation des AX12 avec rajout de l'MX12
Fork of test_carteAToutFaire_PR by
mbed/PortNames.h@1:f3f702086a30, 2017-05-11 (annotated)
- Committer:
- ClementBreteau
- Date:
- Thu May 11 11:49:50 2017 +0000
- Revision:
- 1:f3f702086a30
test de la carte ? tout faire du petit robot
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ClementBreteau | 1:f3f702086a30 | 1 | /* mbed Microcontroller Library - PortName |
ClementBreteau | 1:f3f702086a30 | 2 | * Copyright (c) 2010-2011 ARM Limited. All rights reserved. |
ClementBreteau | 1:f3f702086a30 | 3 | */ |
ClementBreteau | 1:f3f702086a30 | 4 | |
ClementBreteau | 1:f3f702086a30 | 5 | #ifndef MBED_PORTNAMES_H |
ClementBreteau | 1:f3f702086a30 | 6 | #define MBED_PORTNAMES_H |
ClementBreteau | 1:f3f702086a30 | 7 | |
ClementBreteau | 1:f3f702086a30 | 8 | #ifdef __cplusplus |
ClementBreteau | 1:f3f702086a30 | 9 | extern "C" { |
ClementBreteau | 1:f3f702086a30 | 10 | #endif |
ClementBreteau | 1:f3f702086a30 | 11 | |
ClementBreteau | 1:f3f702086a30 | 12 | #if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) |
ClementBreteau | 1:f3f702086a30 | 13 | |
ClementBreteau | 1:f3f702086a30 | 14 | enum PortName { |
ClementBreteau | 1:f3f702086a30 | 15 | Port0 = 0 |
ClementBreteau | 1:f3f702086a30 | 16 | , Port1 = 1 |
ClementBreteau | 1:f3f702086a30 | 17 | , Port2 = 2 |
ClementBreteau | 1:f3f702086a30 | 18 | , Port3 = 3 |
ClementBreteau | 1:f3f702086a30 | 19 | , Port4 = 4 |
ClementBreteau | 1:f3f702086a30 | 20 | }; |
ClementBreteau | 1:f3f702086a30 | 21 | typedef enum PortName PortName; |
ClementBreteau | 1:f3f702086a30 | 22 | |
ClementBreteau | 1:f3f702086a30 | 23 | #elif defined(TARGET_LPC11U24) |
ClementBreteau | 1:f3f702086a30 | 24 | |
ClementBreteau | 1:f3f702086a30 | 25 | enum PortName { |
ClementBreteau | 1:f3f702086a30 | 26 | Port0 = 0 |
ClementBreteau | 1:f3f702086a30 | 27 | , Port1 = 1 |
ClementBreteau | 1:f3f702086a30 | 28 | }; |
ClementBreteau | 1:f3f702086a30 | 29 | typedef enum PortName PortName; |
ClementBreteau | 1:f3f702086a30 | 30 | |
ClementBreteau | 1:f3f702086a30 | 31 | |
ClementBreteau | 1:f3f702086a30 | 32 | #endif |
ClementBreteau | 1:f3f702086a30 | 33 | |
ClementBreteau | 1:f3f702086a30 | 34 | #ifdef __cplusplus |
ClementBreteau | 1:f3f702086a30 | 35 | } |
ClementBreteau | 1:f3f702086a30 | 36 | #endif |
ClementBreteau | 1:f3f702086a30 | 37 | #endif |
ClementBreteau | 1:f3f702086a30 | 38 |