From c4e5b95a6cf664b840bab4a39a934871e5c2b166 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 16 Sep 2015 01:57:20 +0200 Subject: [PATCH] Some more coding style --- core/systick.c | 2 +- drivers/serial.c | 3 ++- drivers/ssp.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/systick.c b/core/systick.c index 81872ec..27a8334 100644 --- a/core/systick.c +++ b/core/systick.c @@ -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; } diff --git a/drivers/serial.c b/drivers/serial.c index 2fdbca6..c6bb107 100644 --- a/drivers/serial.c +++ b/drivers/serial.c @@ -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; diff --git a/drivers/ssp.c b/drivers/ssp.c index cd3ddf4..d209e60 100644 --- a/drivers/ssp.c +++ b/drivers/ssp.c @@ -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 */ -- 2.43.0