lpcmanager
Clone
Summary
Browse
Changes
Graph
Fixed timer initialization for uart devices with short buffer. Added selectors for the following uart devices: AQ1, SM1, SM5, SM6, SM7, WP1, WP2 and WT1.
2016-11-11, bmakuc
8448e1c42556
Fixed timer initialization for uart devices with short buffer. Added selectors for the following uart devices: AQ1, SM1, SM5, SM6, SM7, WP1, WP2 and WT1.
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);
}