Add IRQ handlers and missing Makefile FP flags
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
f05b5abdab
commit
730cfec66c
@@ -142,7 +142,7 @@
|
|||||||
"gfxtim",
|
"gfxtim",
|
||||||
"jpeg"
|
"jpeg"
|
||||||
],
|
],
|
||||||
"partname_humanreadable": "STM32 u5 series",
|
"partname_humanreadable": "STM32 U5 series",
|
||||||
"partname_doxygen": "STM32U5",
|
"partname_doxygen": "STM32U5",
|
||||||
"includeguard": "LIBOPENCM3_STM32_U5_NVIC_H"
|
"includeguard": "LIBOPENCM3_STM32_U5_NVIC_H"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
# include <libopencmsis/stm32/l1/irqhandlers.h>
|
# include <libopencmsis/stm32/l1/irqhandlers.h>
|
||||||
#elif defined(STM32L4)
|
#elif defined(STM32L4)
|
||||||
# include <libopencmsis/stm32/l4/irqhandlers.h>
|
# include <libopencmsis/stm32/l4/irqhandlers.h>
|
||||||
|
#elif defined(STM32U5)
|
||||||
|
# include <libopencmsis/stm32/u5/irqhandlers.h>
|
||||||
#elif defined(STM32G0)
|
#elif defined(STM32G0)
|
||||||
# include <libopencmsis/stm32/g0/irqhandlers.h>
|
# include <libopencmsis/stm32/g0/irqhandlers.h>
|
||||||
#elif defined(STM32G4)
|
#elif defined(STM32G4)
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
LIBNAME = libopencm3_stm32u5
|
LIBNAME = libopencm3_stm32u5
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv5-sp-d16
|
||||||
|
|
||||||
CC = $(PREFIX)gcc
|
CC = $(PREFIX)gcc
|
||||||
AR = $(PREFIX)ar
|
AR = $(PREFIX)ar
|
||||||
@@ -27,7 +28,7 @@ TGT_CFLAGS = -Os \
|
|||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
-Wundef -Wshadow \
|
-Wundef -Wshadow \
|
||||||
-I../../../include -fno-common \
|
-I../../../include -fno-common \
|
||||||
-mcpu=cortex-m0 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m33 $(FP_FLAGS) -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSTM32U5
|
-ffunction-sections -fdata-sections -MD -DSTM32U5
|
||||||
TGT_CFLAGS += $(DEBUG_FLAGS)
|
TGT_CFLAGS += $(DEBUG_FLAGS)
|
||||||
TGT_CFLAGS += $(STANDARD_FLAGS)
|
TGT_CFLAGS += $(STANDARD_FLAGS)
|
||||||
|
|||||||
Reference in New Issue
Block a user