sys/uart_stdio: adapted to cb type change

This commit is contained in:
Hauke Petersen 2016-03-15 10:58:14 +01:00
parent 2d2126e909
commit 4b67fccf2b
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ int uart_stdio_write(const char* buffer, int len);
* @param[in] arg (unused)
* @param[in] data character that has been received
*/
void uart_stdio_rx_cb(void *arg, char data);
void uart_stdio_rx_cb(void *arg, uint8_t data);
#ifdef __cplusplus
}

View File

@ -52,10 +52,10 @@ static tsrb_t _rx_buf = TSRB_INIT(_rx_buf_mem);
/**
* @brief Receive a new character from the UART and put it into the receive buffer
*/
void uart_stdio_rx_cb(void *arg, char data)
void uart_stdio_rx_cb(void *arg, uint8_t data)
{
(void)arg;
tsrb_add_one(&_rx_buf, data);
tsrb_add_one(&_rx_buf, (uint8_t)data);
mutex_unlock(&_rx_mutex);
}