![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
joystick_bjk
CONFIG.h
- Committer:
- Haeun
- Date:
- 2019-09-06
- Revision:
- 4:97a11deb0ab7
- Parent:
- 3:cfb7cc54a3ba
- Child:
- 6:beddcb25ad4e
File content as of revision 4:97a11deb0ab7:
#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 BLUETOOTH1_RX PA_10 #define BLUETOOTH1_TX PA_9 #define BLUETOOTH2_RX PA_3 #define BLUETOOTH2_TX PA_2 #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