This commit is contained in:
2025-07-08 23:30:16 +08:00
parent a635b6d5eb
commit a9884051f8
21 changed files with 7673 additions and 7958 deletions

View File

@@ -36,7 +36,7 @@
// BLE define
#define BLE_RX_THREAD_STACK_SIZE 2048
#define BLE_RX_THREAD_PRIORITY 10
#define BLE_RX_THREAD_PRIORITY 9
#define BLE_TX_THREAD_STACK_SIZE 2048
#define BLE_TX_THREAD_PRIORITY 10
// IMU thread config
@@ -212,19 +212,25 @@ UINT App_ThreadX_Init(VOID *memory_ptr)
7, 7, // 这里的优先级
TX_NO_TIME_SLICE,
TX_AUTO_START);
if(status != TX_SUCCESS)
{
return status;
}
//
// HCBle_SendData("✅ BLE RX/TX 线程和队列初始化完成\r\n");
status = ControlThreadCreate();
if(status != TX_SUCCESS)
{
return status;
}
status = Encoder_ThreadCreate();
if(status != TX_SUCCESS)
{
return status;
}
// status = ControlThreadCreate();
// if(status != TX_SUCCESS)
// {
// return status;
// }
// status = Encoder_ThreadCreate();
// if(status != TX_SUCCESS)
// {
// return status;
// }
return TX_SUCCESS;
}

View File

@@ -106,6 +106,9 @@ int main(void)
imu600_init();
GPS_Init();
DWT_Init();
PWM_GPIO_TIM_Init();
HAL_TIM_IC_Start_IT(&htim5,TIM_CHANNEL_1);
// Buzzer_Open();
// HCBle_InitDMAReception();
// HAL_Delay(200);
// GPS_Init();