f4discovery: Fix error with GCC9 being more picky with sizes.

This commit is contained in:
Uwe Bonnes 2019-12-05 12:21:02 +01:00 committed by UweBonnes
parent 8a07f44435
commit f10ccfd83e

View File

@ -38,11 +38,11 @@
#include <libopencm3/cm3/cortex.h> #include <libopencm3/cm3/cortex.h>
jmp_buf fatal_error_jmpbuf; jmp_buf fatal_error_jmpbuf;
extern uint32_t _ebss; extern char _ebss[];
void platform_init(void) void platform_init(void)
{ {
volatile uint32_t *magic = (uint32_t *) &_ebss; volatile uint32_t *magic = (uint32_t *)_ebss;
/* Check the USER button*/ /* Check the USER button*/
rcc_periph_clock_enable(RCC_GPIOA); rcc_periph_clock_enable(RCC_GPIOA);
if (gpio_get(GPIOA, GPIO0) || if (gpio_get(GPIOA, GPIO0) ||