File tree Expand file tree Collapse file tree 2 files changed +768
-0
lines changed Expand file tree Collapse file tree 2 files changed +768
-0
lines changed Original file line number Diff line number Diff line change
1
+ CFLAGS += \
2
+ -flto \
3
+ -mthumb \
4
+ -mcpu=cortex-m4 \
5
+ -mfloat-abi=hard \
6
+ -mfpu=fpv4-sp-d16 \
7
+ -nostdlib -nostartfiles \
8
+ -D__STARTUP_CLEAR_BSS \
9
+ -D__START=main \
10
+ -DEFM32GG12B810F1024GM64 \
11
+ -DCFG_TUSB_MCU=OPT_MCU_EFM32GG12
12
+
13
+ # mcu driver cause following warnings
14
+ # CFLAGS += -Wno-error=unused-parameter
15
+
16
+ SILABS_FAMILY = efm32gg12b
17
+ SILABS_CMSIS = hw/mcu/silabs/cmsis-dfp-$(SILABS_FAMILY ) /Device/SiliconLabs/$(shell echo $(SILABS_FAMILY ) | tr a-z A-Z)
18
+
19
+ DEPS_SUBMODULES += hw/mcu/silabs/cmsis-dfp-$(SILABS_FAMILY )
20
+ DEPS_SUBMODULES += lib/CMSIS_5
21
+
22
+ # All source paths should be relative to the top level.
23
+ LD_FILE = $(SILABS_CMSIS ) /Source/GCC/$(SILABS_FAMILY ) .ld
24
+
25
+ SRC_C += \
26
+ $(SILABS_CMSIS ) /Source/system_$(SILABS_FAMILY ) .c \
27
+ src/portable/silabs/efm32/dcd_efm32.c
28
+
29
+ SRC_S += \
30
+ $(SILABS_CMSIS ) /Source/GCC/startup_$(SILABS_FAMILY ) .S
31
+
32
+ INC += \
33
+ $(TOP ) /lib/CMSIS_5/CMSIS/Core/Include \
34
+ $(TOP ) /$(SILABS_CMSIS ) /Include \
35
+ $(TOP ) /hw/bsp/$(BOARD )
36
+
37
+ # For TinyUSB port source
38
+ VENDOR = silabs
39
+ CHIP_FAMILY = efm32
40
+
41
+ # For freeRTOS port source
42
+ FREERTOS_PORT = ARM_CM4
43
+
44
+ # For flash-jlink target
45
+ JLINK_DEVICE = EFM32GG12B810F1024
46
+
47
+ flash : flash-jlink
You can’t perform that action at this time.
0 commit comments