![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
devices.h@7:2066b62fc820, 2018-11-29 (annotated)
- Committer:
- shimniok
- Date:
- Thu Nov 29 16:12:24 2018 +0000
- Revision:
- 7:2066b62fc820
Added devices header mapping functions to peripherals/pins for RoverBaseboard
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 7:2066b62fc820 | 1 | /* |
shimniok | 7:2066b62fc820 | 2 | * devices.h |
shimniok | 7:2066b62fc820 | 3 | * |
shimniok | 7:2066b62fc820 | 4 | * Configure device assignments and device objects |
shimniok | 7:2066b62fc820 | 5 | * |
shimniok | 7:2066b62fc820 | 6 | * Created on: May 7, 2014 |
shimniok | 7:2066b62fc820 | 7 | * Author: mes |
shimniok | 7:2066b62fc820 | 8 | */ |
shimniok | 7:2066b62fc820 | 9 | |
shimniok | 7:2066b62fc820 | 10 | #ifndef DEVICES_H_ |
shimniok | 7:2066b62fc820 | 11 | #define DEVICES_H_ |
shimniok | 7:2066b62fc820 | 12 | |
shimniok | 7:2066b62fc820 | 13 | /** Device Objects */ |
shimniok | 7:2066b62fc820 | 14 | #include "L3G4200D.h" |
shimniok | 7:2066b62fc820 | 15 | |
shimniok | 7:2066b62fc820 | 16 | extern L3G4200D gyro; |
shimniok | 7:2066b62fc820 | 17 | |
shimniok | 7:2066b62fc820 | 18 | #include "mbed.h" |
shimniok | 7:2066b62fc820 | 19 | #include "boards.h" |
shimniok | 7:2066b62fc820 | 20 | |
shimniok | 7:2066b62fc820 | 21 | /** GPS */ |
shimniok | 7:2066b62fc820 | 22 | #define GPSTX UART1TX |
shimniok | 7:2066b62fc820 | 23 | #define GPSRX UART1RX |
shimniok | 7:2066b62fc820 | 24 | |
shimniok | 7:2066b62fc820 | 25 | /** Telemetry */ |
shimniok | 7:2066b62fc820 | 26 | #define TELEMTX UART2TX |
shimniok | 7:2066b62fc820 | 27 | #define TELEMRX UART2RX |
shimniok | 7:2066b62fc820 | 28 | |
shimniok | 7:2066b62fc820 | 29 | /** LCD */ |
shimniok | 7:2066b62fc820 | 30 | #define LCDTX UART3TX |
shimniok | 7:2066b62fc820 | 31 | #define LCDRX UART3RX |
shimniok | 7:2066b62fc820 | 32 | |
shimniok | 7:2066b62fc820 | 33 | /** UI Buttons */ |
shimniok | 7:2066b62fc820 | 34 | #define BUTTONNEXT _D1 |
shimniok | 7:2066b62fc820 | 35 | #define BUTTONPREV _P1 |
shimniok | 7:2066b62fc820 | 36 | #define BUTTONSELECT _D0 |
shimniok | 7:2066b62fc820 | 37 | |
shimniok | 7:2066b62fc820 | 38 | #endif /* CONFIG_H_ */ |