lpcmanager

Xenomai 3 strikes again : rt_event_* takes 32b mask now
revamp
2018-03-23, Edouard Tisserant
bd451154e9f8
Xenomai 3 strikes again : rt_event_* takes 32b mask now
if(!rt_mutex_acquire(&UART_ReadMutex, TM_INFINITE )){
int prevstate;
if((prevstate=uartDevReadBuf_plc_state) == FULL){
uartDevReadBuf_plc_state = LOCKED;
}
rt_mutex_release(&UART_ReadMutex);
if(prevstate == FULL){
%(retrieve_code)s
/* unlock plc buffer */
uartDevReadBuf_plc_state = EMPTY;
}else{
/* No new data -> no update */
}
}