Skip to content

Commit

Permalink
ports/psoc6: Moving pin package var to board specifice makefile.
Browse files Browse the repository at this point in the history
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
  • Loading branch information
NikhitaR-IFX committed Oct 9, 2023
1 parent 3bcfa46 commit 3ac7895
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 1 addition & 8 deletions ports/psoc6/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ endif
MAKE_PINS_CSV = ./boards/make-pins-csv.py
MAKE_PINS = ./boards/make-pins.py

ifeq ($(BOARD), CY8CPROTO-062-4343W)
PIN_PACKAGE_FILE = cyhal_psoc6_02_124_bga.h
endif
ifeq ($(BOARD), CY8CPROTO-063-BLE)
PIN_PACKAGE_FILE = cyhal_psoc6_01_116_bga_ble.h #ToDo: Check the right file and replace
endif

#ToDo: Post adding af functionality, refactor to minimize dependent variables in py script if possible
GEN_PINS_SRC := ./build/pins_$(BOARD).c
HEADER_BUILD := ./build/genhdr
Expand Down Expand Up @@ -243,7 +236,7 @@ build: mtb_get_build_flags make_pins_csv $(MPY_PATH_TO_MAIN_MAKEFILE) $(MPY_MAIN

all: build

clean: mtb_clean
#clean: mtb_clean

rebuild: clean mtb_clean all

Expand Down
3 changes: 3 additions & 0 deletions ports/psoc6/boards/CY8CPROTO-062-4343W/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ MICROPY_PY_SSL = 1
MICROPY_PSOC6_SSL_MBEDTLS = 1
MICROPY_PY_EXT_FLASH = 1
BOARD_VERSION=release-v4.0.0

# Variables to support make-pins
PIN_PACKAGE_FILE = cyhal_psoc6_02_124_bga.h
3 changes: 3 additions & 0 deletions ports/psoc6/boards/CY8CPROTO-063-BLE/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ FROZEN_MANIFEST ?= boards/manifest.py
MICROPY_PY_SSL = 0
MICROPY_PSOC6_SSL_MBEDTLS = 0
BOARD_VERSION=release-v4.2.0

# Variables to support make-pins
PIN_PACKAGE_FILE = cyhal_psoc6_01_116_bga_ble.h

0 comments on commit 3ac7895

Please sign in to comment.