mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-23 19:25:09 +08:00
add DMA remote control
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
// #include "bsp_log.h"
|
||||
#include "dev_cmd.h"
|
||||
#include "daemon.h"
|
||||
#include "bsp_usart.h"
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
@@ -449,6 +450,8 @@ __attribute__((noreturn)) void StartDaemonTask(void *argument)
|
||||
/* Infinite loop */
|
||||
for (;;)
|
||||
{
|
||||
USARTServiceTask();
|
||||
|
||||
// 1. 执行核心的数据刷新逻辑
|
||||
Daemon_Update();
|
||||
|
||||
|
||||
@@ -361,7 +361,7 @@ void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
||||
hdma_uart5_rx.Init.MemInc = DMA_MINC_ENABLE;
|
||||
hdma_uart5_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
|
||||
hdma_uart5_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
|
||||
hdma_uart5_rx.Init.Mode = DMA_CIRCULAR;
|
||||
hdma_uart5_rx.Init.Mode = DMA_NORMAL;
|
||||
hdma_uart5_rx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
|
||||
hdma_uart5_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
|
||||
if (HAL_DMA_Init(&hdma_uart5_rx) != HAL_OK)
|
||||
|
||||
Reference in New Issue
Block a user