mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(vad): lp vad driver and wakeup feature
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
39430c1404
commit
1792aba1dc
@@ -25,6 +25,7 @@
|
||||
#include "driver/lp_i2s.h"
|
||||
#include "esp_private/periph_ctrl.h"
|
||||
#include "esp_private/i2s_platform.h"
|
||||
#include "esp_private/lp_i2s_private.h"
|
||||
#include "i2s_private.h"
|
||||
#include "soc/i2s_periph.h"
|
||||
|
||||
@@ -329,3 +330,15 @@ static void IRAM_ATTR s_i2s_default_isr(void *arg)
|
||||
portYIELD_FROM_ISR();
|
||||
}
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------
|
||||
HELPERS
|
||||
---------------------------------------------------------------*/
|
||||
lp_i2s_soc_handle_t lp_i2s_get_soc_handle(lp_i2s_chan_handle_t chan)
|
||||
{
|
||||
if (!chan) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return chan->ctlr->hal.dev;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user