Cosmetic fixes to C coding style

This commit is contained in:
Gregory Nutt 2015-10-05 17:28:26 -06:00
parent 3fdd914203
commit 2ab66a015b
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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;