From ced8ab50af1429d9ba7651da1b3b78014fd76e79 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 11 Nov 2024 10:22:26 -0700 Subject: libmisc: Write my own assert.h --- libhw/host_alarmclock.c | 2 +- libhw/host_net.c | 2 +- libhw/rp2040_hwspi.c | 3 +-- libhw/rp2040_hwtimer.c | 3 +-- libhw/w5500_ll.h | 4 ++-- 5 files changed, 6 insertions(+), 8 deletions(-) (limited to 'libhw') diff --git a/libhw/host_alarmclock.c b/libhw/host_alarmclock.c index 141927c..4f43fc7 100644 --- a/libhw/host_alarmclock.c +++ b/libhw/host_alarmclock.c @@ -4,13 +4,13 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include #include #include #include #include #include +#include #include #define IMPLEMENTATION_FOR_LIBHW_GENERIC_ALARMCLOCK_H YES diff --git a/libhw/host_net.c b/libhw/host_net.c index 88bda49..29886f3 100644 --- a/libhw/host_net.c +++ b/libhw/host_net.c @@ -6,7 +6,6 @@ #define _GNU_SOURCE /* for pthread_sigqueue(3gnu) */ /* misc */ -#include /* for assert() */ #include /* for errno, EAGAIN, EINVAL */ #include /* for error(3gnu) */ #include /* for abs(), shutdown(), SHUT_RD, SHUT_WR, SHUT_RDWR */ @@ -20,6 +19,7 @@ #include /* for siginfo_t, struct sigaction, enum sigval, sigaction(), SA_SIGINFO */ #include +#include #include #include diff --git a/libhw/rp2040_hwspi.c b/libhw/rp2040_hwspi.c index 4edcdf7..29cfb91 100644 --- a/libhw/rp2040_hwspi.c +++ b/libhw/rp2040_hwspi.c @@ -4,11 +4,10 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include - #include /* pico-sdk:hardware_spi */ #include /* pico-sdk:hardware_gpio */ +#include #include #define IMPLEMENTATION_FOR_LIBHW_RP2040_HWSPI_H YES diff --git a/libhw/rp2040_hwtimer.c b/libhw/rp2040_hwtimer.c index 54bdab3..69c2a50 100644 --- a/libhw/rp2040_hwtimer.c +++ b/libhw/rp2040_hwtimer.c @@ -4,12 +4,11 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include - #include /* pico-sdk:hardware_irq */ #include /* pico-sdk:hardware_timer */ #include +#include #include #define IMPLEMENTATION_FOR_LIBHW_GENERIC_ALARMCLOCK_H YES diff --git a/libhw/w5500_ll.h b/libhw/w5500_ll.h index db66f01..1f578a9 100644 --- a/libhw/w5500_ll.h +++ b/libhw/w5500_ll.h @@ -10,12 +10,12 @@ #ifndef _LIBHW_W5500_LL_H_ #define _LIBHW_W5500_LL_H_ -#include /* for assert(), static_assert() */ #include /* for uint{n}_t */ #include /* for memcmp() */ -#include /* for VCALL() */ +#include /* for assert(), static_assert() */ #include /* for uint16be_t */ +#include /* for VCALL() */ #include /* for struct net_eth_addr, struct net_ip4_addr */ #include /* for implements_spi */ -- cgit v1.2.3-2-g168b