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 353bec5 commit 8ed5830Copy full SHA for 8ed5830
libraries/PDM/src/stm32/audio.c
@@ -46,7 +46,8 @@ static PDM_Filter_Config_t PDM_FilterConfig[2];
46
static volatile uint32_t xfer_status = 0;
47
48
// BDMA can only access D3 SRAM4 memory.
49
-int8_t* PDM_BUFFER = (uint16_t*)0x38000000;
+//int8_t* PDM_BUFFER = (uint16_t*)0x38000000;
50
+uint8_t PDM_BUFFER[PDM_BUFFER_SIZE] __attribute__ ((section(".pdm_buffer")));
51
52
void PDMIrqHandler(bool halftranfer);
53
void PDMsetBufferSize(int size);
0 commit comments