diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-16 15:30:54 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-16 15:30:54 -0600 |
commit | e0085b57347bb3eec06f84abf37be3ae590e75f7 (patch) | |
tree | 2f338fde18cd4dab1a7115e161ed0343845c2cf9 /cmd/sbc_harness/hw/w5500.h | |
parent | c65052854eeef203dfecb73844ea69b368214b42 (diff) |
closer to compiling
Diffstat (limited to 'cmd/sbc_harness/hw/w5500.h')
-rw-r--r-- | cmd/sbc_harness/hw/w5500.h | 10 |
1 files changed, 5 insertions, 5 deletions
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); /** |