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 0af5724 commit ff3e1e8Copy full SHA for ff3e1e8
cores/arduino/zephyrCommon.cpp
@@ -177,20 +177,6 @@ size_t analog_pin_index(pin_size_t pinNumber) {
177
178
static unsigned int irq_key;
179
static bool interrupts_disabled = false;
180
-
181
-void interrupts(void) {
182
- if (interrupts_disabled) {
183
- irq_unlock(irq_key);
184
- interrupts_disabled = false;
185
- }
186
-}
187
188
-void noInterrupts(void) {
189
- if (!interrupts_disabled) {
190
- irq_key = irq_lock();
191
- interrupts_disabled = true;
192
193
194
}
195
196
void yield(void) {
@@ -480,3 +466,17 @@ void disableInterrupt(pin_size_t pinNumber) {
480
466
pcb->handlers[BIT(arduino_pins[pinNumber].pin)].enabled = false;
481
467
482
468
469
+
470
+void interrupts(void) {
471
+ if (interrupts_disabled) {
472
+ irq_unlock(irq_key);
473
+ interrupts_disabled = false;
474
+ }
475
+}
476
477
+void noInterrupts(void) {
478
+ if (!interrupts_disabled) {
479
+ irq_key = irq_lock();
+ interrupts_disabled = true;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments