![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
joystick_bjk
CONFIG.h
- Committer:
- Haeun
- Date:
- 2019-09-19
- Revision:
- 8:27d6afa7cb7c
- Parent:
- 6:beddcb25ad4e
File content as of revision 8:27d6afa7cb7c:
#pragma once #define UART_BAUD 115200 #define DAC_ONE_STEP 0.025f #define MIN_SPEED 0.35f #define MAX_SPEED 0.55f #define SPEED_CORRECTION 0.008f #define HIGH_BOUND 1300 #define LOW_BOUND 700 #define TIME_DELAY_FOR_REVERSE 3.0 //#define ToF_SETUP_TIME 0.0455f //I2C1 #define ToF1_I2C_SCL PB_6 #define ToF1_I2C_SDA PB_9 //I2C2 #define ToF2_I2C_SCL PF_1 #define ToF2_I2C_SDA PF_0 //I2C3 #define ToF3_I2C_SCL PF_14 #define ToF3_I2C_SDA PF_15 //UART4 #define BLUETOOTH1_TX PA_0 #define BLUETOOTH1_RX PD_0 //UART5 #define BLUETOOTH2_TX PC_12 #define BLUETOOTH2_RX PD_2 #define MOTOR_REVERSE_R PD_5 #define MOTOR_REVERSE_L PD_4 //DAC #define MOTOR_THROTTLE_R PA_4 #define MOTOR_THROTTLE_L PA_5 ////reserved pin ////SPI2 //#define SPI2_SCK PB_10 //#define SPI2_NSS PB_12 //#define SPI2_MISO PC_2 //#define SPI2_MOSI PC_3 ////SPI3 //#define SPI3_SCK PA_15 //#define SPI3_NSS PB_2 //#define SPI3_MISO PC_10 //#define SPI3_MOSI PC_11 // ////USART3 //#define USART3_TX PD_8 //#define USART3_RX PD_9 // ////ADC //#define ADC2_t PA_3 //#define ADC3_1_t PF_4 //#define ADC3_2_t PF_5 // ////TIM1 //#define TIM1_t PE_9 //#define TIM4_t PD_12 //#define TIM9_t PE_5 //#define TIM11_t PF_7