zhyinch
2020-11-06 1abba6d0da35b3a89fead56896bf82c1b9aa7831
Inc/main.h
@@ -59,7 +59,7 @@
#define LPTIMER_LSB 30.518 //1 puls=30.518us
#define LPTIMER_1S_COUNT 32767
#define USART_KEEPWAKE_TIME 10
#define KEY_KEEPRESET_TIME 5
#define KEY_KEEPRESET_TIME 120
/* USER CODE END EC */
/* Exported macro ------------------------------------------------------------*/
@@ -106,9 +106,12 @@
#define LED2_R_GPIO_Port GPIOB
#define PWR_ON_Pin GPIO_PIN_7
#define PWR_ON_GPIO_Port GPIOB
#define PWR_CTL_Pin GPIO_PIN_9
#define PWR_CTL_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */
#define GET_IMUINT       HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_0)
#define GET_USERKEY    HAL_GPIO_ReadPin(USER_KEY_GPIO_Port,USER_KEY_Pin)
#define STATIONARY_TIME 3
/* USER CODE END Private defines */
#ifdef __cplusplus