You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

70 lines
2.2 KiB

/******************************************************************************
版权所有 (C), 2018-2099, Radkil
******************************************************************************
文 件 名 : ground_manger.c
版 本 号 : 初稿
作 者 : radkil
生成日期 : 2026年8月17日
最近修改 :
功能描述 : 地面端心跳包控制
修改历史 :
1.日 期 : 2026年8月17日
作 者 : radkil
修改内容 : 创建文件
******************************************************************************/
#include "BHBF.h"
/*----------------------------------------------*
* 外部变量说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 外部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 内部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 全局变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 模块级变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 常量定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 宏定义 *
*----------------------------------------------*/
void Send_ground(void *argument)
{
while(1)
{
Rd_Delay(1);
}
}
void ground_manger_init(void)
{
TUartUserData *ptUartUserData = UART_userdata_init(7, -1, 512);
g_ptrs485_4 = rd_ComCreate(NULL, NULL, RS485_4_Send, ptUartUserData->m_buf_size, ptUartUserData);
UART_IT_init(g_ptrs485_4);
const osThreadAttr_t Send_ground_attributes = {
.name = "Send_ground",
.stack_size = 512,
.priority = (osPriority_t) osPriorityRealtime2,
};
(void)osThreadNew(Send_ground, NULL, &Send_ground_attributes);
}