Some more coding style
authorNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 15 Sep 2015 23:57:20 +0000 (01:57 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
core/systick.c
drivers/serial.c
drivers/ssp.c

index 81872ec..27a8334 100644 (file)
@@ -267,7 +267,7 @@ void systick_timer_off(void)
  * Note that calls to this function while a sleep() has been initiated will change the
  *   sleep duration ....
  */
-static inline  void set_sleep(uint32_t ticks)
+static inline void set_sleep(uint32_t ticks)
 {
        sleep_count = ticks;
 }
index 2fdbca6..c6bb107 100644 (file)
@@ -216,8 +216,9 @@ int serial_flush(uint32_t uart_num)
        /* Active wait for message to be sent. If interrupts are
         * disabled, call the UART handler while waiting. */
        while (uart->sending) {
-               if (get_priority_mask() == 0)
+               if (get_priority_mask() == 0) {
                        uart_check_tx(uart, uart->regs->func.intr_pending);
+               }
        }
 
        return 0;
index cd3ddf4..d209e60 100644 (file)
@@ -283,8 +283,8 @@ uint32_t ssp_clk_on(uint8_t ssp_num, uint32_t rate)
        /* Activate the SSP clock (maybe divide main clock) */
        switch (ssp_num) {
                case 0 :
-               sys_ctrl->ssp0_clk_div = pclk_div;
-               break;
+                       sys_ctrl->ssp0_clk_div = pclk_div;
+                       break;
        }
 
        /* Set the prescaler */