Motion controll board test program
Dependencies: Motor mbed eeprom
pinconfig.h@0:be4a5e3ebb41, 2015-12-22 (annotated)
- Committer:
- ParinyaT
- Date:
- Tue Dec 22 15:02:04 2015 +0000
- Revision:
- 0:be4a5e3ebb41
- Child:
- 1:5a5abae3748b
BearLab Motion board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ParinyaT | 0:be4a5e3ebb41 | 1 | #ifndef PIN_CONFIG_H |
ParinyaT | 0:be4a5e3ebb41 | 2 | #define PIN_CONFIG_H |
ParinyaT | 0:be4a5e3ebb41 | 3 | |
ParinyaT | 0:be4a5e3ebb41 | 4 | //upper left |
ParinyaT | 0:be4a5e3ebb41 | 5 | #define PWM_LU A1 |
ParinyaT | 0:be4a5e3ebb41 | 6 | #define CS_LU A2 |
ParinyaT | 0:be4a5e3ebb41 | 7 | #define A_LU PD_2 |
ParinyaT | 0:be4a5e3ebb41 | 8 | #define B_LU A0 |
ParinyaT | 0:be4a5e3ebb41 | 9 | |
ParinyaT | 0:be4a5e3ebb41 | 10 | //lower left |
ParinyaT | 0:be4a5e3ebb41 | 11 | #define PWM_LL PB_9 |
ParinyaT | 0:be4a5e3ebb41 | 12 | #define CS_LL D11 |
ParinyaT | 0:be4a5e3ebb41 | 13 | #define A_LL PB_8 |
ParinyaT | 0:be4a5e3ebb41 | 14 | #define B_LL PC_9 |
ParinyaT | 0:be4a5e3ebb41 | 15 | |
ParinyaT | 0:be4a5e3ebb41 | 16 | //limit switch |
ParinyaT | 0:be4a5e3ebb41 | 17 | #define Lim_LU1 PB_7 |
ParinyaT | 0:be4a5e3ebb41 | 18 | #define Lim_LU2 PC_13 |
ParinyaT | 0:be4a5e3ebb41 | 19 | #define Lim_LL1 PC_14 |
ParinyaT | 0:be4a5e3ebb41 | 20 | #define Lim_LL2 PC_15 |
ParinyaT | 0:be4a5e3ebb41 | 21 | #define Lim_RU1 D2 |
ParinyaT | 0:be4a5e3ebb41 | 22 | #define Lim_RU2 D3 |
ParinyaT | 0:be4a5e3ebb41 | 23 | #define Lim_RL1 D8 |
ParinyaT | 0:be4a5e3ebb41 | 24 | #define Lim_RL2 D9 |
ParinyaT | 0:be4a5e3ebb41 | 25 | |
ParinyaT | 0:be4a5e3ebb41 | 26 | //encoder mode1 |
ParinyaT | 0:be4a5e3ebb41 | 27 | #define Emosi PC_12 |
ParinyaT | 0:be4a5e3ebb41 | 28 | #define Emiso PC_11 |
ParinyaT | 0:be4a5e3ebb41 | 29 | #define Esck PC_10 |
ParinyaT | 0:be4a5e3ebb41 | 30 | #define EncoderA PA_13 |
ParinyaT | 0:be4a5e3ebb41 | 31 | #define EncoderB PA_14 |
ParinyaT | 0:be4a5e3ebb41 | 32 | |
ParinyaT | 0:be4a5e3ebb41 | 33 | //serial comm |
ParinyaT | 0:be4a5e3ebb41 | 34 | #define Tx PA_2 |
ParinyaT | 0:be4a5e3ebb41 | 35 | #define Rx PA_3 |
ParinyaT | 0:be4a5e3ebb41 | 36 | #define Dir PB_5 |
ParinyaT | 0:be4a5e3ebb41 | 37 | |
ParinyaT | 0:be4a5e3ebb41 | 38 | #endif |