2024-07-17 01:40:41 +00:00
|
|
|
|
/*
|
|
|
|
|
* mutex.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2024<EFBFBD><EFBFBD>5<EFBFBD><EFBFBD>18<EFBFBD><EFBFBD>
|
|
|
|
|
* Author: 34509
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef SOFTWARE_THREAD_COMMUNICATION_MUTEX_H_
|
|
|
|
|
#define SOFTWARE_THREAD_COMMUNICATION_MUTEX_H_
|
|
|
|
|
|
|
|
|
|
#include "rtthread.h"
|
|
|
|
|
#include "uart_dev.h"
|
|
|
|
|
|
|
|
|
|
/* UartSend<6E><64><EFBFBD>еĸ<D0B5>ʽ */
|
2024-08-19 08:58:08 +00:00
|
|
|
|
#define UART_MQ_SEND_LENGTH 50
|
2024-07-17 01:40:41 +00:00
|
|
|
|
typedef struct _SL_UartSend_pack{
|
|
|
|
|
device_handle device; /* <20><><EFBFBD><EFBFBD> */
|
2024-08-19 08:58:08 +00:00
|
|
|
|
rt_uint8_t Channel; /* ͨ<><CDA8> */
|
2024-07-17 01:40:41 +00:00
|
|
|
|
rt_uint8_t len; /* <20><><EFBFBD><EFBFBD> */
|
|
|
|
|
rt_uint8_t recv_Data[UART_MQ_SEND_LENGTH]; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
}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_ */
|