File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D5M Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,11 @@ uint32_t us_ticker_read() {
73
73
uint32_t retval ;
74
74
__disable_irq ();
75
75
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
77
77
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 );
81
81
return us_ticker_read ();
82
82
}
83
83
You can’t perform that action at this time.
0 commit comments