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.
Dependencies: BEAR_Reciever Motor eeprom iSerial mbed
Fork of BEAR_Motion by
pinconfig.h@37:8719223998d8, 2016-06-07 (annotated)
- Committer:
- icyzkungz
- Date:
- Tue Jun 07 07:00:11 2016 +0000
- Revision:
- 37:8719223998d8
- Parent:
- 11:3dd92d1d542c
update protocol.h
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ParinyaT | 0:451c27e4d55e | 1 | #ifndef PIN_CONFIG_H |
| ParinyaT | 0:451c27e4d55e | 2 | #define PIN_CONFIG_H |
| ParinyaT | 0:451c27e4d55e | 3 | |
| ParinyaT | 0:451c27e4d55e | 4 | //upper left |
| ParinyaT | 0:451c27e4d55e | 5 | #define PWM_LU A1 |
| ParinyaT | 0:451c27e4d55e | 6 | #define CS_LU A2 |
| ParinyaT | 0:451c27e4d55e | 7 | #define A_LU PD_2 |
| ParinyaT | 0:451c27e4d55e | 8 | #define B_LU A0 |
| ParinyaT | 0:451c27e4d55e | 9 | |
| ParinyaT | 1:84167ca00307 | 10 | //lower left |
| ParinyaT | 1:84167ca00307 | 11 | #define PWM_LL PB_9 |
| ParinyaT | 1:84167ca00307 | 12 | #define CS_LL D11 |
| ParinyaT | 1:84167ca00307 | 13 | #define A_LL PB_8 |
| ParinyaT | 1:84167ca00307 | 14 | #define B_LL PC_9 |
| ParinyaT | 1:84167ca00307 | 15 | |
| ParinyaT | 0:451c27e4d55e | 16 | //limit switch |
| ParinyaT | 0:451c27e4d55e | 17 | #define Lim_LU1 PB_7 |
| ParinyaT | 0:451c27e4d55e | 18 | #define Lim_LU2 PC_13 |
| ParinyaT | 0:451c27e4d55e | 19 | #define Lim_LL1 PC_14 |
| ParinyaT | 0:451c27e4d55e | 20 | #define Lim_LL2 PC_15 |
| ParinyaT | 0:451c27e4d55e | 21 | #define Lim_RU1 D2 |
| ParinyaT | 0:451c27e4d55e | 22 | #define Lim_RU2 D3 |
| ParinyaT | 0:451c27e4d55e | 23 | #define Lim_RL1 D8 |
| ParinyaT | 0:451c27e4d55e | 24 | #define Lim_RL2 D9 |
| ParinyaT | 0:451c27e4d55e | 25 | |
| ParinyaT | 0:451c27e4d55e | 26 | //encoder mode1 |
| ParinyaT | 0:451c27e4d55e | 27 | #define Emosi PC_12 |
| ParinyaT | 0:451c27e4d55e | 28 | #define Emiso PC_11 |
| ParinyaT | 0:451c27e4d55e | 29 | #define Esck PC_10 |
| ParinyaT | 0:451c27e4d55e | 30 | #define EncoderA PA_13 |
| ParinyaT | 0:451c27e4d55e | 31 | #define EncoderB PA_14 |
| ParinyaT | 0:451c27e4d55e | 32 | |
| ParinyaT | 1:84167ca00307 | 33 | //serial comm |
| ParinyaT | 11:3dd92d1d542c | 34 | #define Tx PA_15 |
| ParinyaT | 11:3dd92d1d542c | 35 | #define Rx PB_7 |
| ParinyaT | 1:84167ca00307 | 36 | #define Dir PB_5 |
| ParinyaT | 1:84167ca00307 | 37 | |
| ParinyaT | 0:451c27e4d55e | 38 | #endif |
