lpcmanager
Clone
Summary
Browse
Changes
Graph
FW update : change default 256K transfer chunksize to 56K, compatible with maximum eRPC payload size of 64K.
19 months ago, Edouard Tisserant
1d5087e72ac0
FW update : change default 256K transfer chunksize to 56K, compatible with maximum eRPC payload size of 64K.
if(!pthread_mutex_lock(&UART_ReadMutex)){
int prevstate;
if((prevstate=uartDevReadBuf_plc_state) == FULL){
uartDevReadBuf_plc_state = LOCKED;
}
pthread_mutex_unlock(&UART_ReadMutex);
if(prevstate == FULL){
%(retrieve_code)s
/* unlock plc buffer */
uartDevReadBuf_plc_state = EMPTY;
}else{
/* No new data -> no update */
}
}