mirror of https://github.com/ARMmbed/mbed-os.git
AStyle
parent
aeb15e9cce
commit
c423602161
|
@ -301,8 +301,7 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
|
||||||
|
|
||||||
/* If this target timestamp is close to the roll over of the ticker counter
|
/* If this target timestamp is close to the roll over of the ticker counter
|
||||||
* and current tick is also close to the roll over, then we are in danger zone.*/
|
* and current tick is also close to the roll over, then we are in danger zone.*/
|
||||||
if(((0xFFFF - LP_TIMER_SAFE_GUARD < timestamp) || (timestamp < LP_TIMER_SAFE_GUARD)) && (0xFFFA < last_read_counter))
|
if (((0xFFFF - LP_TIMER_SAFE_GUARD < timestamp) || (timestamp < LP_TIMER_SAFE_GUARD)) && (0xFFFA < last_read_counter)) {
|
||||||
{
|
|
||||||
roll_over_flag = true;
|
roll_over_flag = true;
|
||||||
/* Change the lp_delayed_counter buffer in that way so the value of (0xFFFF - LP_TIMER_SAFE_GUARD) is equal to 0.
|
/* Change the lp_delayed_counter buffer in that way so the value of (0xFFFF - LP_TIMER_SAFE_GUARD) is equal to 0.
|
||||||
* By doing this it is easy to check if the value of timestamp get outdated by delaying its programming
|
* By doing this it is easy to check if the value of timestamp get outdated by delaying its programming
|
||||||
|
|
Loading…
Reference in New Issue