Skip to content

Commit 78d1e52

Browse files
committed
Modify PDM defines to allow using PDM from M4
1 parent bb78d5c commit 78d1e52

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libraries/PDM/src/portenta/PDM.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Boston, MA 02111-1307 USA
2121
*/
2222

23-
#ifdef ARDUINO_PORTENTA_H7_M7
23+
#ifdef TARGET_PORTENTA_H7
2424

2525
#include "PDM.h"
2626
#include "mbed.h"

libraries/PDM/src/portenta/audio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Audio Python module.
1010
*/
11-
#ifdef ARDUINO_PORTENTA_H7_M7
11+
#ifdef TARGET_PORTENTA_H7
1212

1313
#include <stdio.h>
1414
#include "stm32h7xx_hal.h"

libraries/PDM/src/portenta/audio.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#ifdef ARDUINO_PORTENTA_H7_M7
1+
#ifdef TARGET_PORTENTA_H7
22

33
#include "stdbool.h"
44

@@ -9,7 +9,7 @@
99
#define AUDIO_SAI_FREQKHZ (2048U) // 2048KHz
1010
#define AUDIO_SAI_NBR_CHANNELS (2) // Default number of channels.
1111

12-
#if defined(ARDUINO_PORTENTA_H7_M7)
12+
#if defined(TARGET_PORTENTA_H7)
1313
#define AUDIO_SAI_CK_PORT (GPIOE)
1414
#define AUDIO_SAI_CK_PIN (GPIO_PIN_2)
1515
#define AUDIO_SAI_CK_AF (GPIO_AF10_SAI4)

0 commit comments

Comments
 (0)