generated from Template/H563ZI-HAL-CMake-Template
gps could receive but not parese
This commit is contained in:
@@ -89,7 +89,11 @@ TX_QUEUE im948_uart_rx_queue;
|
||||
|
||||
/* Private function prototypes -----------------------------------------------*/
|
||||
/* USER CODE BEGIN PFP */
|
||||
#define GPS_TASK_STACK_SIZE 2048
|
||||
#define GPS_TASK_PRIORITY 11
|
||||
|
||||
TX_THREAD gps_task;
|
||||
ULONG gps_task_stack[GPS_TASK_STACK_SIZE / sizeof(ULONG)];
|
||||
|
||||
/* USER CODE END 1 */
|
||||
/* USER CODE END 1 */
|
||||
@@ -158,8 +162,26 @@ UINT App_ThreadX_Init(VOID *memory_ptr)
|
||||
TX_1_ULONG, // sizeof(ULONG) bytes per entry
|
||||
im948_rx_queue_buffer,
|
||||
IM948_RX_QUEUE_SIZE * sizeof(ULONG));
|
||||
if(status != TX_SUCCESS)
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
status = tx_thread_create(&gps_task,
|
||||
"GPS Task",
|
||||
gps_thread_entry,
|
||||
0,
|
||||
gps_task_stack,
|
||||
GPS_TASK_STACK_SIZE,
|
||||
GPS_TASK_PRIORITY,
|
||||
GPS_TASK_PRIORITY,
|
||||
TX_NO_TIME_SLICE,
|
||||
TX_AUTO_START);
|
||||
|
||||
if(status != TX_SUCCESS)
|
||||
{
|
||||
return status;
|
||||
}
|
||||
HCBle_SendData("✅ BLE RX/TX 线程和队列初始化完成\r\n");
|
||||
|
||||
return TX_SUCCESS;
|
||||
|
||||
@@ -103,6 +103,7 @@ int main(void)
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
imu600_init();
|
||||
GPS_Init();
|
||||
// HCBle_InitDMAReception();
|
||||
// HAL_Delay(200);
|
||||
// GPS_Init();
|
||||
|
||||
Reference in New Issue
Block a user