File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,15 +164,25 @@ ifeq ($(TARGET),psoc6)
164164 $(CYPRESS_PDL ) /drivers/source/cy_ble_clk.o \
165165 $(CYPRESS_PDL ) /drivers/source/cy_wdt.o \
166166 $(CYPRESS_PDL ) /drivers/source/TOOLCHAIN_GCC_ARM/cy_syslib_gcc.o \
167- $(CYPRESS_PDL ) /devices/templates/COMPONENT_MTB/COMPONENT_CM0P/system_psoc6_cm0plus.o
167+ $(CYPRESS_PDL ) /devices/templates/COMPONENT_MTB/COMPONENT_CM0P/system_psoc6_cm0plus.o \
168+ ./lib/wolfssl/wolfcrypt/src/port/cypress/psoc6_crypto.o \
169+ $(CYPRESS_PDL ) /drivers/source/cy_crypto_core_sha_v2.o \
170+ $(CYPRESS_PDL ) /drivers/source/cy_crypto_core_sha_v1.o \
171+ $(CYPRESS_PDL ) /drivers/source/cy_crypto_core_mem_v2.o \
172+ $(CYPRESS_PDL ) /drivers/source/cy_crypto_core_mem_v1.o \
173+ $(CYPRESS_PDL ) /drivers/source/cy_crypto_core_hw.o \
174+ $(CYPRESS_PDL ) /drivers/source/cy_crypto_core_hw_v1.o \
175+ $(CYPRESS_PDL ) /drivers/source/cy_crypto.o
176+
168177 CFLAGS+ =-I$(CYPRESS_PDL ) /drivers/include/ \
169178 -I$(CYPRESS_PDL ) /devices/include \
170179 -I$(CYPRESS_PDL ) /cmsis/include \
171180 -I$(CYPRESS_TARGET_LIB ) \
172181 -I$(CYPRESS_CORE_LIB ) /include \
173182 -I$(CYPRESS_PDL ) /devices/include/ip \
174183 -I$(CYPRESS_PDL ) /devices/templates/COMPONENT_MTB \
175- -DCY8C624ABZI_D44
184+ -DCY8C624ABZI_D44 \
185+ -DWOLFSSL_PSOC6_CRYPTO
176186 ARCH_FLASH_OFFSET =0x10000000
177187endif
178188
Original file line number Diff line number Diff line change 3131#include "cy_sysclk.h"
3232#include "cy_syslib.h"
3333#include "cy_ipc_drv.h"
34+ #include "wolfssl/wolfcrypt/port/cypress/psoc6_crypto.h"
3435
3536#include "psoc6_02_config.h"
3637
@@ -100,6 +101,7 @@ void hal_init(void)
100101 Cy_PDL_Init (CY_DEVICE_CFG );
101102 Cy_Flash_Init ();
102103 hal_set_pll ();
104+ psoc6_crypto_port_init ();
103105}
104106
105107void hal_prepare_boot (void )
You can’t perform that action at this time.
0 commit comments