Motion controll board test program
Dependencies: Motor mbed eeprom
Diff: pinconfig.h
- Revision:
- 0:be4a5e3ebb41
- Child:
- 1:5a5abae3748b
diff -r 000000000000 -r be4a5e3ebb41 pinconfig.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pinconfig.h Tue Dec 22 15:02:04 2015 +0000 @@ -0,0 +1,38 @@ +#ifndef PIN_CONFIG_H +#define PIN_CONFIG_H + +//upper left +#define PWM_LU A1 +#define CS_LU A2 +#define A_LU PD_2 +#define B_LU A0 + +//lower left +#define PWM_LL PB_9 +#define CS_LL D11 +#define A_LL PB_8 +#define B_LL PC_9 + +//limit switch +#define Lim_LU1 PB_7 +#define Lim_LU2 PC_13 +#define Lim_LL1 PC_14 +#define Lim_LL2 PC_15 +#define Lim_RU1 D2 +#define Lim_RU2 D3 +#define Lim_RL1 D8 +#define Lim_RL2 D9 + +//encoder mode1 +#define Emosi PC_12 +#define Emiso PC_11 +#define Esck PC_10 +#define EncoderA PA_13 +#define EncoderB PA_14 + +//serial comm +#define Tx PA_2 +#define Rx PA_3 +#define Dir PB_5 + +#endif