Skip to content

Commit 6b2bcf0

Browse files
committed
Add I2S support from Genuine MicroPython by Mike Teachman
Thanks, @miketeachman! See also micropython/micropython#4471
1 parent 69dd8b5 commit 6b2bcf0

File tree

5 files changed

+483
-0
lines changed

5 files changed

+483
-0
lines changed

esp32/application.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ APP_MODS_SRC_C = $(addprefix mods/,\
133133
pybflash.c \
134134
machspi.c \
135135
machine_i2c.c \
136+
machine_i2s.c \
136137
machpwm.c \
137138
machcan.c \
138139
modmachine.c \

esp32/hal/esp32_mphal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ void mp_hal_set_interrupt_char(int c);
3030
void mp_hal_set_reset_char(int c);
3131
void mp_hal_reset_safe_and_boot(bool reset);
3232

33+
// I2S driver
34+
#define machine_pin_get_id(pin) pin_find(pin)->pin_number
35+
3336
#endif // _INCLUDED_MPHAL_H_

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy