summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2023-12-07 14:07:21 +1100
committerAngus Gratton <angus@redyak.com.au>2023-12-07 14:07:21 +1100
commit66be82da7ce63e9c907d7d2ed00341dae80ee83f (patch)
tree367f4042b5f55a246bbecfa13d6ce2408c5ba1e1
parent0960d64d3b040b81524f0284d28854f3b929f381 (diff)
esp8266: Avoid including ep_mphal.h directly.
This header has no include guards and is apparently only supposed to be included from py/mphal.h. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-rw-r--r--ports/esp8266/esp_init_data.c1
-rw-r--r--ports/esp8266/esp_mphal.c2
-rw-r--r--ports/esp8266/uart.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/ports/esp8266/esp_init_data.c b/ports/esp8266/esp_init_data.c
index eb4d99ebd..c369ed58f 100644
--- a/ports/esp8266/esp_init_data.c
+++ b/ports/esp8266/esp_init_data.c
@@ -27,7 +27,6 @@
#include <stdio.h>
#include "ets_sys.h"
#include "etshal.h"
-#include "esp_mphal.h"
#include "user_interface.h"
#include "extmod/misc.h"
diff --git a/ports/esp8266/esp_mphal.c b/ports/esp8266/esp_mphal.c
index 06502e85c..afa934e00 100644
--- a/ports/esp8266/esp_mphal.c
+++ b/ports/esp8266/esp_mphal.c
@@ -28,9 +28,9 @@
#include "ets_sys.h"
#include "etshal.h"
#include "uart.h"
-#include "esp_mphal.h"
#include "user_interface.h"
#include "ets_alt_task.h"
+#include "py/mphal.h"
#include "py/runtime.h"
#include "py/stream.h"
#include "extmod/misc.h"
diff --git a/ports/esp8266/uart.c b/ports/esp8266/uart.c
index f761ecfd7..c0a33acb5 100644
--- a/ports/esp8266/uart.c
+++ b/ports/esp8266/uart.c
@@ -17,7 +17,7 @@
#include "etshal.h"
#include "c_types.h"
#include "user_interface.h"
-#include "esp_mphal.h"
+#include "py/mphal.h"
// seems that this is missing in the Espressif SDK
#define FUNC_U0RXD 0