Jim Mussared
9dce82776d
all: Remove unnecessary locals_dict cast.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-19 19:06:01 +10:00
Jim Mussared
662b9761b3
all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE.
...
In preparation for upcoming rework of mp_obj_type_t layout.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-19 19:06:01 +10:00
Damien George
6c67fbc280
zephyr/machine_uart: Use mp_obj_str_get_str to get device name.
...
This checks that the argument is actually a string.
Signed-off-by: Damien George <damien@micropython.org>
2022-08-11 23:18:02 +10:00
Maureen Helm
4fd54a4756
zephyr: Update include paths to use the zephyr namespace.
...
Zephyr v3.1.0 moved all public headers to include/zephyr.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-06-17 16:44:30 +10:00
Jim Mussared
0e7bfc88c6
all: Use mp_obj_malloc everywhere it's applicable.
...
This replaces occurences of
foo_t *foo = m_new_obj(foo_t);
foo->base.type = &foo_type;
with
foo_t *foo = mp_obj_malloc(foo_t, &foo_type);
Excludes any places where base is a sub-field or when new0/memset is used.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-05-03 22:28:14 +10:00
Damien George
ffded48810
zephyr/machine_uart: Fix arg of machine_uart_ioctl to make it uintptr_t.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-02-01 22:30:50 +11:00
Yonatan Schachter
063d7cc0e2
zephyr: Add basic UART functionality to machine module.
...
Currently supports only polling read and write.
Signed-off-by: Yonatan Schachter <yonatan.schachter@gmail.com>
2021-01-23 16:31:00 +11:00