* 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;
}
/* 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;
/* 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 */