2022 NHK Bteam main totyuu

Dependencies:   HOSOKIkikou FEP_RX22 QEI R1370 ikarashiMDC_2byte_ver mbed 2022_NHK_B_canTR PID SEKIkikou

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 //main_pinconfig.h
00005 
00006 #include "mbed.h"
00007 
00008 /*stop*/
00009 static PinName const stop_pin = PA_5;
00010 
00011 /*FEP*/
00012 
00013 static PinName const fepTX = PA_9;
00014 static PinName const fepRX = PA_10;
00015 static uint8_t const fepad = 20; // 通信相手のアドレス
00016 
00017 /*motor serial*/
00018 static PinName const motorTX = PC_10;
00019 static PinName const motorRX = PC_11;
00020 
00021 /*encoder*/
00022 /*
00023 static PinName const encoder1_A = PB_2;
00024 static PinName const encoder1_B = PB_1;
00025 */
00026 static PinName const encoder2_A = PA_6;
00027 static PinName const encoder2_B = PA_7;
00028 
00029 static PinName const encoder3_A = PB_13;
00030 static PinName const encoder3_B = PB_15;
00031 /*
00032 static PinName const encoder4_A = PB_3;
00033 static PinName const encoder4_B = PB_4;
00034 */
00035 static PinName const encoder4_A = PA_1;
00036 static PinName const encoder4_B = PA_0;
00037 
00038 /*ikarashiCan*/
00039 static PinName const canrRD = PB_5;
00040 static PinName const canrTD = PB_6;
00041 
00042 static PinName const cantRD = PB_8;
00043 static PinName const cantTD = PB_9;
00044 
00045 #endif