예제 #1
0
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;
}
예제 #2
0
파일: uart.c 프로젝트: jannson/crazypony
int uartPutchar(int ch)
{
    uartSendData(1, (uint8_t *)&ch);
    
    return (unsigned char)ch;
}