BE@R lab / Mbed 2 deprecated dog_V3_3_testmotor

Dependencies:   Communication_Robot QEI iSerial mbed motion_control

Fork of dog_V3_2_testmotor by BE@R lab

pin_config.h

Committer:
soulx
Date:
2015-07-15
Revision:
0:2433ddae2772
Child:
6:8d80c84e0c09

File content as of revision 0:2433ddae2772:

#ifndef PIN_CONFIG_H
#define PIN_CONFIG_H

//1
#define PWM_L_U D9 //PC_7
#define INA_L_U PC_8
#define INB_L_U PC_6
#define CS_L_U A0  //PA_0
#define EA_L_U PA_12

//2
#define PWM_L_L PC_9
#define INA_L_L PB_4
#define INB_L_L PC_5
#define CS_L_L A1  //PA_1
#define EA_L_L PB_3 


//3
#define PWM_R_U D6 //PB_10
#define INA_R_U PA_11
#define INB_R_U PA_12
#define CS_R_U A2  //PA_4


//4
#define PWM_R_L D7  //PA_8
#define INA_R_L PB_15
#define INB_R_L PB_14
#define CS_R_L A3  //PB_0

#define ENCODE_A PA_13
#define ENCODE_B PA_14
#define ENCODE_Z PA_15

#define LIMIT_LU_U PB_2
#define LIMIT_LU_D PB_1

#define LIMIT_LL_U PB_13
#define LIMIT_LL_D PC_4

#define LIMIT_RU_U PC_10
#define LIMIT_RU_D PC_12

#define LIMIT_RL_U PC_11
#define LIMIT_RL_D PD_2

#define VR_LU A4
#define VR_LL A5
#define VR_RU PC_2
#define VR_RL PC_3

#define TX_PAN_A    D8  //PA_8
#define RX_PAN_A    D2  //PA_10

//PIN for RTC
#define RTC_SDA D14  //PB_9
#define RTC_SCL D15  //PB_8

//PIN for SD card
#define SD_SCK D13  //PA_5
#define SD_MOSI D12 //PA_6
#define SD_MISO D11 //PA_7
#define SD_SS D10   //PB_6


#endif