| | |
| | | #include "Usart.h" |
| | | #include "serial_at_cmd_app.h" |
| | | #include "led.h" |
| | | #include "dw_app.h" |
| | | #include "global_param.h" |
| | | /* USER CODE END Includes */ |
| | | |
| | | /* Exported types ------------------------------------------------------------*/ |
| | |
| | | extern UART_HandleTypeDef huart1; |
| | | extern uint8_t g_start_send_flag; |
| | | extern ADC_HandleTypeDef hadc; |
| | | extern LPTIM_HandleTypeDef hlptim1; |
| | | extern uint16_t lastpoll_count,interval_count,slot_startcount; |
| | | /* USER CODE END ET */ |
| | | |
| | | /* Exported constants --------------------------------------------------------*/ |
| | | /* USER CODE BEGIN EC */ |
| | | |
| | | #define LPTIMER_LSB 30.518 //1 puls=30.518us |
| | | #define LPTIMER_1S_COUNT 33095 |
| | | /* USER CODE END EC */ |
| | | |
| | | /* Exported macro ------------------------------------------------------------*/ |
| | |
| | | #define LED1_R_GPIO_Port GPIOB |
| | | #define DW_WKUP_Pin GPIO_PIN_8 |
| | | #define DW_WKUP_GPIO_Port GPIOA |
| | | #define DW_CTRL_Pin GPIO_PIN_12 |
| | | #define DW_CTRL_GPIO_Port GPIOA |
| | | #define LED2_G_Pin GPIO_PIN_15 |
| | | #define LED2_G_GPIO_Port GPIOA |
| | | #define LED2_R_Pin GPIO_PIN_3 |
| | |
| | | #define PWR_ON_Pin GPIO_PIN_7 |
| | | #define PWR_ON_GPIO_Port GPIOB |
| | | /* USER CODE BEGIN Private defines */ |
| | | |
| | | #define GET_IMUINT HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_0) |
| | | /* USER CODE END Private defines */ |
| | | |
| | | #ifdef __cplusplus |