From: Nathael Pajani Date: Tue, 15 Sep 2015 23:57:20 +0000 (+0200) Subject: Some more coding style X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=c4e5b95a6cf664b840bab4a39a934871e5c2b166;p=soft%2Flpc122x%2Fcore Some more coding style --- 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 */