We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64af93e commit 2a580b0Copy full SHA for 2a580b0
1 file changed
ports/alif/modalif.c
@@ -27,10 +27,18 @@
27
#include "py/mphal.h"
28
#include "py/runtime.h"
29
#include "modalif.h"
30
+#include "se_services.h"
31
+
32
+static mp_obj_t alif_info(void) {
33
+ se_services_dump_device_data();
34
+ return mp_const_none;
35
+}
36
+static MP_DEFINE_CONST_FUN_OBJ_0(alif_info_obj, alif_info);
37
38
static const mp_rom_map_elem_t alif_module_globals_table[] = {
39
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_alif) },
40
{ MP_ROM_QSTR(MP_QSTR_Flash), MP_ROM_PTR(&alif_flash_type) },
41
+ { MP_ROM_QSTR(MP_QSTR_info), MP_ROM_PTR(&alif_info_obj) },
42
#if MICROPY_HW_USB_MSC
43
// Attribute to indicate USB MSC is enabled.
44
{ MP_ROM_QSTR(MP_QSTR_usb_msc), MP_ROM_TRUE },
0 commit comments