![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
pinouts.h@30:ed791f1f7f7d, 2018-12-26 (annotated)
- Committer:
- shimniok
- Date:
- Wed Dec 26 19:34:17 2018 +0000
- Revision:
- 30:ed791f1f7f7d
- Parent:
- 14:1dd83e626153
Implemented pushbutton, pushbutton toggles logging
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 14:1dd83e626153 | 1 | /// Contains the pinouts for various devices |
shimniok | 14:1dd83e626153 | 2 | |
shimniok | 30:ed791f1f7f7d | 3 | #ifndef PINOUTS_H_ |
shimniok | 30:ed791f1f7f7d | 4 | #define PINOUTS_H_ |
shimniok | 14:1dd83e626153 | 5 | |
shimniok | 14:1dd83e626153 | 6 | #include "mbed.h" |
shimniok | 14:1dd83e626153 | 7 | |
shimniok | 14:1dd83e626153 | 8 | /** RoverBaseboard R0.5 */ |
shimniok | 14:1dd83e626153 | 9 | #define I2CSDA p9 |
shimniok | 14:1dd83e626153 | 10 | #define I2CSCL p10 |
shimniok | 14:1dd83e626153 | 11 | #define UART0TX USBTX /** mbed */ |
shimniok | 14:1dd83e626153 | 12 | #define UART0RX USBRX /** mbed */ |
shimniok | 14:1dd83e626153 | 13 | #define UART1TX p13 |
shimniok | 14:1dd83e626153 | 14 | #define UART1RX p14 |
shimniok | 14:1dd83e626153 | 15 | #define UART2TX p28 |
shimniok | 14:1dd83e626153 | 16 | #define UART2RX p27 |
shimniok | 14:1dd83e626153 | 17 | #define UART3TX p17 |
shimniok | 14:1dd83e626153 | 18 | #define UART3RX p18 |
shimniok | 14:1dd83e626153 | 19 | #define THROTTLE p22 |
shimniok | 14:1dd83e626153 | 20 | #define STEERING p21 |
shimniok | 14:1dd83e626153 | 21 | #define ENCALEFT p30 |
shimniok | 14:1dd83e626153 | 22 | #define ALEFT ENCALEFT |
shimniok | 14:1dd83e626153 | 23 | #define ENCARIGHT p29 |
shimniok | 14:1dd83e626153 | 24 | #define ARIGHT ENCARIGHT |
shimniok | 14:1dd83e626153 | 25 | #define ENCBLEFT /** unavailable for mbed */ |
shimniok | 14:1dd83e626153 | 26 | #define BLEFT ENCBLEFT |
shimniok | 14:1dd83e626153 | 27 | #define ENCBRIGHT /** unavailable for mbed */ |
shimniok | 14:1dd83e626153 | 28 | #define BRIGHT ENCBRIGHT |
shimniok | 14:1dd83e626153 | 29 | // REV 0.5 |
shimniok | 14:1dd83e626153 | 30 | #define _D0 p11 |
shimniok | 14:1dd83e626153 | 31 | #define _D1 p12 |
shimniok | 14:1dd83e626153 | 32 | #define _D2 /** unavailable for mbed */ |
shimniok | 14:1dd83e626153 | 33 | #define _D7 /** unavailable for mbed */ |
shimniok | 14:1dd83e626153 | 34 | #define _D8 /** unavailable for mbed */ |
shimniok | 14:1dd83e626153 | 35 | #define _D9 /** unavailable for mbed */ |
shimniok | 14:1dd83e626153 | 36 | #define _P1 p26 |
shimniok | 14:1dd83e626153 | 37 | #define _P2 p25 |
shimniok | 14:1dd83e626153 | 38 | #define _A0 p15 |
shimniok | 14:1dd83e626153 | 39 | #define _A1 p16 |
shimniok | 14:1dd83e626153 | 40 | #define _A2 p19 |
shimniok | 14:1dd83e626153 | 41 | #define _A3 p20 |
shimniok | 14:1dd83e626153 | 42 | // REV 0.6 |
shimniok | 14:1dd83e626153 | 43 | #define IO0 p11 |
shimniok | 14:1dd83e626153 | 44 | #define IO1 p12 |
shimniok | 14:1dd83e626153 | 45 | #define PW0 p25 |
shimniok | 14:1dd83e626153 | 46 | #define PW1 p26 |
shimniok | 14:1dd83e626153 | 47 | #define AN0 p15 |
shimniok | 14:1dd83e626153 | 48 | #define AN1 p16 |
shimniok | 14:1dd83e626153 | 49 | #define AN2 p19 |
shimniok | 14:1dd83e626153 | 50 | #define AN3 p20 |
shimniok | 14:1dd83e626153 | 51 | |
shimniok | 30:ed791f1f7f7d | 52 | #define LBUTTON _D1 |
shimniok | 30:ed791f1f7f7d | 53 | #define CBUTTON _D0 |
shimniok | 30:ed791f1f7f7d | 54 | #define RBUTTON _P1 |
shimniok | 30:ed791f1f7f7d | 55 | |
shimniok | 30:ed791f1f7f7d | 56 | #endif |