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.

71 lines
2.2 KiB

3 days ago
/******************************************************************************
(C), 2018-2099, Radkil
******************************************************************************
: ground_manger.c
: 稿
: radkil
: 2026817
:
:
:
1. : 2026817
: 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);
}