Rev 2 | Rev 4 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 3 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | 61 | ||
62 | /***! |
62 | /***! |
63 | * @brief return the next character in the Serial input buffer |
63 | * @brief return the next character in the Serial input buffer |
64 | * This function will wait until a character arrives. |
64 | * This function will wait until a character arrives. |
65 | */ |
65 | */ |
66 | uint8_t |
66 | inline uint8_t |
67 | GetCharSerial (usart_ctl *instance) |
67 | GetCharSerial (usart_ctl *instance) |
68 | { |
68 | { |
69 | uint8_t c; |
69 | uint8_t c; |
70 | __HAL_UART_DISABLE_IT (instance, UART_IT_RXNE); |
70 | __HAL_UART_DISABLE_IT (instance, UART_IT_RXNE); |
71 | while (!instance->rx_usart_buffer_full |
71 | while (!instance->rx_usart_buffer_full |