byeongjin kim
/
Hug2Go_ver_2
joystick_bjk
CONFIG.h
- Committer:
- Bhoney
- Date:
- 2019-09-05
- Revision:
- 2:284491e0f6bf
- Parent:
- 1:fd1e7e2d0780
- Child:
- 3:cfb7cc54a3ba
File content as of revision 2:284491e0f6bf:
#pragma once #define BH_BOARD //#define SH_BOARD #if defined BH_BOARD #define ToF #define ToF_I2C_SDA PB_7 #define ToF_I2C_SCL PB_6 #define ToF_XShut_1 PF_0 #define ToF_XShut_2 PF_1 #define ToF_XShut_3 PA_8 #define ToF_SETUP_TIME 0.0455f #define MOTOR_REVERSE_R PA_0 #define MOTOR_REVERSE_L PA_1 #define MOTOR_THROTTLE_R PA_6 #define MOTOR_THROTTLE_L PA_5 #define BLUETOOTH_RX PA_10 #define BLUETOOTH_TX PA_9 #define UART_BAUD 115200 #define DAC_ONE_STEP 0.1f #define HIGH_BOUND 1300 #define LOW_BOUND 700 //////////////////////////////////////////////////// #elif defined SH_BOARD // #define ToF // #define ToF_I2C_SDA NC // #define ToF_I2C_SCL NC // #define ToF_XShut_1 NC // #define ToF_XShut_2 NC // #define ToF_XShut_3 NC #define MOTOR_REVERSE_R D11 #define MOTOR_REVERSE_L D12 #define MOTOR_THROTTLE_R A4 #define MOTOR_THROTTLE_L A5 #define BLUETOOTH_RX D0 #define BLUETOOTH_TX D1 #define UART_BAUD 115200 #define DAC_ONE_STEP 0.1f #endif