File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
2
2
# 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
9
10
10
11
PROJECT_DIR ?= $(error PROJECT_DIR must be defined)
11
12
PROJECT_NAME = $(basename $(notdir $(PROJECT_DIR)))
12
13
PSOC_CREATOR_DIR ?= $(error PSOC_CREATOR_DIR must be defined)
13
14
CROSS_COMPILE := arm-none-eabi-
14
- CPU_TYPE ?= CY8C42
15
- PSOC_TYPE ?= PSoC4
15
+ CPU_TYPE ?= CY8C49
16
16
17
+ # Baudrate speed to communicate with the Cypress bootloader
17
18
UPLOAD_BAUDRATE ?= 115200
19
+ # Serial port of the device
18
20
SERIAL_PORT ?= /dev/ttyACM0
19
21
20
22
DEBUG_CFLAGS := -g -O0
21
23
RELEASE_CFLAGS := -O3
22
- GEN_SRC_DIR := Generated_Source/$(PSOC_TYPE )/
24
+ GEN_SRC_DIR := Generated_Source/$($(CPU_TYPE)_psoc_type )/
23
25
24
26
COMMON_FLAGS := -mcpu=$($(CPU_TYPE)_mcpu) -mthumb
25
27
You can’t perform that action at this time.
0 commit comments