byeongjin kim
/
Hug2Go_ver_2
joystick_bjk
CONFIG.h@8:27d6afa7cb7c, 2019-09-19 (annotated)
- Committer:
- Haeun
- Date:
- Thu Sep 19 14:33:33 2019 +0000
- Revision:
- 8:27d6afa7cb7c
- Parent:
- 6:beddcb25ad4e
0919
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bhoney | 1:fd1e7e2d0780 | 1 | #pragma once |
Bhoney | 1:fd1e7e2d0780 | 2 | |
Haeun | 6:beddcb25ad4e | 3 | #define UART_BAUD 115200 |
Haeun | 6:beddcb25ad4e | 4 | #define DAC_ONE_STEP 0.025f |
Haeun | 6:beddcb25ad4e | 5 | #define MIN_SPEED 0.35f |
Haeun | 6:beddcb25ad4e | 6 | #define MAX_SPEED 0.55f |
Haeun | 6:beddcb25ad4e | 7 | #define SPEED_CORRECTION 0.008f |
Haeun | 6:beddcb25ad4e | 8 | #define HIGH_BOUND 1300 |
Haeun | 6:beddcb25ad4e | 9 | #define LOW_BOUND 700 |
Haeun | 6:beddcb25ad4e | 10 | #define TIME_DELAY_FOR_REVERSE 3.0 |
Haeun | 6:beddcb25ad4e | 11 | //#define ToF_SETUP_TIME 0.0455f |
Haeun | 6:beddcb25ad4e | 12 | |
Haeun | 6:beddcb25ad4e | 13 | //I2C1 |
Haeun | 6:beddcb25ad4e | 14 | #define ToF1_I2C_SCL PB_6 |
Haeun | 6:beddcb25ad4e | 15 | #define ToF1_I2C_SDA PB_9 |
Haeun | 6:beddcb25ad4e | 16 | //I2C2 |
Haeun | 6:beddcb25ad4e | 17 | #define ToF2_I2C_SCL PF_1 |
Haeun | 6:beddcb25ad4e | 18 | #define ToF2_I2C_SDA PF_0 |
Haeun | 6:beddcb25ad4e | 19 | //I2C3 |
Haeun | 6:beddcb25ad4e | 20 | #define ToF3_I2C_SCL PF_14 |
Haeun | 6:beddcb25ad4e | 21 | #define ToF3_I2C_SDA PF_15 |
Haeun | 6:beddcb25ad4e | 22 | |
Haeun | 6:beddcb25ad4e | 23 | //UART4 |
Haeun | 6:beddcb25ad4e | 24 | #define BLUETOOTH1_TX PA_0 |
Haeun | 6:beddcb25ad4e | 25 | #define BLUETOOTH1_RX PD_0 |
Haeun | 6:beddcb25ad4e | 26 | //UART5 |
Haeun | 6:beddcb25ad4e | 27 | #define BLUETOOTH2_TX PC_12 |
Haeun | 6:beddcb25ad4e | 28 | #define BLUETOOTH2_RX PD_2 |
Bhoney | 1:fd1e7e2d0780 | 29 | |
Bhoney | 1:fd1e7e2d0780 | 30 | |
Haeun | 6:beddcb25ad4e | 31 | #define MOTOR_REVERSE_R PD_5 |
Haeun | 6:beddcb25ad4e | 32 | #define MOTOR_REVERSE_L PD_4 |
Bhoney | 3:cfb7cc54a3ba | 33 | |
Haeun | 6:beddcb25ad4e | 34 | //DAC |
Haeun | 6:beddcb25ad4e | 35 | #define MOTOR_THROTTLE_R PA_4 |
Haeun | 6:beddcb25ad4e | 36 | #define MOTOR_THROTTLE_L PA_5 |
Bhoney | 3:cfb7cc54a3ba | 37 | |
Bhoney | 1:fd1e7e2d0780 | 38 | |
Haeun | 6:beddcb25ad4e | 39 | ////reserved pin |
Haeun | 6:beddcb25ad4e | 40 | ////SPI2 |
Haeun | 6:beddcb25ad4e | 41 | //#define SPI2_SCK PB_10 |
Haeun | 6:beddcb25ad4e | 42 | //#define SPI2_NSS PB_12 |
Haeun | 6:beddcb25ad4e | 43 | //#define SPI2_MISO PC_2 |
Haeun | 6:beddcb25ad4e | 44 | //#define SPI2_MOSI PC_3 |
Haeun | 6:beddcb25ad4e | 45 | ////SPI3 |
Haeun | 6:beddcb25ad4e | 46 | //#define SPI3_SCK PA_15 |
Haeun | 6:beddcb25ad4e | 47 | //#define SPI3_NSS PB_2 |
Haeun | 6:beddcb25ad4e | 48 | //#define SPI3_MISO PC_10 |
Haeun | 6:beddcb25ad4e | 49 | //#define SPI3_MOSI PC_11 |
Haeun | 6:beddcb25ad4e | 50 | // |
Haeun | 6:beddcb25ad4e | 51 | ////USART3 |
Haeun | 6:beddcb25ad4e | 52 | //#define USART3_TX PD_8 |
Haeun | 6:beddcb25ad4e | 53 | //#define USART3_RX PD_9 |
Haeun | 6:beddcb25ad4e | 54 | // |
Haeun | 6:beddcb25ad4e | 55 | ////ADC |
Haeun | 6:beddcb25ad4e | 56 | //#define ADC2_t PA_3 |
Haeun | 6:beddcb25ad4e | 57 | //#define ADC3_1_t PF_4 |
Haeun | 6:beddcb25ad4e | 58 | //#define ADC3_2_t PF_5 |
Haeun | 6:beddcb25ad4e | 59 | // |
Haeun | 6:beddcb25ad4e | 60 | ////TIM1 |
Haeun | 6:beddcb25ad4e | 61 | //#define TIM1_t PE_9 |
Haeun | 6:beddcb25ad4e | 62 | //#define TIM4_t PD_12 |
Haeun | 6:beddcb25ad4e | 63 | //#define TIM9_t PE_5 |
Haeun | 6:beddcb25ad4e | 64 | //#define TIM11_t PF_7 |
Bhoney | 1:fd1e7e2d0780 | 65 | |
Haeun | 6:beddcb25ad4e | 66 |