summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-27 11:50:17 +0700
committerhathach <[email protected]>2022-06-27 11:50:17 +0700
commitb9dc9dbd78ee1890342429502d585f323c480fc2 (patch)
tree922509c3012736c3b7b564c99d8c27ef77d60013 /hw
parent0042eccb3b2ff0f980f3a927a271364a2089ada5 (diff)
fix most warnings with rp2040 -wconversion
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/rp2040/family.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c
index 68c9e2d52..90e2192c0 100644
--- a/hw/bsp/rp2040/family.c
+++ b/hw/bsp/rp2040/family.c
@@ -53,7 +53,7 @@
//
// This doesn't work if others are trying to access flash at the same time,
// e.g. XIP streamer, or the other core.
-bool __no_inline_not_in_flash_func(get_bootsel_button)() {
+bool __no_inline_not_in_flash_func(get_bootsel_button)(void) {
const uint CS_PIN_INDEX = 1;
// Must disable interrupts, as interrupt handlers may be in flash, and we
@@ -170,6 +170,8 @@ void board_init(void)
void board_led_write(bool state)
{
+ (void) state;
+
#ifdef LED_PIN
gpio_put(LED_PIN, state ? LED_STATE_ON : (1-LED_STATE_ON));
#endif
@@ -192,6 +194,7 @@ int board_uart_read(uint8_t* buf, int len)
}
return len;
#else
+ (void) buf; (void) len;
return 0;
#endif
}
@@ -205,6 +208,7 @@ int board_uart_write(void const * buf, int len)
}
return len;
#else
+ (void) buf; (void) len;
return 0;
#endif
}