File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Example1_MicrophoneOutput Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ void setup()
46
46
47
47
void loop ()
48
48
{
49
- am_hal_interrupt_master_disable ();
49
+ noInterrupts ();
50
50
51
51
if (myPDM.available ())
52
52
{
@@ -61,7 +61,7 @@ void loop()
61
61
// Go to Deep Sleep until the PDM ISR or other ISR wakes us.
62
62
am_hal_sysctrl_sleep (AM_HAL_SYSCTRL_SLEEP_DEEP);
63
63
64
- am_hal_interrupt_master_enable ();
64
+ interrupts ();
65
65
}
66
66
67
67
// *****************************************************************************
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ void setup()
58
58
59
59
void loop ()
60
60
{
61
- am_hal_interrupt_master_disable ();
61
+ noInterrupts ();
62
62
63
63
if (myPDM.available ())
64
64
{
@@ -73,7 +73,7 @@ void loop()
73
73
// Go to Deep Sleep until the PDM ISR or other ISR wakes us.
74
74
am_hal_sysctrl_sleep (AM_HAL_SYSCTRL_SLEEP_DEEP);
75
75
76
- am_hal_interrupt_master_enable ();
76
+ interrupts ();
77
77
}
78
78
79
79
// *****************************************************************************
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ void setup()
70
70
71
71
void loop ()
72
72
{
73
- am_hal_interrupt_master_disable ();
73
+ noInterrupts ();
74
74
75
75
if (myPDM.available ())
76
76
{
@@ -85,7 +85,7 @@ void loop()
85
85
// Go to Deep Sleep until the PDM ISR or other ISR wakes us.
86
86
am_hal_sysctrl_sleep (AM_HAL_SYSCTRL_SLEEP_DEEP);
87
87
88
- am_hal_interrupt_master_enable ();
88
+ interrupts ();
89
89
}
90
90
91
91
// *****************************************************************************
You can’t perform that action at this time.
0 commit comments