f4discovery: Fix error with GCC9 being more picky with sizes.
This commit is contained in:
parent
8a07f44435
commit
f10ccfd83e
@ -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) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user