BE@R lab / Mbed 2 deprecated test_motion_board

Dependencies:   Motor mbed eeprom

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pinconfig.h Source File

pinconfig.h

00001 #ifndef PIN_CONFIG_H
00002 #define PIN_CONFIG_H
00003 
00004 //upper left
00005 #define PWM_LU A1
00006 #define CS_LU A2
00007 #define A_LU PD_2
00008 #define B_LU A0
00009 
00010 //lower left
00011 #define PWM_LL PB_9
00012 #define CS_LL D11
00013 #define A_LL PB_8
00014 #define B_LL PC_9
00015 
00016 //limit switch
00017 /*#define Lim_LU1 PB_7
00018 #define Lim_LU2 PC_13
00019 #define Lim_LL1 PC_14
00020 #define Lim_LL2 PC_15*/
00021 #define Lim_RU1 D2
00022 #define Lim_RU2 D3
00023 #define Lim_RL1 D8
00024 #define Lim_RL2 D9
00025 #define Lim_IR1 PC_2
00026 
00027 
00028 //encoder mode1
00029 #define Emosi PC_12
00030 #define Emiso PC_11
00031 #define Esck PC_10
00032 #define EncoderA PA_13
00033 #define EncoderB PA_14
00034 
00035 //serial comm
00036 #define Tx PA_2
00037 #define Rx PA_3
00038 #define Dir PB_5
00039 //eeprom
00040 #define I2C_SDA D14
00041 #define I2C_SCL D15
00042 
00043 #endif