1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

renaming of serial bool returning vars into isFoo(), also fixed bool returned as uint16_t type

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@354 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop@gmail.com 2013-06-25 07:09:47 +00:00
parent 539f2cb6db
commit 4bd505972d
7 changed files with 16 additions and 16 deletions

View file

@ -107,17 +107,17 @@ void uartInit(uint32_t speed)
USART_Cmd(USART1, ENABLE);
}
uint16_t uartAvailable(void)
bool isUartAvailable(void)
{
return (DMA_GetCurrDataCounter(DMA1_Channel5) != rxDMAPos) ? true : false;
}
bool uartTransmitDMAEmpty(void)
bool isUartTransmitDMAEmpty(void)
{
return txDMAEmpty;
}
bool uartTransmitEmpty(void)
bool isUartTransmitEmpty(void)
{
return (txBufferTail == txBufferHead);
}
@ -136,7 +136,7 @@ uint8_t uartRead(void)
uint8_t uartReadPoll(void)
{
while (!uartAvailable()); // wait for some bytes
while (!isUartAvailable()); // wait for some bytes
return uartRead();
}
@ -229,7 +229,7 @@ void uart2Write(uint8_t ch)
USART_ITConfig(USART2, USART_IT_TXE, ENABLE);
}
bool uart2TransmitEmpty(void)
bool isUart2TransmitEmpty(void)
{
return tx2BufferTail == tx2BufferHead;
}