sub2 MDC and enc
Dependencies: 2022_NHK_B_canTR FEP_RX22 QEI ikarashiMDC_2byte_ver mbed HOSOKIkikou R1370 SEKIkikou
pinconfig.h@8:cccc03be9714, 19 months ago (annotated)
- Committer:
- umekou
- Date:
- Thu Oct 13 03:24:48 2022 +0000
- Revision:
- 8:cccc03be9714
- Parent:
- 6:b426dcaa7c78
del unuse comments
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:38778dac6ea0 | 4 | //sub2_pinconfig.h |
ikarashikota | 0:877aeb04390a | 5 | |
umekou | 5:38778dac6ea0 | 6 | #include "mbed.h" |
umekou | 6:b426dcaa7c78 | 7 | |
umekou | 6:b426dcaa7c78 | 8 | /*stop*/ |
umekou | 6:b426dcaa7c78 | 9 | static PinName const stop_pin = PA_5; |
umekou | 6:b426dcaa7c78 | 10 | |
ikarashikota | 0:877aeb04390a | 11 | /*FEP*/ |
umekou | 5:38778dac6ea0 | 12 | static PinName const fepTX = PA_0; |
umekou | 5:38778dac6ea0 | 13 | static PinName const fepRX = PA_1; |
umekou | 4:3c04f88a8cd8 | 14 | static uint8_t const fepad = 20; // 通信相手のアドレス |
umekou | 6:b426dcaa7c78 | 15 | |
ikarashikota | 0:877aeb04390a | 16 | /*motor serial*/ |
ikarashikota | 0:877aeb04390a | 17 | static PinName const motorTX = PC_10; |
ikarashikota | 0:877aeb04390a | 18 | static PinName const motorRX = PC_11; |
ikarashikota | 0:877aeb04390a | 19 | |
ikarashikota | 0:877aeb04390a | 20 | /*encoder*/ |
umekou | 4:3c04f88a8cd8 | 21 | static PinName const encoder1_A = PB_2; |
umekou | 4:3c04f88a8cd8 | 22 | static PinName const encoder1_B = PB_1; |
umekou | 5:38778dac6ea0 | 23 | |
ikarashikota | 0:877aeb04390a | 24 | static PinName const encoder2_A = PA_6; |
ikarashikota | 0:877aeb04390a | 25 | static PinName const encoder2_B = PA_7; |
ikarashikota | 0:877aeb04390a | 26 | |
umekou | 4:3c04f88a8cd8 | 27 | static PinName const encoder3_A = PB_13; |
umekou | 4:3c04f88a8cd8 | 28 | static PinName const encoder3_B = PB_15; |
ikarashikota | 0:877aeb04390a | 29 | |
umekou | 5:38778dac6ea0 | 30 | static PinName const encoder4_A = PB_3; |
umekou | 5:38778dac6ea0 | 31 | static PinName const encoder4_B = PB_4; |
umekou | 5:38778dac6ea0 | 32 | |
umekou | 6:b426dcaa7c78 | 33 | /*jyro*/ |
umekou | 6:b426dcaa7c78 | 34 | static PinName const jyro_TX = PA_9; |
umekou | 6:b426dcaa7c78 | 35 | static PinName const jyro_RX = PB_7; |
umekou | 6:b426dcaa7c78 | 36 | static PinName const jyro_RST = D6; |
umekou | 6:b426dcaa7c78 | 37 | |
umekou | 5:38778dac6ea0 | 38 | /*ikarashiCan*/ |
umekou | 5:38778dac6ea0 | 39 | static PinName const canrRD = PB_5; |
umekou | 5:38778dac6ea0 | 40 | static PinName const canrTD = PB_6; |
umekou | 5:38778dac6ea0 | 41 | |
umekou | 5:38778dac6ea0 | 42 | static PinName const cantRD = PB_8; |
umekou | 5:38778dac6ea0 | 43 | static PinName const cantTD = PB_9; |
ikarashikota | 0:877aeb04390a | 44 | |
ikarashikota | 0:877aeb04390a | 45 | #endif |