mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
arch/xtensa/src/esp32/esp32_timerisr.c: Fix backward comparison.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* arch/xtensa/src/esp32/esp32_timerisr.c
|
* arch/xtensa/src/esp32/esp32_timerisr.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2016, 2019 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -150,7 +150,7 @@ static int esp32_timerisr(int irq, uint32_t *regs, FAR void *arg)
|
|||||||
|
|
||||||
diff = xtensa_getcount() - compare;
|
diff = xtensa_getcount() - compare;
|
||||||
}
|
}
|
||||||
while (diff < divisor);
|
while (diff >= divisor);
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user