mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Made serial const correct
This commit is contained in:
parent
7316a589f3
commit
661aa7469d
6 changed files with 24 additions and 24 deletions
|
@ -65,8 +65,8 @@ serialPort_t *uartOpen(USART_TypeDef *USARTx, serialReceiveCallbackPtr callback,
|
|||
|
||||
// serialPort API
|
||||
void uartWrite(serialPort_t *instance, uint8_t ch);
|
||||
uint32_t uartTotalRxBytesWaiting(serialPort_t *instance);
|
||||
uint32_t uartTotalTxBytesFree(serialPort_t *instance);
|
||||
uint32_t uartTotalRxBytesWaiting(const serialPort_t *instance);
|
||||
uint32_t uartTotalTxBytesFree(const serialPort_t *instance);
|
||||
uint8_t uartRead(serialPort_t *instance);
|
||||
void uartSetBaudRate(serialPort_t *s, uint32_t baudRate);
|
||||
bool isUartTransmitBufferEmpty(serialPort_t *s);
|
||||
bool isUartTransmitBufferEmpty(const serialPort_t *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue