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>
pull/13778/head
Damien George 2024-02-29 13:35:36 +11:00
rodzic b91b2a7fe9
commit a30c29398a
4 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -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"

Wyświetl plik

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

Wyświetl plik

@ -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;

Wyświetl plik

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