Cosmetic fixes to C coding style
This commit is contained in:
parent
3fdd914203
commit
2ab66a015b
@ -195,7 +195,10 @@ void up_timer_initialize(void)
|
||||
* complicated. When I have a better idea, I'll change this.
|
||||
*/
|
||||
|
||||
while (!((mask_test >> mask_bits) & ticks_per_int)) mask_bits++;
|
||||
while (!((mask_test >> mask_bits) & ticks_per_int))
|
||||
{
|
||||
mask_bits++;
|
||||
}
|
||||
|
||||
lldbg("mask_bits = %d, mask = %X, ticks_per_int = %d\r\n",
|
||||
mask_bits, (0xFFFFFFFF<<(32 - mask_bits)), ticks_per_int);
|
||||
|
@ -772,6 +772,7 @@ int sam_rtc_setalarm(FAR const struct timespec *tp, alarmcb_t callback)
|
||||
int up_rtc_gettime(FAR struct timespec *tp)
|
||||
{
|
||||
/* This is a hack to emulate a high resolution rtc using the rtt */
|
||||
|
||||
uint32_t rtc_cal, rtc_tim, rtt_val;
|
||||
struct tm t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user