summaryrefslogtreecommitdiff
path: root/ports/esp8266/main.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-11-22 13:00:02 +1100
committerDamien George <damien@micropython.org>2023-11-30 16:11:11 +1100
commit7d39db2503cab67f03216161b0e829939f80fff7 (patch)
tree503317f64d476e91b9f764fd566d638a7322a3e2 /ports/esp8266/main.c
parent14432b5da022e32c035c47c7f6c44b5e97d16c89 (diff)
extmod/modmachine: Factor ports' machine module dict to common code.
This is a code factoring to have the dict for the machine module in one location, and all the ports use that same dict. The machine.soft_reset() function implementation is also factored because it's the same for all ports that did already implement it. Eventually more functions/bindings can be factored. All ports remain functionally the same, except: - cc3200 port: gains soft_reset, mem8, mem16, mem32, Signal; loses POWER_ON (which was a legacy constant, replaced long ago by PWRON_RESET) - nrf port: gains Signal - qemu-arm port: gains soft_reset - unix port: gains soft_reset - zephyr port: gains soft_reset, mem8, mem16, mem32 Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/esp8266/main.c')
-rw-r--r--ports/esp8266/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c
index 33e0272f8..d0f52ed56 100644
--- a/ports/esp8266/main.c
+++ b/ports/esp8266/main.c
@@ -36,9 +36,6 @@
#include "py/mphal.h"
#include "py/gc.h"
-// This needs to be defined before any ESP SDK headers are included
-#define USE_US_TIMER 1
-
#include "extmod/misc.h"
#include "extmod/modmachine.h"
#include "shared/readline/readline.h"