From e0085b57347bb3eec06f84abf37be3ae590e75f7 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 16 Oct 2024 15:30:54 -0600 Subject: closer to compiling --- cmd/sbc_harness/hw/w5500.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd/sbc_harness/hw/w5500.h') diff --git a/cmd/sbc_harness/hw/w5500.h b/cmd/sbc_harness/hw/w5500.h index 90d4130..967a436 100644 --- a/cmd/sbc_harness/hw/w5500.h +++ b/cmd/sbc_harness/hw/w5500.h @@ -43,13 +43,13 @@ struct w5500 { * happened.) * - A reset pin that the MCU can pull low to reset the W5500. */ -#define w5500_init(self, name, spi, pin_intr, pin_reset, eth_addr) do { \ - bi_decl(bi_2_pins_with_names(pin_intr, name" interrupt"), \ - pin_reset, name" reset"); \ - _w5500_init(self, spi, pin_intr, pin_reset, eth_addr); \ +#define w5500_init(self, name, spi, pin_intr, pin_reset, eth_addr) do { \ + bi_decl(bi_2pins_with_names(pin_intr, name" interrupt", \ + pin_reset, name" reset")); \ + _w5500_init(self, spi, pin_intr, pin_reset, eth_addr); \ } while (0) void _w5500_init(struct w5500 *self, - struct spi* spi, uint pin_intr, + struct spi* spi, uint pin_intr, uint pin_reset, struct eth_addr addr); /** -- cgit v1.2.3-2-g168b