From 55c8c91e07c18c9e2d4ede8b41a16d88d2fe5ea4 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Mon, 28 Nov 2016 19:48:17 -0800 Subject: [PATCH] atmel-samd: Hook in bitbangio --- atmel-samd/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atmel-samd/mpconfigport.h b/atmel-samd/mpconfigport.h index c6dbdad3c9..20c2c5f4d9 100644 --- a/atmel-samd/mpconfigport.h +++ b/atmel-samd/mpconfigport.h @@ -113,6 +113,7 @@ typedef long mp_off_t; // extra built in modules to add to the list of known ones extern const struct _mp_obj_module_t microcontroller_module; +extern const struct _mp_obj_module_t bitbangio_module; extern const struct _mp_obj_module_t nativeio_module; extern const struct _mp_obj_module_t board_module; extern const struct _mp_obj_module_t uos_module; @@ -122,6 +123,7 @@ extern const struct _mp_obj_module_t uheap_module; #define MICROPY_PORT_BUILTIN_MODULES \ { MP_OBJ_NEW_QSTR(MP_QSTR_microcontroller), (mp_obj_t)µcontroller_module }, \ + { MP_OBJ_NEW_QSTR(MP_QSTR_bitbangio), (mp_obj_t)&bitbangio_module }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_nativeio), (mp_obj_t)&nativeio_module }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_board), (mp_obj_t)&board_module }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \