From d7d77d91becd0716ac1672c92652d9dd72ec613f Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 11 Jun 2024 16:31:49 +1000 Subject: [PATCH] qemu-arm: Clean up header file includes. Signed-off-by: Damien George --- ports/qemu-arm/main.c | 5 ----- ports/qemu-arm/mphalport.h | 1 - ports/qemu-arm/test_main.c | 4 ---- ports/qemu-arm/uart.h | 6 ++++++ 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ports/qemu-arm/main.c b/ports/qemu-arm/main.c index 212fd6021..025c1f17d 100644 --- a/ports/qemu-arm/main.c +++ b/ports/qemu-arm/main.c @@ -24,18 +24,13 @@ * THE SOFTWARE. */ -#include #include #include -#include -#include -#include "py/obj.h" #include "py/compile.h" #include "py/runtime.h" #include "py/stackctrl.h" #include "py/gc.h" -#include "py/repl.h" #include "py/mperrno.h" void do_str(const char *src, mp_parse_input_kind_t input_kind) { diff --git a/ports/qemu-arm/mphalport.h b/ports/qemu-arm/mphalport.h index d854cd82d..8a40505ba 100644 --- a/ports/qemu-arm/mphalport.h +++ b/ports/qemu-arm/mphalport.h @@ -24,7 +24,6 @@ * THE SOFTWARE. */ -#include #include "uart.h" #define mp_hal_stdin_rx_chr() (0) diff --git a/ports/qemu-arm/test_main.c b/ports/qemu-arm/test_main.c index 13d18bb0f..96984f7cd 100644 --- a/ports/qemu-arm/test_main.c +++ b/ports/qemu-arm/test_main.c @@ -24,12 +24,8 @@ * THE SOFTWARE. */ -#include #include #include -#include -#include -#include #include "py/compile.h" #include "py/runtime.h" diff --git a/ports/qemu-arm/uart.h b/ports/qemu-arm/uart.h index b2b9e523c..33eae05bd 100644 --- a/ports/qemu-arm/uart.h +++ b/ports/qemu-arm/uart.h @@ -23,6 +23,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef MICROPY_INCLUDED_QEMU_ARM_UART_H +#define MICROPY_INCLUDED_QEMU_ARM_UART_H + +#include void uart_init(void); void uart_tx_strn(const char *buf, size_t len); + +#endif // MICROPY_INCLUDED_QEMU_ARM_UART_H