Skip to content

Commit

Permalink
added conditional inclusion for lock
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Oct 24, 2024
1 parent 531efa8 commit 1d05e78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 7 additions & 1 deletion Libraries/PeriphDrivers/libPeriphDriver.mk
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ include ${CMSIS_ROOT}/../PeriphDrivers/$(TARGET_LC)_files.mk

PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_assert.c
PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_delay.c
PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_lock.c
PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/nvic_table.c
# TODO(JC): Implement mxc_lock for RISC-V. Skip for now.
ifneq "$(RISCV_CORE)" "1"
ifneq "$(RISCV_CORE)" "RV32"
# ^ NOTE(JC): Some legacy Makefiles use "RV32". We recommend using "1" in the UG
PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_lock.c
endif
endif

# # Where to find header files for this project
IPATH += $(PERIPH_DRIVER_INCLUDE_DIR)
Expand Down
8 changes: 1 addition & 7 deletions Libraries/PeriphDrivers/max78002_files.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ PINS_FILE ?= $(SOURCE_DIR)/SYS/pins_ai87.c

# Source files

# TODO(JC): Implement mxc_lock for RISC-V. Skip for now.
ifneq "$(RISCV_CORE)" "1"
ifneq "$(RISCV_CORE)" "RV32"
# ^ NOTE(JC): Some legacy Makefiles use "RV32". We recommend using "1" in the UG
PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/mxc_lock.c
endif
endif


PERIPH_DRIVER_C_FILES += $(PINS_FILE)
PERIPH_DRIVER_C_FILES += $(SOURCE_DIR)/SYS/sys_ai87.c
Expand Down

0 comments on commit 1d05e78

Please sign in to comment.