Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Add I2S support
Browse files Browse the repository at this point in the history
This adds I2S support from Genuine MicroPython by Mike Teachman.
Thanks, @miketeachman!

See also micropython/micropython#4471
  • Loading branch information
amotl committed Nov 19, 2019
1 parent 69dd8b5 commit 332ba2e
Show file tree
Hide file tree
Showing 5 changed files with 483 additions and 0 deletions.
1 change: 1 addition & 0 deletions esp32/application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ APP_MODS_SRC_C = $(addprefix mods/,\
pybflash.c \
machspi.c \
machine_i2c.c \
machine_i2s.c \
machpwm.c \
machcan.c \
modmachine.c \
Expand Down
3 changes: 3 additions & 0 deletions esp32/hal/esp32_mphal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ void mp_hal_set_interrupt_char(int c);
void mp_hal_set_reset_char(int c);
void mp_hal_reset_safe_and_boot(bool reset);

// I2S driver
#define machine_pin_get_id(pin) pin_find(pin)->pin_number

#endif // _INCLUDED_MPHAL_H_
Loading

0 comments on commit 332ba2e

Please sign in to comment.