Skip to content

Commit 3b3b534

Browse files
author
Clement Leger
committed
Makefile: fix name of cy8ckit-049
1 parent 03c28da commit 3b3b534

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

make/Makefile.cypress

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11

22
# Add a entry here to define a new platform
3-
CY8C42_flash_size := 32768
4-
CY8C42_flash_array_size := 32768
5-
CY8C42_flash_row_size := 128
6-
CY8C42_mcpu := cortex-m0
7-
CY8C42_cpu_dir := CortexM0
8-
CY8C42_bootloader_size := 4296
3+
CY8C49_flash_size := 32768
4+
CY8C49_flash_array_size := 32768
5+
CY8C49_flash_row_size := 128
6+
CY8C49_mcpu := cortex-m0
7+
CY8C49_cpu_dir := CortexM0
8+
CY8C49_bootloader_size := 4296
9+
CY8C49_psoc_type := PSoC4
910

1011
PROJECT_DIR ?= $(error PROJECT_DIR must be defined)
1112
PROJECT_NAME = $(basename $(notdir $(PROJECT_DIR)))
1213
PSOC_CREATOR_DIR ?= $(error PSOC_CREATOR_DIR must be defined)
1314
CROSS_COMPILE := arm-none-eabi-
14-
CPU_TYPE ?= CY8C42
15-
PSOC_TYPE ?= PSoC4
15+
CPU_TYPE ?= CY8C49
1616

17+
# Baudrate speed to communicate with the Cypress bootloader
1718
UPLOAD_BAUDRATE ?= 115200
19+
# Serial port of the device
1820
SERIAL_PORT ?= /dev/ttyACM0
1921

2022
DEBUG_CFLAGS := -g -O0
2123
RELEASE_CFLAGS := -O3
22-
GEN_SRC_DIR := Generated_Source/$(PSOC_TYPE)/
24+
GEN_SRC_DIR := Generated_Source/$($(CPU_TYPE)_psoc_type)/
2325

2426
COMMON_FLAGS := -mcpu=$($(CPU_TYPE)_mcpu) -mthumb
2527

0 commit comments

Comments
 (0)