byeongjin kim
/
Hug2Go_ver_2
joystick_bjk
CONFIG.h@4:97a11deb0ab7, 2019-09-06 (annotated)
- Committer:
- Haeun
- Date:
- Fri Sep 06 01:39:40 2019 +0000
- Revision:
- 4:97a11deb0ab7
- Parent:
- 3:cfb7cc54a3ba
- Child:
- 6:beddcb25ad4e
Haeun_revised
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bhoney | 1:fd1e7e2d0780 | 1 | #pragma once |
Bhoney | 1:fd1e7e2d0780 | 2 | |
Bhoney | 2:284491e0f6bf | 3 | #define BH_BOARD |
Bhoney | 2:284491e0f6bf | 4 | //#define SH_BOARD |
Bhoney | 1:fd1e7e2d0780 | 5 | |
Bhoney | 1:fd1e7e2d0780 | 6 | |
Bhoney | 1:fd1e7e2d0780 | 7 | #if defined BH_BOARD |
Bhoney | 1:fd1e7e2d0780 | 8 | #define ToF |
Bhoney | 1:fd1e7e2d0780 | 9 | #define ToF_I2C_SDA PB_7 |
Bhoney | 1:fd1e7e2d0780 | 10 | #define ToF_I2C_SCL PB_6 |
Bhoney | 1:fd1e7e2d0780 | 11 | |
Bhoney | 1:fd1e7e2d0780 | 12 | #define ToF_XShut_1 PF_0 |
Bhoney | 1:fd1e7e2d0780 | 13 | #define ToF_XShut_2 PF_1 |
Bhoney | 1:fd1e7e2d0780 | 14 | #define ToF_XShut_3 PA_8 |
Bhoney | 1:fd1e7e2d0780 | 15 | |
Bhoney | 2:284491e0f6bf | 16 | #define ToF_SETUP_TIME 0.0455f |
Bhoney | 2:284491e0f6bf | 17 | |
Bhoney | 1:fd1e7e2d0780 | 18 | #define MOTOR_REVERSE_R PA_0 |
Bhoney | 1:fd1e7e2d0780 | 19 | #define MOTOR_REVERSE_L PA_1 |
Bhoney | 1:fd1e7e2d0780 | 20 | |
Bhoney | 1:fd1e7e2d0780 | 21 | #define MOTOR_THROTTLE_R PA_6 |
Bhoney | 1:fd1e7e2d0780 | 22 | #define MOTOR_THROTTLE_L PA_5 |
Bhoney | 1:fd1e7e2d0780 | 23 | |
Bhoney | 3:cfb7cc54a3ba | 24 | #define BLUETOOTH1_RX PA_10 |
Bhoney | 3:cfb7cc54a3ba | 25 | #define BLUETOOTH1_TX PA_9 |
Bhoney | 3:cfb7cc54a3ba | 26 | |
Haeun | 4:97a11deb0ab7 | 27 | #define BLUETOOTH2_RX PA_3 |
Haeun | 4:97a11deb0ab7 | 28 | #define BLUETOOTH2_TX PA_2 |
Bhoney | 3:cfb7cc54a3ba | 29 | |
Bhoney | 1:fd1e7e2d0780 | 30 | |
Bhoney | 1:fd1e7e2d0780 | 31 | #define UART_BAUD 115200 |
Bhoney | 1:fd1e7e2d0780 | 32 | #define DAC_ONE_STEP 0.1f |
Bhoney | 2:284491e0f6bf | 33 | #define HIGH_BOUND 1300 |
Bhoney | 2:284491e0f6bf | 34 | #define LOW_BOUND 700 |
Bhoney | 1:fd1e7e2d0780 | 35 | //////////////////////////////////////////////////// |
Bhoney | 1:fd1e7e2d0780 | 36 | #elif defined SH_BOARD |
Bhoney | 1:fd1e7e2d0780 | 37 | |
Bhoney | 1:fd1e7e2d0780 | 38 | // #define ToF |
Bhoney | 1:fd1e7e2d0780 | 39 | // #define ToF_I2C_SDA NC |
Bhoney | 1:fd1e7e2d0780 | 40 | // #define ToF_I2C_SCL NC |
Bhoney | 1:fd1e7e2d0780 | 41 | |
Bhoney | 1:fd1e7e2d0780 | 42 | // #define ToF_XShut_1 NC |
Bhoney | 1:fd1e7e2d0780 | 43 | // #define ToF_XShut_2 NC |
Bhoney | 1:fd1e7e2d0780 | 44 | // #define ToF_XShut_3 NC |
Bhoney | 1:fd1e7e2d0780 | 45 | |
Bhoney | 1:fd1e7e2d0780 | 46 | #define MOTOR_REVERSE_R D11 |
Bhoney | 1:fd1e7e2d0780 | 47 | #define MOTOR_REVERSE_L D12 |
Bhoney | 1:fd1e7e2d0780 | 48 | |
Bhoney | 1:fd1e7e2d0780 | 49 | #define MOTOR_THROTTLE_R A4 |
Bhoney | 1:fd1e7e2d0780 | 50 | #define MOTOR_THROTTLE_L A5 |
Bhoney | 1:fd1e7e2d0780 | 51 | |
Bhoney | 1:fd1e7e2d0780 | 52 | #define BLUETOOTH_RX D0 |
Bhoney | 1:fd1e7e2d0780 | 53 | #define BLUETOOTH_TX D1 |
Bhoney | 1:fd1e7e2d0780 | 54 | |
Bhoney | 1:fd1e7e2d0780 | 55 | #define UART_BAUD 115200 |
Bhoney | 1:fd1e7e2d0780 | 56 | #define DAC_ONE_STEP 0.1f |
Bhoney | 1:fd1e7e2d0780 | 57 | #endif |