2022 NHK Bteam main totyuu
Dependencies: HOSOKIkikou FEP_RX22 QEI R1370 ikarashiMDC_2byte_ver mbed 2022_NHK_B_canTR PID SEKIkikou
pinconfig.h@7:76790bcece4b, 2022-10-12 (annotated)
- Committer:
- umekou
- Date:
- Wed Oct 12 00:22:35 2022 +0000
- Revision:
- 7:76790bcece4b
- Parent:
- 5:2934a132d594
jikken mada
Who changed what in which revision?
User | Revision | Line number | New 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 | 7:76790bcece4b | 22 | /* |
umekou | 4:3c04f88a8cd8 | 23 | static PinName const encoder1_A = PB_2; |
umekou | 4:3c04f88a8cd8 | 24 | static PinName const encoder1_B = PB_1; |
umekou | 7:76790bcece4b | 25 | */ |
ikarashikota | 0:877aeb04390a | 26 | static PinName const encoder2_A = PA_6; |
ikarashikota | 0:877aeb04390a | 27 | static PinName const encoder2_B = PA_7; |
ikarashikota | 0:877aeb04390a | 28 | |
umekou | 4:3c04f88a8cd8 | 29 | static PinName const encoder3_A = PB_13; |
umekou | 4:3c04f88a8cd8 | 30 | static PinName const encoder3_B = PB_15; |
umekou | 5:2934a132d594 | 31 | /* |
umekou | 5:2934a132d594 | 32 | static PinName const encoder4_A = PB_3; |
umekou | 5:2934a132d594 | 33 | static PinName const encoder4_B = PB_4; |
umekou | 5:2934a132d594 | 34 | */ |
ikarashikota | 0:877aeb04390a | 35 | static PinName const encoder4_A = PA_1; |
ikarashikota | 0:877aeb04390a | 36 | static PinName const encoder4_B = PA_0; |
ikarashikota | 0:877aeb04390a | 37 | |
umekou | 5:2934a132d594 | 38 | /*ikarashiCan*/ |
umekou | 5:2934a132d594 | 39 | static PinName const canrRD = PB_5; |
umekou | 5:2934a132d594 | 40 | static PinName const canrTD = PB_6; |
umekou | 5:2934a132d594 | 41 | |
umekou | 5:2934a132d594 | 42 | static PinName const cantRD = PB_8; |
umekou | 5:2934a132d594 | 43 | static PinName const cantTD = PB_9; |
umekou | 5:2934a132d594 | 44 | |
ikarashikota | 0:877aeb04390a | 45 | #endif |