|
@ -31,6 +31,7 @@ |
|
|
#include "py/obj.h" |
|
|
#include "py/obj.h" |
|
|
|
|
|
|
|
|
#include "extmod/machine_mem.h" |
|
|
#include "extmod/machine_mem.h" |
|
|
|
|
|
#include "extmod/machine_pinbase.h" |
|
|
|
|
|
|
|
|
#if MICROPY_PLAT_DEV_MEM |
|
|
#if MICROPY_PLAT_DEV_MEM |
|
|
#include <errno.h> |
|
|
#include <errno.h> |
|
@ -78,6 +79,8 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { |
|
|
{ MP_ROM_QSTR(MP_QSTR_mem8), MP_ROM_PTR(&machine_mem8_obj) }, |
|
|
{ MP_ROM_QSTR(MP_QSTR_mem8), MP_ROM_PTR(&machine_mem8_obj) }, |
|
|
{ MP_ROM_QSTR(MP_QSTR_mem16), MP_ROM_PTR(&machine_mem16_obj) }, |
|
|
{ MP_ROM_QSTR(MP_QSTR_mem16), MP_ROM_PTR(&machine_mem16_obj) }, |
|
|
{ MP_ROM_QSTR(MP_QSTR_mem32), MP_ROM_PTR(&machine_mem32_obj) }, |
|
|
{ MP_ROM_QSTR(MP_QSTR_mem32), MP_ROM_PTR(&machine_mem32_obj) }, |
|
|
|
|
|
|
|
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_PinBase), MP_ROM_PTR(&machine_pinbase_type) }, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table); |
|
|
STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table); |
|
|