lpcmanager
Clone
Summary
Browse
Changes
Graph
#2602 remove code using config to deal with transient informations
revamp
2018-02-13, Edouard Tisserant
0ab9ea0bc3b8
#2602 remove code using config to deal with transient informations
if(!rt_mutex_acquire(&UART_WriteMutex, TM_INFINITE )){
int prevstate;
prevstate=uartDevWriteBuf_plc_state;
uartDevWriteBuf_plc_state = LOCKED;
rt_mutex_release(&UART_WriteMutex);
%(publish_code)s
/* unlock plc buffer */
uartDevWriteBuf_plc_state = FULL;
/* wakeup task */
rt_task_unblock(&UART_task);
}