void uartSendDataIsrBlocking(uint32_t size, uint8_t* data) { outDataIsr = data; dataSizeIsr = size; dataIndexIsr = 1; uartSendData(1, &data[0]); USART_ITConfig(UART_TYPE, USART_IT_TXE, ENABLE); xSemaphoreTake(waitUntilSendDone, portMAX_DELAY); outDataIsr = 0; }
int uartPutchar(int ch) { uartSendData(1, (uint8_t *)&ch); return (unsigned char)ch; }