We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6b2c4 commit d5f0985Copy full SHA for d5f0985
hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/us_ticker.c
@@ -61,12 +61,11 @@ uint32_t us_ticker_read() {
61
62
void us_ticker_set_interrupt(timestamp_t timestamp) {
63
// Set SCT3 match register 0 (critical section)
64
- int wasMasked = __disable_irq();
+ __disable_irq();
65
LPC_SCT3->CTRL |= (1 << 2);
66
LPC_SCT3->MATCH0 = (uint32_t)timestamp;
67
LPC_SCT3->CTRL &= ~(1 << 2);
68
- if (!wasMasked)
69
- __enable_irq();
+ __enable_irq();
70
71
// Enable interrupt on SCT3 event 0
72
LPC_SCT3->EVEN = (1 << 0);
0 commit comments