Add `machine_i2s_deinit_all` to teardown any active I2S instances on soft reset. Prior to this fix, code using I2S required a try/finally in order to avoid a hard fault on soft reset. Fixes issue #14339. Signed-off-by: Phil Howard <phil@gadgetoid.com>
15 lines
368 B
C
15 lines
368 B
C
#ifndef MICROPY_INCLUDED_RP2_MODMACHINE_H
|
|
#define MICROPY_INCLUDED_RP2_MODMACHINE_H
|
|
|
|
#include "py/obj.h"
|
|
|
|
void machine_pin_init(void);
|
|
void machine_pin_deinit(void);
|
|
void machine_i2s_init0(void);
|
|
void machine_i2s_deinit_all(void);
|
|
void machine_pwm_deinit_all(void);
|
|
|
|
struct _machine_spi_obj_t *spi_from_mp_obj(mp_obj_t o);
|
|
|
|
#endif // MICROPY_INCLUDED_RP2_MODMACHINE_H
|