aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/AVR/TINY/LLD/USARTv1/hal_uart_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/AVR/TINY/LLD/USARTv1/hal_uart_lld.c')
-rw-r--r--os/hal/ports/AVR/TINY/LLD/USARTv1/hal_uart_lld.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/os/hal/ports/AVR/TINY/LLD/USARTv1/hal_uart_lld.c b/os/hal/ports/AVR/TINY/LLD/USARTv1/hal_uart_lld.c
index e207dacc7..0fdff3292 100644
--- a/os/hal/ports/AVR/TINY/LLD/USARTv1/hal_uart_lld.c
+++ b/os/hal/ports/AVR/TINY/LLD/USARTv1/hal_uart_lld.c
@@ -31,13 +31,13 @@
/*==========================================================================*/
#define UBRR(b) (((F_CPU / b) >> 5) - 1)
-/*===========================================================================*/
-/* Driver local definitions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local definitions. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver exported variables. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver exported variables. */
+/*==========================================================================*/
/** @brief USART1 UART driver identifier.*/
#if AVR_UART_USE_USART1 || defined(__DOXYGEN__)
@@ -49,13 +49,13 @@ UARTDriver UARTD1;
UARTDriver UARTD2;
#endif
-/*===========================================================================*/
-/* Driver local variables and types. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local variables and types. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver local functions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local functions. */
+/*==========================================================================*/
/**
* @brief USART de-initialization.
@@ -94,9 +94,9 @@ static void usart_start(UARTDriver *uartp) {
#endif
}
-/*===========================================================================*/
-/* Driver interrupt handlers. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver interrupt handlers. */
+/*==========================================================================*/
#if AVR_UART_USE_USART1 || defined(__DOXYGEN__)
/**
@@ -108,15 +108,15 @@ OSAL_IRQ_HANDLER(LIN_TC_vect) {
OSAL_IRQ_PROLOGUE();
- // TODO: Manage the UART IRQ.
+ /* TODO: Manage the UART IRQ. */
OSAL_IRQ_EPILOGUE();
}
#endif /* AVR_UART_USE_USART1 */
-/*===========================================================================*/
-/* Driver exported functions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver exported functions. */
+/*==========================================================================*/
/**
* @brief Low level UART driver initialization.
@@ -196,7 +196,7 @@ void uart_lld_start_send(UARTDriver *uartp, size_t n, const uint8_t *txbuf) {
#if AVR_UART_USE_USART1
if (&UARTD1 == uartp) {
/* Starting transfer.*/
- while(n--) {
+ while (n--) {
while (LINSIR & (1 << LBUSY));
LINDAT = *txbuf;
txbuf++;
@@ -219,7 +219,7 @@ void uart_lld_start_send(UARTDriver *uartp, size_t n, const uint8_t *txbuf) {
void uart_lld_start_receive(UARTDriver *uartp, size_t n, void *rxbuf) {
/* Stopping previous activity (idle state).*/
- // TODO: Implement this function.
+ /* TODO: Implement this function. */
}
#endif /* HAL_USE_UART */