Browse Source

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 8 months ago
parent
commit
a30c29398a
  1. 1
      ports/esp32/main.c
  2. 1
      ports/renesas-ra/mpthreadport.h
  3. 1
      ports/rp2/mpthreadport.h
  4. 1
      ports/stm32/mpthreadport.h

1
ports/esp32/main.c

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

1
ports/renesas-ra/mpthreadport.h

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

1
ports/rp2/mpthreadport.h

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

1
ports/stm32/mpthreadport.h

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

Loading…
Cancel
Save