Skip to content

Commit 1f52d66

Browse files
committed
Defining all interrupt levels at a single place in config.h
1 parent d3e161c commit 1f52d66

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

eloc610LowPowerPartition/src/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ i2s_config_t i2s_mic_Config = {
1717
#endif
1818

1919
.communication_format = I2S_COMM_FORMAT_I2S,
20-
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL3,
20+
.intr_alloc_flags = I2S_INTR_PIRO,
2121
.dma_buf_count = gBufferCount, //so 2000 sample buffer at 16khz sr gives us 125ms to do our writing
2222
.dma_buf_len = gBufferLen, // 8 buffers gives us half second
2323
.use_apll = gUseAPLL, //not getting set. gUseAPLL, //the only thing that works with LowPower/APLL is 16khz 12khz??

eloc610LowPowerPartition/src/config.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
#define OTHER_GPIO_BUTTON GPIO_NUM_0
4242
#define VOLTAGE_PIN GPIO_NUM_34
4343

44-
/** Interrupt definitions*/
44+
/** Interrupt definitions
45+
* lower levels are lower priorities
46+
*/
4547
#define GPIO_INTR_PRIO ESP_INTR_FLAG_LEVEL1
48+
#define I2S_INTR_PIRO ESP_INTR_FLAG_LEVEL2
4649

4750

4851

0 commit comments

Comments
 (0)