2021NHK main program move and shoot
Dependencies: 2021Bcon omni_wheel prototype01 PID ikarashiMDC_2byte_ver OmniPosition S-ShapeModelFloat Servo_softpwm NHK2021_ikarashiSV
pinconfig.h@2:25f1ed5834b8, 2021-10-31 (annotated)
- Committer:
- piroro4560
- Date:
- Sun Oct 31 23:42:55 2021 +0000
- Revision:
- 2:25f1ed5834b8
- Parent:
- 0:2b93017d0053
NHKRobocon 2021 Bteam
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
piroro4560 | 0:2b93017d0053 | 1 | #ifndef PIN_CONFIG_H |
piroro4560 | 0:2b93017d0053 | 2 | #define PIN_CONFIG_H |
piroro4560 | 0:2b93017d0053 | 3 | |
piroro4560 | 0:2b93017d0053 | 4 | #include "mbed.h" |
piroro4560 | 0:2b93017d0053 | 5 | |
piroro4560 | 0:2b93017d0053 | 6 | /*FEP*/ |
piroro4560 | 0:2b93017d0053 | 7 | static PinName const fepTX = PC_12; |
piroro4560 | 0:2b93017d0053 | 8 | static PinName const fepRX = PD_2; |
piroro4560 | 0:2b93017d0053 | 9 | static uint8_t const fepad = 005; // 通信相手のアドレス |
piroro4560 | 0:2b93017d0053 | 10 | |
piroro4560 | 0:2b93017d0053 | 11 | /*PC*/ |
piroro4560 | 0:2b93017d0053 | 12 | static PinName const pcTX = USBTX; |
piroro4560 | 0:2b93017d0053 | 13 | static PinName const pcRX = USBRX; |
piroro4560 | 0:2b93017d0053 | 14 | |
piroro4560 | 0:2b93017d0053 | 15 | /*RS485 MDC*/ |
piroro4560 | 0:2b93017d0053 | 16 | static PinName const mdcTX = PC_10; |
piroro4560 | 0:2b93017d0053 | 17 | static PinName const mdcRX = PC_11; |
piroro4560 | 0:2b93017d0053 | 18 | |
piroro4560 | 0:2b93017d0053 | 19 | /*slv*/ |
piroro4560 | 0:2b93017d0053 | 20 | static PinName const slv1 = PB_5; |
piroro4560 | 0:2b93017d0053 | 21 | static PinName const slv2 = PB_4; |
piroro4560 | 0:2b93017d0053 | 22 | static PinName const slv3 = PB_10; |
piroro4560 | 0:2b93017d0053 | 23 | static PinName const slv4 = PA_5; |
piroro4560 | 0:2b93017d0053 | 24 | static PinName const slv5 = PB_9; |
piroro4560 | 0:2b93017d0053 | 25 | static PinName const slv6 = PB_8; |
piroro4560 | 0:2b93017d0053 | 26 | |
piroro4560 | 0:2b93017d0053 | 27 | /*servo*/ |
piroro4560 | 0:2b93017d0053 | 28 | static PinName const servo1 = PA_10; |
piroro4560 | 0:2b93017d0053 | 29 | static PinName const servo2 = PB_3; |
piroro4560 | 0:2b93017d0053 | 30 | static PinName const servo3 = PB_3; |
piroro4560 | 0:2b93017d0053 | 31 | |
piroro4560 | 0:2b93017d0053 | 32 | /*emergency_stop*/ |
piroro4560 | 0:2b93017d0053 | 33 | static PinName const em_stop = PB_0; |
piroro4560 | 0:2b93017d0053 | 34 | |
piroro4560 | 0:2b93017d0053 | 35 | /*measuring wheel*/ |
piroro4560 | 0:2b93017d0053 | 36 | static PinName const mwTX = PC_6; |
piroro4560 | 0:2b93017d0053 | 37 | static PinName const mwRX = PC_7; |
piroro4560 | 0:2b93017d0053 | 38 | #endif |