aboutsummaryrefslogtreecommitdiff
path: root/platform/stm32f0xx/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'platform/stm32f0xx/rules.mk')
-rw-r--r--platform/stm32f0xx/rules.mk56
1 files changed, 0 insertions, 56 deletions
diff --git a/platform/stm32f0xx/rules.mk b/platform/stm32f0xx/rules.mk
deleted file mode 100644
index 49e0bb52..00000000
--- a/platform/stm32f0xx/rules.mk
+++ /dev/null
@@ -1,56 +0,0 @@
-LOCAL_DIR := $(GET_LOCAL_DIR)
-
-MODULE := $(LOCAL_DIR)
-
-# ROMBASE, MEMBASE, and MEMSIZE are required for the linker script
-ROMBASE := 0x08000000
-MEMBASE := 0x20000000
-# can be overridden by target
-
-ARCH := arm
-ARM_CPU := cortex-m0
-
-ifeq ($(STM32_CHIP),stm32f072_x8)
-GLOBAL_DEFINES += \
- STM32F072
-MEMSIZE ?= 16384
-endif
-ifeq ($(STM32_CHIP),stm32f072_xB)
-GLOBAL_DEFINES += \
- STM32F072
-MEMSIZE ?= 16384
-endif
-
-GLOBAL_DEFINES += \
- USE_STDPERIPH_DRIVER \
- MEMSIZE=$(MEMSIZE)
-
-MODULE_SRCS += \
- $(LOCAL_DIR)/can.c \
- $(LOCAL_DIR)/debug.c \
- $(LOCAL_DIR)/dma.c \
- $(LOCAL_DIR)/gpio.c \
- $(LOCAL_DIR)/init.c \
- $(LOCAL_DIR)/rcc.c \
- $(LOCAL_DIR)/spi.c \
- $(LOCAL_DIR)/timer.c \
- $(LOCAL_DIR)/uart.c \
- $(LOCAL_DIR)/usbc.c \
- $(LOCAL_DIR)/vectab.c
-
-# use a two segment memory layout, where all of the read-only sections
-# of the binary reside in rom, and the read/write are in memory. The
-# ROMBASE, MEMBASE, and MEMSIZE make variables are required to be set
-# for the linker script to be generated properly.
-#
-LINKER_SCRIPT += \
- $(BUILDDIR)/system-twosegment.ld
-
-MODULE_DEPS += \
- platform/stm32f0xx/CMSIS \
- platform/stm32f0xx/STM32F0xx_HAL_Driver \
- arch/arm/arm-m/systick \
- dev/usb \
- lib/cbuf
-
-include make/module.mk