---minor changes ---

This commit is contained in:
Yunhorn 2024-07-14 18:27:06 +08:00
parent d9e25e1952
commit 027758bfca
3 changed files with 10 additions and 4 deletions

View File

@ -46,8 +46,11 @@ extern "C" {
/**
* @brief Verbose level for all trace logs
* #define VLEVEL_L 1 just essential traces
* #define VLEVEL_M 2 functional traces
* #define VLEVEL_H 3 all traces
*/
#define VERBOSE_LEVEL VLEVEL_L
#define VERBOSE_LEVEL VLEVEL_M
/**
* @brief Enable trace logs

View File

@ -101,6 +101,7 @@ void MX_GPIO_Init(void)
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
#endif
#if 0
/*Configure GPIO pins : PBPin PBPin */
GPIO_InitStruct.Pin = PROB2_Pin|PROB1_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
@ -113,6 +114,7 @@ void MX_GPIO_Init(void)
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(BUT3_GPIO_Port, &GPIO_InitStruct);
#endif
#ifdef STS_O7
HAL_NVIC_SetPriority(HALL1_EXTI_IRQn, 15, 0);
@ -124,8 +126,9 @@ void MX_GPIO_Init(void)
HAL_NVIC_SetPriority(A111_SENSOR_INTERRUPT_EXTI_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(A111_SENSOR_INTERRUPT_EXTI_IRQn);
HAL_NVIC_SetPriority(EXTI3_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(EXTI3_IRQn);
// duplicated, removed at 2024-07-14
// HAL_NVIC_SetPriority(EXTI3_IRQn, 0, 0);
// HAL_NVIC_EnableIRQ(EXTI3_IRQn);
#else
/* EXTI interrupt init*/

View File

@ -236,7 +236,7 @@ void EXTI0_IRQHandler(void)
HAL_GPIO_EXTI_IRQHandler(HALL1_Pin);
#else
HAL_GPIO_EXTI_IRQHandler(BUT1_Pin);
sts_reed_hall_change_flag = 1;
#endif
/* USER CODE BEGIN EXTI0_IRQn 1 */