Skip to content

Commit bea4a37

Browse files
committed
Add micro speech module.
1 parent a0d393a commit bea4a37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ports/stm32/mpconfigport.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ extern const struct _mp_obj_module_t imu_module;
238238
#if MICROPY_PY_AUDIO
239239
extern const struct _mp_obj_module_t audio_module;
240240
#endif
241+
#if MICROPY_PY_MICRO_SPEECH
242+
extern const struct _mp_obj_module_t micro_speech_module;
243+
#endif
241244

242245
#if MICROPY_PY_STM
243246
#define STM_BUILTIN_MODULE { MP_ROM_QSTR(MP_QSTR_stm), MP_ROM_PTR(&stm_module) },
@@ -292,6 +295,12 @@ extern const struct _mp_obj_module_t audio_module;
292295
#define AUDIO_BUILTIN_MODULE
293296
#endif
294297

298+
#if MICROPY_PY_MICRO_SPEECH
299+
#define MICRO_SPEECH_BUILTIN_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_micro_speech), (mp_obj_t)&micro_speech_module },
300+
#else
301+
#define MICRO_SPEECH_BUILTIN_MODULE
302+
#endif
303+
295304
#define MICROPY_PORT_BUILTIN_MODULES \
296305
{ MP_OBJ_NEW_QSTR(MP_QSTR_umachine), (mp_obj_t)&machine_module }, \
297306
{ MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \
@@ -316,6 +325,7 @@ extern const struct _mp_obj_module_t audio_module;
316325
SOCKET_BUILTIN_MODULE \
317326
NETWORK_BUILTIN_MODULE \
318327
AUDIO_BUILTIN_MODULE \
328+
MICRO_SPEECH_BUILTIN_MODULE \
319329
{ MP_ROM_QSTR(MP_QSTR__onewire), MP_ROM_PTR(&mp_module_onewire) }, \
320330

321331
// extra constants

0 commit comments

Comments
 (0)