34 lines
721 B
C
34 lines
721 B
C
/*
|
|
* mutex.h
|
|
*
|
|
* Created on: 2024年5月18日
|
|
* Author: 34509
|
|
*/
|
|
|
|
#ifndef SOFTWARE_THREAD_COMMUNICATION_MUTEX_H_
|
|
#define SOFTWARE_THREAD_COMMUNICATION_MUTEX_H_
|
|
|
|
#include "rtthread.h"
|
|
#include "uart_dev.h"
|
|
|
|
/* UartSend队列的格式 */
|
|
#define UART_MQ_SEND_LENGTH 50
|
|
typedef struct _SL_UartSend_pack{
|
|
device_handle device; /* 串口 */
|
|
rt_uint8_t Channel; /* 通道 */
|
|
rt_uint8_t len; /* 长度 */
|
|
rt_uint8_t recv_Data[UART_MQ_SEND_LENGTH]; /* 其他部分 */
|
|
}SL_UartSend_pack;
|
|
|
|
extern SL_UartSend_pack MqUartSend_pack;
|
|
extern rt_mq_t mqSend;
|
|
|
|
|
|
rt_uint8_t Send_mq_Init(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* SOFTWARE_THREAD_COMMUNICATION_MUTEX_H_ */
|