Skip to content

Commit ee658aa

Browse files
committed
Some tab fixes
1 parent 6ff874c commit ee658aa

File tree

1 file changed

+4
-4
lines changed
  • libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D5M

1 file changed

+4
-4
lines changed

libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D5M/us_ticker.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ uint32_t us_ticker_read() {
7373
uint32_t retval;
7474
__disable_irq();
7575
retval = (pit_ldval - PIT->CHANNEL[0].CVAL) / pit_division; //Hardware bits
76-
retval |= pit_msb_counter << __CLZ(pit_division); //Software bits
76+
retval |= pit_msb_counter << __CLZ(pit_division); //Software bits
7777

78-
if (PIT->CHANNEL[0].TFLG == 1) { //If overflow bit is set, force it to be handled
79-
pit0_isr(); //Handle IRQ, read again to make sure software/hardware bits are synced
80-
NVIC_ClearPendingIRQ(PIT0_IRQn);
78+
if (PIT->CHANNEL[0].TFLG == 1) { //If overflow bit is set, force it to be handled
79+
pit0_isr(); //Handle IRQ, read again to make sure software/hardware bits are synced
80+
NVIC_ClearPendingIRQ(PIT0_IRQn);
8181
return us_ticker_read();
8282
}
8383

0 commit comments

Comments
 (0)