This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,9 @@ void mp_hal_set_interrupt_char(int c);
30
30
void mp_hal_set_reset_char (int c );
31
31
void mp_hal_reset_safe_and_boot (bool reset );
32
32
33
+ // https://github.com/micropython/micropython/blob/master/ports/esp32/mphalport.h
34
+ #define mp_hal_quiet_timing_enter () MICROPY_BEGIN_ATOMIC_SECTION()
35
+ #define mp_hal_quiet_timing_exit (irq_state ) MICROPY_END_ATOMIC_SECTION(irq_state)
36
+ #define mp_hal_delay_us_fast (us ) ets_delay_us(us)
37
+
33
38
#endif // _INCLUDED_MPHAL_H_
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ extern const struct _mp_obj_module_t mp_module_uhashlib;
191
191
extern const struct _mp_obj_module_t module_ucrypto ;
192
192
extern const struct _mp_obj_module_t mp_module_ussl ;
193
193
extern const struct _mp_obj_module_t mp_module_uqueue ;
194
+ extern const struct _mp_obj_module_t mp_module_onewire ;
194
195
195
196
#define MICROPY_PORT_BUILTIN_MODULES \
196
197
{ MP_OBJ_NEW_QSTR(MP_QSTR_umachine), (mp_obj_t)&machine_module }, \
@@ -206,6 +207,7 @@ extern const struct _mp_obj_module_t mp_module_uqueue;
206
207
{ MP_OBJ_NEW_QSTR(MP_QSTR_ussl), (mp_obj_t)&mp_module_ussl }, \
207
208
{ MP_OBJ_NEW_QSTR(MP_QSTR_uerrno), (mp_obj_t)&mp_module_uerrno }, \
208
209
{ MP_OBJ_NEW_QSTR(MP_QSTR_uqueue), (mp_obj_t)&mp_module_uqueue }, \
210
+ { MP_OBJ_NEW_QSTR(MP_QSTR__onewire), (mp_obj_t)&mp_module_onewire }, \
209
211
210
212
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
211
213
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&machine_module }, \
Original file line number Diff line number Diff line change @@ -287,6 +287,7 @@ PY_EXTMOD_O_BASENAME = \
287
287
extmod/moduwebsocket.o \
288
288
extmod/modwebrepl.o \
289
289
extmod/modframebuf.o \
290
+ extmod/modonewire.o \
290
291
extmod/vfs.o \
291
292
extmod/vfs_reader.o \
292
293
extmod/vfs_posix.o \
You can’t perform that action at this time.
0 commit comments