| | |
| | | extern ADC_HandleTypeDef hadc; |
| | | extern LPTIM_HandleTypeDef hlptim1; |
| | | extern uint16_t lastpoll_count,interval_count,slot_startcount,tag_frequency,tyncpoll_time,waitusart_timer; |
| | | typedef uint32_t u32; |
| | | typedef uint16_t u16; |
| | | typedef uint8_t u8; |
| | | extern uint16_t slottime,max_slotpos,current_slotnum; |
| | | void SetNextPollTime(u16 time); |
| | | /* 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 |
| | | #define LPTIMER_1S_COUNT 32767 |
| | | #define USART_KEEPWAKE_TIME 10 |
| | | #define KEY_KEEPRESET_TIME 5 |
| | | /* USER CODE END EC */ |
| | | |
| | | /* Exported macro ------------------------------------------------------------*/ |