Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 2022_NHK_B_canTR FEP_RX22 QEI ikarashiMDC_2byte_ver mbed HOSOKIkikou R1370 SEKIkikou
pinconfig.h@2:ea17f9e04972, 2022-09-30 (annotated)
- Committer:
- umekou
- Date:
- Fri Sep 30 05:31:57 2022 +0000
- Revision:
- 2:ea17f9e04972
- Parent:
- 1:78fc05fff36a
- Child:
- 4:3c04f88a8cd8
Add QEI
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 | |
ikarashikota | 0:877aeb04390a | 4 | #include "mbed.h" |
ikarashikota | 0:877aeb04390a | 5 | |
ikarashikota | 0:877aeb04390a | 6 | /*stop*/ |
ikarashikota | 0:877aeb04390a | 7 | static PinName const stop_pin = PA_5; |
ikarashikota | 0:877aeb04390a | 8 | |
ikarashikota | 0:877aeb04390a | 9 | /*FEP*/ |
ikarashikota | 1:78fc05fff36a | 10 | static PinName const fepTX = PA_9; |
ikarashikota | 1:78fc05fff36a | 11 | static PinName const fepRX = PA_10; |
ikarashikota | 1:78fc05fff36a | 12 | static uint8_t const fepad = 005; // 通信相手のアドレス |
ikarashikota | 0:877aeb04390a | 13 | |
ikarashikota | 0:877aeb04390a | 14 | /*motor serial*/ |
ikarashikota | 0:877aeb04390a | 15 | static PinName const motorTX = PC_10; |
ikarashikota | 0:877aeb04390a | 16 | static PinName const motorRX = PC_11; |
ikarashikota | 0:877aeb04390a | 17 | |
ikarashikota | 0:877aeb04390a | 18 | /*encoder*/ |
ikarashikota | 0:877aeb04390a | 19 | static PinName const encoder1_A = PB_6; |
ikarashikota | 0:877aeb04390a | 20 | static PinName const encoder1_B = PB_7; |
ikarashikota | 0:877aeb04390a | 21 | |
ikarashikota | 0:877aeb04390a | 22 | static PinName const encoder2_A = PA_6; |
ikarashikota | 0:877aeb04390a | 23 | static PinName const encoder2_B = PA_7; |
ikarashikota | 0:877aeb04390a | 24 | |
ikarashikota | 0:877aeb04390a | 25 | static PinName const encoder3_A = PC_3; |
ikarashikota | 0:877aeb04390a | 26 | static PinName const encoder3_B = PC_2; |
ikarashikota | 0:877aeb04390a | 27 | |
ikarashikota | 0:877aeb04390a | 28 | static PinName const encoder4_A = PA_1; |
ikarashikota | 0:877aeb04390a | 29 | static PinName const encoder4_B = PA_0; |
ikarashikota | 0:877aeb04390a | 30 | |
ikarashikota | 0:877aeb04390a | 31 | #endif |