Skip to content

Commit 66be82d

Browse files
committed
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 <[email protected]>
1 parent 0960d64 commit 66be82d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Diff for: ports/esp8266/esp_init_data.c

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <stdio.h>
2828
#include "ets_sys.h"
2929
#include "etshal.h"
30-
#include "esp_mphal.h"
3130
#include "user_interface.h"
3231
#include "extmod/misc.h"
3332

Diff for: ports/esp8266/esp_mphal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#include "ets_sys.h"
2929
#include "etshal.h"
3030
#include "uart.h"
31-
#include "esp_mphal.h"
3231
#include "user_interface.h"
3332
#include "ets_alt_task.h"
33+
#include "py/mphal.h"
3434
#include "py/runtime.h"
3535
#include "py/stream.h"
3636
#include "extmod/misc.h"

Diff for: ports/esp8266/uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "etshal.h"
1818
#include "c_types.h"
1919
#include "user_interface.h"
20-
#include "esp_mphal.h"
20+
#include "py/mphal.h"
2121

2222
// seems that this is missing in the Espressif SDK
2323
#define FUNC_U0RXD 0

0 commit comments

Comments
 (0)