22 lines
319 B
C
22 lines
319 B
C
|
/*
|
|||
|
* mutex.c
|
|||
|
*
|
|||
|
* Created on: 2024<EFBFBD><EFBFBD>5<EFBFBD><EFBFBD>18<EFBFBD><EFBFBD>
|
|||
|
* Author: 34509
|
|||
|
*/
|
|||
|
|
|||
|
#include "Thread_communication/mutex.h"
|
|||
|
|
|||
|
|
|||
|
|
|||
|
void mutex_Init(void)
|
|||
|
{
|
|||
|
/* <20><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
protocol_mux = rt_mutex_create("test_mux",RT_IPC_FLAG_PRIO);
|
|||
|
|
|||
|
if (protocol_mux != RT_NULL){
|
|||
|
rt_kprintf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD>\n\n");
|
|||
|
}
|
|||
|
|
|||
|
}
|