Skip to content

Commit

Permalink
Add rudimentary support for iILD drivers
Browse files Browse the repository at this point in the history
This is sufficient to compile a LED blinking app. For drivers other
than IfxPort, more thing will probably be needed to add.
  • Loading branch information
wentasah committed Jul 25, 2022
1 parent 13496e6 commit 19f0577
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkg/arch/tricore/ee_arch_compiler_tasking_ctc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,22 @@ export APP_TARGETS := $(TARGET_NAME).elf
$(info APP_TARGETS=$(APP_TARGETS))
endif # !OS_EE_BUILD

# iLLD support is included only in application build, not in EE kernel build.
ifneq ($(call iseeopt, OS_EE_BUILD), yes)
# Add include paths to iLLD. This relies on the fact that Erika is
# located in a subdirectory of Aurix Studio project and iLLD-related
# files are in other subdirectories (where they are copied by default
# by the IDE).
INCLUDE_PATH += $(call short_native_path, $(abspath $(wildcard ../../Configurations)))
INCLUDE_PATH += $(call short_native_path, $(abspath $(wildcard ../../Libraries/Infra/Platform)))
INCLUDE_PATH += $(call short_native_path, $(abspath $(wildcard ../../Libraries/Infra/Sfr/TC38A/_Reg)))
INCLUDE_PATH += $(call short_native_path, $(abspath $(wildcard ../../Libraries/iLLD/TC38A/Tricore)))
INCLUDE_PATH += $(call short_native_path, $(abspath $(wildcard ../../Libraries/Service/CpuGeneric)))

# Add a subset of iLLD drivers to application build.
OS_EE_APP_CFG_SRCS += \
../Libraries/iLLD/TC38A/Tricore/Port/Std/IfxPort.c \
../Libraries/iLLD/TC38A/Tricore/Port/Std/IfxPort.c \
../Libraries/iLLD/TC38A/Tricore/_Impl/IfxPort_cfg.c \
../Libraries/iLLD/TC38A/Tricore/Scu/Std/IfxScuWdt.c
endif # OS_EE_BUILD

0 comments on commit 19f0577

Please sign in to comment.