1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-25 07:48:10 +00:00
trezor-firmware/embed/extmod/modtrezorui/modtrezorui.c

31 lines
749 B
C
Raw Normal View History

2016-03-27 21:10:31 +00:00
/*
* Copyright (c) Pavol Rusnak, SatoshiLabs
*
2016-05-28 12:37:32 +00:00
* Licensed under TREZOR License
* see LICENSE file for details
2016-03-27 21:10:31 +00:00
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "py/runtime.h"
#if MICROPY_PY_TREZORUI
#include "modtrezorui-display.h"
2016-04-03 23:46:46 +00:00
2017-06-14 16:47:38 +00:00
STATIC const mp_rom_map_elem_t mp_module_trezorui_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorui) },
{ MP_ROM_QSTR(MP_QSTR_Display), MP_ROM_PTR(&mod_trezorui_Display_type) },
2016-03-27 21:10:31 +00:00
};
2017-06-14 16:47:38 +00:00
STATIC MP_DEFINE_CONST_DICT(mp_module_trezorui_globals, mp_module_trezorui_globals_table);
2016-03-27 21:10:31 +00:00
2017-06-14 16:47:38 +00:00
const mp_obj_module_t mp_module_trezorui = {
2016-03-27 21:10:31 +00:00
.base = { &mp_type_module },
2017-06-14 16:47:38 +00:00
.globals = (mp_obj_dict_t*)&mp_module_trezorui_globals,
2016-03-27 21:10:31 +00:00
};
#endif // MICROPY_PY_TREZORUI