2022 NHK Bteam main totyuu

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

Committer:
umekou
Date:
Sun Oct 09 10:06:53 2022 +0000
Revision:
5:2934a132d594
Parent:
4:3c04f88a8cd8
Child:
7:76790bcece4b
ashimawari tabun kansei

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ikarashikota 0:877aeb04390a 1 #ifndef PIN_CONFIG_H
ikarashikota 0:877aeb04390a 2 #define PIN_CONFIG_H
ikarashikota 0:877aeb04390a 3
umekou 5:2934a132d594 4 //main_pinconfig.h
umekou 5:2934a132d594 5
ikarashikota 0:877aeb04390a 6 #include "mbed.h"
ikarashikota 0:877aeb04390a 7
ikarashikota 0:877aeb04390a 8 /*stop*/
ikarashikota 0:877aeb04390a 9 static PinName const stop_pin = PA_5;
ikarashikota 0:877aeb04390a 10
ikarashikota 0:877aeb04390a 11 /*FEP*/
umekou 4:3c04f88a8cd8 12
ikarashikota 1:78fc05fff36a 13 static PinName const fepTX = PA_9;
ikarashikota 1:78fc05fff36a 14 static PinName const fepRX = PA_10;
umekou 4:3c04f88a8cd8 15 static uint8_t const fepad = 20; // 通信相手のアドレス
ikarashikota 0:877aeb04390a 16
ikarashikota 0:877aeb04390a 17 /*motor serial*/
ikarashikota 0:877aeb04390a 18 static PinName const motorTX = PC_10;
ikarashikota 0:877aeb04390a 19 static PinName const motorRX = PC_11;
ikarashikota 0:877aeb04390a 20
ikarashikota 0:877aeb04390a 21 /*encoder*/
umekou 4:3c04f88a8cd8 22 static PinName const encoder1_A = PB_2;
umekou 4:3c04f88a8cd8 23 static PinName const encoder1_B = PB_1;
umekou 5:2934a132d594 24
ikarashikota 0:877aeb04390a 25 static PinName const encoder2_A = PA_6;
ikarashikota 0:877aeb04390a 26 static PinName const encoder2_B = PA_7;
ikarashikota 0:877aeb04390a 27
umekou 4:3c04f88a8cd8 28 static PinName const encoder3_A = PB_13;
umekou 4:3c04f88a8cd8 29 static PinName const encoder3_B = PB_15;
umekou 5:2934a132d594 30 /*
umekou 5:2934a132d594 31 static PinName const encoder4_A = PB_3;
umekou 5:2934a132d594 32 static PinName const encoder4_B = PB_4;
umekou 5:2934a132d594 33 */
ikarashikota 0:877aeb04390a 34 static PinName const encoder4_A = PA_1;
ikarashikota 0:877aeb04390a 35 static PinName const encoder4_B = PA_0;
ikarashikota 0:877aeb04390a 36
umekou 5:2934a132d594 37 /*ikarashiCan*/
umekou 5:2934a132d594 38 static PinName const canrRD = PB_5;
umekou 5:2934a132d594 39 static PinName const canrTD = PB_6;
umekou 5:2934a132d594 40
umekou 5:2934a132d594 41 static PinName const cantRD = PB_8;
umekou 5:2934a132d594 42 static PinName const cantTD = PB_9;
umekou 5:2934a132d594 43
ikarashikota 0:877aeb04390a 44 #endif