ports: Don't include mpthread.h in mpthreadport.h.

Because `mpthreadport.h` is included by `mpthread.h`.

Also remove unnecessary include of `mpthreadport.h` in esp32's `main.c`.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-02-29 13:35:36 +11:00
parent b91b2a7fe9
commit a30c29398a
4 changed files with 0 additions and 4 deletions

View File

@@ -59,7 +59,6 @@
#include "usb_serial_jtag.h"
#include "modmachine.h"
#include "modnetwork.h"
#include "mpthreadport.h"
#if MICROPY_BLUETOOTH_NIMBLE
#include "extmod/modbluetooth.h"

View File

@@ -24,7 +24,6 @@
* THE SOFTWARE.
*/
#include "py/mpthread.h"
#include "pybthread.h"
typedef pyb_mutex_t mp_thread_mutex_t;

View File

@@ -26,7 +26,6 @@
#ifndef MICROPY_INCLUDED_RP2_MPTHREADPORT_H
#define MICROPY_INCLUDED_RP2_MPTHREADPORT_H
#include "py/mpthread.h"
#include "pico/mutex.h"
typedef struct mutex mp_thread_mutex_t;

View File

@@ -24,7 +24,6 @@
* THE SOFTWARE.
*/
#include "py/mpthread.h"
#include "pybthread.h"
typedef pyb_mutex_t mp_thread_mutex_t;