| | |
| | | /* USER CODE BEGIN ET */ |
| | | extern SPI_HandleTypeDef hspi1; |
| | | extern UART_HandleTypeDef huart1; |
| | | extern uint8_t g_start_send_flag; |
| | | extern uint8_t g_start_send_flag,bat_percent; |
| | | extern ADC_HandleTypeDef hadc; |
| | | extern LPTIM_HandleTypeDef hlptim1; |
| | | extern uint16_t lastpoll_count,interval_count,slot_startcount; |
| | | extern uint16_t lastpoll_count,interval_count,slot_startcount,tag_frequency,tyncpoll_time,waitusart_timer; |
| | | /* USER CODE END ET */ |
| | | |
| | | /* Exported constants --------------------------------------------------------*/ |
| | | /* USER CODE BEGIN EC */ |
| | | #define LPTIMER_LSB 30.518 //1 puls=30.518us |
| | | #define LPTIMER_1S_COUNT 33095 |
| | | #define USART_KEEPWAKE_TIME 60 |
| | | /* USER CODE END EC */ |
| | | |
| | | /* Exported macro ------------------------------------------------------------*/ |