From f85a8c4ebb2ae4b45231813d06dd26d13eb2e6de Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Thu, 16 Oct 2014 13:40:47 -0700 Subject: [PATCH] Fix build for f4discovery by defining platform_hwversion(). --- src/platforms/f4discovery/platform.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platforms/f4discovery/platform.h b/src/platforms/f4discovery/platform.h index 210ba62..7d6e92e 100644 --- a/src/platforms/f4discovery/platform.h +++ b/src/platforms/f4discovery/platform.h @@ -182,8 +182,11 @@ extern const char *morse_msg; int platform_init(void); void morse(const char *msg, char repeat); const char *platform_target_voltage(void); -int platform_hwversion(void); void platform_delay(uint32_t delay); +static inline int platform_hwversion(void) +{ + return 0; +} /* */ void cdcacm_init(void); @@ -226,3 +229,4 @@ static inline uint16_t _gpio_get(uint32_t gpioport, uint16_t gpios) #define disconnect_usb() do {usbd_disconnect(usbdev,1); nvic_disable_irq(USB_IRQ);} while(0) void assert_boot_pin(void); #define setup_vbus_irq() +