33 lines
662 B
C
33 lines
662 B
C
|
/*
|
|||
|
* 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>ʽ */
|
|||
|
#define UART_MQ_SEND_LENGTH 20
|
|||
|
typedef struct _SL_UartSend_pack{
|
|||
|
device_handle device; /* <20><><EFBFBD><EFBFBD> */
|
|||
|
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_ */
|