aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Narkevitch <ainh@cypress.com>2020-01-15 13:11:54 -0800
committerDavid Hu <david.hu@arm.com>2020-01-23 01:47:17 +0000
commit1c7a69d06c63cc20fc4c30c6f657f121b3924dbb (patch)
tree3b4e323332f0d0caa7fb30756e082585145a5da7
parent6dff309e22a174b0c58fe02e8668b33ee999cf7d (diff)
downloadtrusted-firmware-m-1c7a69d06c63cc20fc4c30c6f657f121b3924dbb.tar.gz
Platform: move debug printouts out of tfm_spm_hal_init_isolation_hw (psoc64)
A recent change (https://review.trustedfirmware.org/c/trusted-firmware-m/+/3040) moves isolation hw initialization above tfm_spm_hal_post_init() thus making UART uninitialized at the time of calling tfm_spm_hal_init_isolation_hw(). Added SMPU_Print_Config() to print SMPU configuration later. Optimized smpu_init_cfg() and ppu_init_cfg(). Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: I4f4fa40f6e9632d02a7d366470d6c71b88bcf0ef
-rw-r--r--platform/ext/target/cypress/psoc64/driver_smpu.c17
-rw-r--r--platform/ext/target/cypress/psoc64/driver_smpu.h1
-rw-r--r--platform/ext/target/cypress/psoc64/spm_hal.c6
-rw-r--r--platform/ext/target/cypress/psoc64/target_cfg.c1570
-rw-r--r--platform/ext/target/cypress/psoc64/target_cfg.h5
5 files changed, 331 insertions, 1268 deletions
diff --git a/platform/ext/target/cypress/psoc64/driver_smpu.c b/platform/ext/target/cypress/psoc64/driver_smpu.c
index c1363628c..0adf1564a 100644
--- a/platform/ext/target/cypress/psoc64/driver_smpu.c
+++ b/platform/ext/target/cypress/psoc64/driver_smpu.c
@@ -20,6 +20,7 @@
#include "region_defs.h"
#include "RTE_Device.h"
#include "smpu_config.h"
+#include "log/tfm_log.h"
#include "cy_prot.h"
@@ -73,12 +74,10 @@ static const char * smpu_name(const SMPU_Resources *smpu_dev)
}
/* API functions */
-cy_en_prot_status_t SMPU_Configure(const SMPU_Resources *smpu_dev)
-{
- cy_en_prot_status_t ret;
- printf("%s(%s) - address = %p, size = %#x bytes, %s subregions enabled\n",
- __func__,
+void SMPU_Print_Config(const SMPU_Resources *smpu_dev)
+{
+ printf("%s - address = %p, size = %#x bytes, %s subregions enabled\n",
smpu_name(smpu_dev),
smpu_dev->slave_config.address,
(uint32_t)REGIONSIZE_TO_BYTES(smpu_dev->slave_config.regionSize),
@@ -92,6 +91,11 @@ cy_en_prot_status_t SMPU_Configure(const SMPU_Resources *smpu_dev)
smpu_dev->slave_config.subregions & (1<<i) ? "disabled" : "enabled");
}
}
+}
+
+cy_en_prot_status_t SMPU_Configure(const SMPU_Resources *smpu_dev)
+{
+ cy_en_prot_status_t ret;
ret = Cy_Prot_ConfigSmpuSlaveStruct(smpu_dev->smpu,
&smpu_dev->slave_config);
@@ -125,8 +129,7 @@ cy_en_prot_status_t protect_unconfigured_smpus(void)
if ((_FLD2VAL(PROT_SMPU_SMPU_STRUCT_ATT0_ENABLED, att0) == 0)
&& (_FLD2VAL(PROT_SMPU_SMPU_STRUCT_ATT1_ENABLED, att1) == 0)) {
- printf("%s() - protecting unconfigured SMPU %d\n",
- __func__, i);
+
ret = Cy_Prot_ConfigSmpuMasterStruct(&PROT->SMPU.SMPU_STRUCT[i],
&smpu_config);
if (ret != CY_PROT_SUCCESS) {
diff --git a/platform/ext/target/cypress/psoc64/driver_smpu.h b/platform/ext/target/cypress/psoc64/driver_smpu.h
index 46bc0f2f3..4962850cf 100644
--- a/platform/ext/target/cypress/psoc64/driver_smpu.h
+++ b/platform/ext/target/cypress/psoc64/driver_smpu.h
@@ -25,6 +25,7 @@ typedef struct smpu_resources SMPU_Resources;
/* API functions */
cy_en_prot_status_t SMPU_Configure(const SMPU_Resources *smpu_dev);
cy_en_prot_status_t protect_unconfigured_smpus(void);
+void SMPU_Print_Config(const SMPU_Resources *smpu_dev);
/* Exported per-SMPU macros */
#define DECLARE_SMPU(N) extern const SMPU_Resources SMPU##N##_Resources;
diff --git a/platform/ext/target/cypress/psoc64/spm_hal.c b/platform/ext/target/cypress/psoc64/spm_hal.c
index 744d36259..350845a7f 100644
--- a/platform/ext/target/cypress/psoc64/spm_hal.c
+++ b/platform/ext/target/cypress/psoc64/spm_hal.c
@@ -34,6 +34,7 @@ extern const struct memory_region_limits memory_regions;
enum tfm_plat_err_t tfm_spm_hal_init_isolation_hw(void)
{
+ Cy_PDL_Init(CY_DEVICE_CFG);
smpu_init_cfg();
ppu_init_cfg();
bus_masters_cfg();
@@ -213,6 +214,7 @@ uint32_t tfm_spm_hal_get_ns_entry_point(void)
void tfm_spm_hal_boot_ns_cpu(uintptr_t start_addr)
{
+ smpu_print_config();
printf("Starting Cortex-M4 at 0x%x\r\n", start_addr);
Cy_SysEnableCM4(start_addr);
}
@@ -244,7 +246,7 @@ void tfm_spm_hal_wait_for_ns_cpu_ready(void)
Cy_IPC_Drv_ReleaseNotify(Cy_IPC_Drv_GetIpcBaseAddress(IPC_RX_CHAN),
IPC_RX_RELEASE_MASK);
if (data == ~IPC_SYNC_MAGIC) {
- printf("Cores sync success.\r\n");
+ printf("\n\rCores sync success.\r\n");
break;
}
}
@@ -372,8 +374,6 @@ enum tfm_plat_err_t tfm_spm_hal_system_reset_cfg(void)
enum tfm_plat_err_t tfm_spm_hal_init_debug(void)
{
- printf("%s()\n", __func__);
-
return TFM_PLAT_ERR_SUCCESS;
}
diff --git a/platform/ext/target/cypress/psoc64/target_cfg.c b/platform/ext/target/cypress/psoc64/target_cfg.c
index aba45dbbe..72d9e2bf4 100644
--- a/platform/ext/target/cypress/psoc64/target_cfg.c
+++ b/platform/ext/target/cypress/psoc64/target_cfg.c
@@ -123,8 +123,6 @@ void platform_init(void)
enum tfm_plat_err_t nvic_interrupt_target_state_cfg(void)
{
- printf("%s()\n", __func__);
-
return TFM_PLAT_ERR_SUCCESS;
}
@@ -141,8 +139,6 @@ static cy_en_prot_status_t set_bus_master_attr(void)
{
cy_en_prot_status_t ret;
- printf("%s()\n", __func__);
-
/* Cortex-M4 - PC=6 */
ret = Cy_Prot_SetActivePC(CPUSS_MS_ID_CM4, CY_PROT_HOST_DEFAULT);
if (ret != CY_PROT_SUCCESS) {
@@ -166,1979 +162,1037 @@ static cy_en_prot_status_t set_bus_master_attr(void)
void bus_masters_cfg(void)
{
- cy_en_prot_status_t ret = set_bus_master_attr();
- if (ret) {
- printf("set_bus_master_attr() returned %#x\n", ret);
- }
+ cy_en_prot_status_t ret;
+ ret = set_bus_master_attr();
assert(ret == CY_PROT_SUCCESS);
}
-void smpu_init_cfg(void)
-{
- cy_en_prot_status_t ret;
-
- printf("%s()\n", __func__);
-
- printf("memory_regions.non_secure_code_start = %#x\n", memory_regions.non_secure_code_start);
- printf("memory_regions.non_secure_partition_base = %#x\n", memory_regions.non_secure_partition_base);
- printf("memory_regions.non_secure_partition_limit = %#x\n", memory_regions.non_secure_partition_limit);
+const SMPU_Resources *smpu_init_table[] = {
+#if RTE_SMPU0
+ &SMPU0_Resources,
+#endif
-#if RTE_SMPU13
- ret = SMPU_Configure(&SMPU13_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU13) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+#if RTE_SMPU1
+ &SMPU1_Resources,
#endif
-#if RTE_SMPU12
- ret = SMPU_Configure(&SMPU12_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU12) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU2
+ &SMPU2_Resources,
#endif
-#if RTE_SMPU11
- ret = SMPU_Configure(&SMPU11_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU11) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU3
+ &SMPU3_Resources,
#endif
-#if RTE_SMPU10
- ret = SMPU_Configure(&SMPU10_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU10) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU4
+ &SMPU4_Resources,
#endif
-#if RTE_SMPU9
- ret = SMPU_Configure(&SMPU9_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU9) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU5
+ &SMPU5_Resources,
#endif
-#if RTE_SMPU8
- ret = SMPU_Configure(&SMPU8_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU8) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU6
+ &SMPU6_Resources,
#endif
+
#if RTE_SMPU7
- ret = SMPU_Configure(&SMPU7_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU7) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SMPU7_Resources,
#endif
-#if RTE_SMPU6
- ret = SMPU_Configure(&SMPU6_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU6) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU8
+ &SMPU8_Resources,
#endif
-#if RTE_SMPU5
- ret = SMPU_Configure(&SMPU5_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU5) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU9
+ &SMPU9_Resources,
#endif
-#if RTE_SMPU4
- ret = SMPU_Configure(&SMPU4_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU4) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU10
+ &SMPU10_Resources,
#endif
-#if RTE_SMPU3
- ret = SMPU_Configure(&SMPU3_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU3) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU11
+ &SMPU11_Resources,
#endif
-#if RTE_SMPU2
- ret = SMPU_Configure(&SMPU2_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU2) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU12
+ &SMPU12_Resources,
#endif
-#if RTE_SMPU1
- ret = SMPU_Configure(&SMPU1_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU1) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+
+#if RTE_SMPU13
+ &SMPU13_Resources,
#endif
-#if RTE_SMPU0
- ret = SMPU_Configure(&SMPU0_Resources);
- if (ret) {
- printf("SMPU_Configure(SMPU0) returned %#x\n", ret);
+};
+
+void smpu_init_cfg(void)
+{
+ cy_en_prot_status_t ret;
+
+ size_t n = sizeof(smpu_init_table)/sizeof(smpu_init_table[0]);
+
+ for (int i = (n - 1); i >= 0; i--)
+ {
+ ret = SMPU_Configure(smpu_init_table[i]);
+ assert(ret == CY_PROT_SUCCESS);
}
- assert(ret == CY_PROT_SUCCESS);
-#endif
/* Now protect all unconfigured SMPUs */
ret = protect_unconfigured_smpus();
- if (ret) {
- printf("protect_unconfigured_smpus() returned %#x\n", ret);
- }
assert(ret == CY_PROT_SUCCESS);
__DSB();
__ISB();
}
-void ppu_init_cfg(void)
+void smpu_print_config(void)
{
- cy_en_prot_status_t ret;
- (void)ret;
+ printf("\nSMPU config:\n");
+ printf("memory_regions.non_secure_code_start = %#x\n", memory_regions.non_secure_code_start);
+ printf("memory_regions.non_secure_partition_base = %#x\n", memory_regions.non_secure_partition_base);
+ printf("memory_regions.non_secure_partition_limit = %#x\n", memory_regions.non_secure_partition_limit);
- printf("%s()\n", __func__);
+ size_t n = sizeof(smpu_init_table)/sizeof(smpu_init_table[0]);
-#if RTE_MS_PPU_PR7
- ret = PPU_Configure(&PR7_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PR7_PPU_Resources) returned %#x\n", ret);
+ for (int i = 0; i < n; i++)
+ {
+ SMPU_Print_Config(smpu_init_table[i]);
}
- assert(ret == CY_PROT_SUCCESS);
-#endif
+}
+const PPU_Resources *ppu_init_table[] = {
+#if RTE_MS_PPU_PR7
+&PR7_PPU_Resources,
+#endif
#if RTE_MS_PPU_PERI_MAIN
- ret = PPU_Configure(&PERI_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR0_GROUP
- ret = PPU_Configure(&PERI_GR0_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR0_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR0_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR1_GROUP
- ret = PPU_Configure(&PERI_GR1_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR1_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR1_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR2_GROUP
- ret = PPU_Configure(&PERI_GR2_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR2_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR2_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR3_GROUP
- ret = PPU_Configure(&PERI_GR3_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR3_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR3_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR4_GROUP
- ret = PPU_Configure(&PERI_GR4_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR4_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR4_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR6_GROUP
- ret = PPU_Configure(&PERI_GR6_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR6_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR6_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR9_GROUP
- ret = PPU_Configure(&PERI_GR9_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR9_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR9_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_GR10_GROUP
- ret = PPU_Configure(&PERI_GR10_GROUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_GR10_GROUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_GR10_GROUP_PPU_Resources,
#endif
#if RTE_MS_PPU_PERI_TR
- ret = PPU_Configure(&PERI_TR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PERI_TR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PERI_TR_PPU_Resources,
#endif
#if RTE_MS_PPU_CRYPTO_MAIN
- ret = PPU_Configure(&CRYPTO_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CRYPTO_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CRYPTO_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_CRYPTO_CRYPTO
- ret = PPU_Configure(&CRYPTO_CRYPTO_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CRYPTO_CRYPTO_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CRYPTO_CRYPTO_PPU_Resources,
#endif
#if RTE_MS_PPU_CRYPTO_BOOT
- ret = PPU_Configure(&CRYPTO_BOOT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CRYPTO_BOOT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CRYPTO_BOOT_PPU_Resources,
#endif
#if RTE_MS_PPU_CRYPTO_KEY0
- ret = PPU_Configure(&CRYPTO_KEY0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CRYPTO_KEY0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CRYPTO_KEY0_PPU_Resources,
#endif
#if RTE_MS_PPU_CRYPTO_KEY1
- ret = PPU_Configure(&CRYPTO_KEY1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CRYPTO_KEY1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CRYPTO_KEY1_PPU_Resources,
#endif
#if RTE_MS_PPU_CRYPTO_BUF
- ret = PPU_Configure(&CRYPTO_BUF_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CRYPTO_BUF_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CRYPTO_BUF_PPU_Resources,
#endif
#if RTE_MS_PPU_CPUSS_CM4
- ret = PPU_Configure(&CPUSS_CM4_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CPUSS_CM4_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CPUSS_CM4_PPU_Resources,
#endif
#if RTE_MS_PPU_CPUSS_CM0
- ret = PPU_Configure(&CPUSS_CM0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CPUSS_CM0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CPUSS_CM0_PPU_Resources,
#endif
#if RTE_MS_PPU_CPUSS_BOOT
- ret = PPU_Configure(&CPUSS_BOOT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CPUSS_BOOT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CPUSS_BOOT_PPU_Resources,
#endif
#if RTE_MS_PPU_CPUSS_CM0_INT
- ret = PPU_Configure(&CPUSS_CM0_INT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CPUSS_CM0_INT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CPUSS_CM0_INT_PPU_Resources,
#endif
#if RTE_MS_PPU_CPUSS_CM4_INT
- ret = PPU_Configure(&CPUSS_CM4_INT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CPUSS_CM4_INT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CPUSS_CM4_INT_PPU_Resources,
#endif
#if RTE_MS_PPU_FAULT_STRUCT0_MAIN
- ret = PPU_Configure(&FAULT_STRUCT0_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FAULT_STRUCT0_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FAULT_STRUCT0_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_FAULT_STRUCT1_MAIN
- ret = PPU_Configure(&FAULT_STRUCT1_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FAULT_STRUCT1_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FAULT_STRUCT1_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT0_IPC
- ret = PPU_Configure(&IPC_STRUCT0_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT0_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT0_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT1_IPC
- ret = PPU_Configure(&IPC_STRUCT1_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT1_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT1_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT2_IPC
- ret = PPU_Configure(&IPC_STRUCT2_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT2_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT2_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT3_IPC
- ret = PPU_Configure(&IPC_STRUCT3_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT3_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT3_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT4_IPC
- ret = PPU_Configure(&IPC_STRUCT4_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT4_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT4_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT5_IPC
- ret = PPU_Configure(&IPC_STRUCT5_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT5_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT5_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT6_IPC
- ret = PPU_Configure(&IPC_STRUCT6_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT6_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT6_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT7_IPC
- ret = PPU_Configure(&IPC_STRUCT7_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT7_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT7_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT8_IPC
- ret = PPU_Configure(&IPC_STRUCT8_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT8_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT8_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT9_IPC
- ret = PPU_Configure(&IPC_STRUCT9_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT9_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT9_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT10_IPC
- ret = PPU_Configure(&IPC_STRUCT10_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT10_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT10_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT11_IPC
- ret = PPU_Configure(&IPC_STRUCT11_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT11_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT11_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT12_IPC
- ret = PPU_Configure(&IPC_STRUCT12_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT12_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT12_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT13_IPC
- ret = PPU_Configure(&IPC_STRUCT13_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT13_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT13_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT14_IPC
- ret = PPU_Configure(&IPC_STRUCT14_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT14_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT14_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_STRUCT15_IPC
- ret = PPU_Configure(&IPC_STRUCT15_IPC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_STRUCT15_IPC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_STRUCT15_IPC_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT0_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT0_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT0_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT0_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT1_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT1_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT1_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT1_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT2_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT2_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT2_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT2_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT3_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT3_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT3_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT3_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT4_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT4_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT4_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT4_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT5_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT5_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT5_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT5_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT6_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT6_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT6_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT6_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT7_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT7_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT7_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT7_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT8_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT8_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT8_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT8_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT9_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT9_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT9_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT9_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT10_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT10_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT10_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT10_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT11_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT11_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT11_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT11_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT12_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT12_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT12_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT12_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT13_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT13_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT13_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT13_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT14_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT14_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT14_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT14_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_IPC_INTR_STRUCT15_INTR
- ret = PPU_Configure(&IPC_INTR_STRUCT15_INTR_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&IPC_INTR_STRUCT15_INTR_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &IPC_INTR_STRUCT15_INTR_PPU_Resources,
#endif
#if RTE_MS_PPU_PROT_SMPU_MAIN
- ret = PPU_Configure(&PROT_SMPU_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PROT_SMPU_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PROT_SMPU_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_PROT_MPU0_MAIN
- ret = PPU_Configure(&PROT_MPU0_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PROT_MPU0_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PROT_MPU0_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_PROT_MPU5_MAIN
- ret = PPU_Configure(&PROT_MPU5_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PROT_MPU5_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PROT_MPU5_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_PROT_MPU6_MAIN
- ret = PPU_Configure(&PROT_MPU6_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PROT_MPU6_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PROT_MPU6_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_PROT_MPU14_MAIN
- ret = PPU_Configure(&PROT_MPU14_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PROT_MPU14_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PROT_MPU14_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_PROT_MPU15_MAIN
- ret = PPU_Configure(&PROT_MPU15_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PROT_MPU15_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PROT_MPU15_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_MAIN
- ret = PPU_Configure(&FLASHC_MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_CMD
- ret = PPU_Configure(&FLASHC_CMD_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_CMD_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_CMD_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_DFT
- ret = PPU_Configure(&FLASHC_DFT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_DFT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_DFT_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_CM0
- ret = PPU_Configure(&FLASHC_CM0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_CM0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_CM0_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_CM4
- ret = PPU_Configure(&FLASHC_CM4_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_CM4_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_CM4_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_CRYPTO
- ret = PPU_Configure(&FLASHC_CRYPTO_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_CRYPTO_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_CRYPTO_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_DW0
- ret = PPU_Configure(&FLASHC_DW0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_DW0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_DW0_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_DW1
- ret = PPU_Configure(&FLASHC_DW1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_DW1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_DW1_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_DMAC
- ret = PPU_Configure(&FLASHC_DMAC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_DMAC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_DMAC_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_EXT_MS0
- ret = PPU_Configure(&FLASHC_EXT_MS0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_EXT_MS0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_EXT_MS0_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_EXT_MS1
- ret = PPU_Configure(&FLASHC_EXT_MS1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_EXT_MS1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_EXT_MS1_PPU_Resources,
#endif
#if RTE_MS_PPU_FLASHC_FM
- ret = PPU_Configure(&FLASHC_FM_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&FLASHC_FM_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &FLASHC_FM_PPU_Resources,
#endif
#if RTE_MS_PPU_SRSS_MAIN1
- ret = PPU_Configure(&SRSS_MAIN1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SRSS_MAIN1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SRSS_MAIN1_PPU_Resources,
#endif
#if RTE_MS_PPU_SRSS_MAIN2
- ret = PPU_Configure(&SRSS_MAIN2_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SRSS_MAIN2_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SRSS_MAIN2_PPU_Resources,
#endif
#if RTE_MS_PPU_WDT
- ret = PPU_Configure(&WDT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&WDT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &WDT_PPU_Resources,
#endif
#if RTE_MS_PPU_MAIN
- ret = PPU_Configure(&MAIN_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&MAIN_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &MAIN_PPU_Resources,
#endif
#if RTE_MS_PPU_SRSS_MAIN3
- ret = PPU_Configure(&SRSS_MAIN3_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SRSS_MAIN3_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SRSS_MAIN3_PPU_Resources,
#endif
#if RTE_MS_PPU_SRSS_MAIN4
- ret = PPU_Configure(&SRSS_MAIN4_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SRSS_MAIN4_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SRSS_MAIN4_PPU_Resources,
#endif
#if RTE_MS_PPU_SRSS_MAIN5
- ret = PPU_Configure(&SRSS_MAIN5_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SRSS_MAIN5_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SRSS_MAIN5_PPU_Resources,
#endif
#if RTE_MS_PPU_SRSS_MAIN6
- ret = PPU_Configure(&SRSS_MAIN6_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SRSS_MAIN6_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SRSS_MAIN6_PPU_Resources,
#endif
#if RTE_MS_PPU_SRSS_MAIN7
- ret = PPU_Configure(&SRSS_MAIN7_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SRSS_MAIN7_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SRSS_MAIN7_PPU_Resources,
#endif
#if RTE_MS_PPU_BACKUP_BACKUP
- ret = PPU_Configure(&BACKUP_BACKUP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&BACKUP_BACKUP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &BACKUP_BACKUP_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_DW
- ret = PPU_Configure(&DW0_DW_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_DW_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_DW_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_DW
- ret = PPU_Configure(&DW1_DW_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_DW_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_DW_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_DW_CRC
- ret = PPU_Configure(&DW0_DW_CRC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_DW_CRC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_DW_CRC_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_DW_CRC
- ret = PPU_Configure(&DW1_DW_CRC_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_DW_CRC_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_DW_CRC_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT0_CH
- ret = PPU_Configure(&DW0_CH_STRUCT0_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT0_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT0_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT1_CH
- ret = PPU_Configure(&DW0_CH_STRUCT1_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT1_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT1_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT2_CH
- ret = PPU_Configure(&DW0_CH_STRUCT2_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT2_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT2_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT3_CH
- ret = PPU_Configure(&DW0_CH_STRUCT3_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT3_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT3_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT4_CH
- ret = PPU_Configure(&DW0_CH_STRUCT4_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT4_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT4_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT5_CH
- ret = PPU_Configure(&DW0_CH_STRUCT5_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT5_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT5_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT6_CH
- ret = PPU_Configure(&DW0_CH_STRUCT6_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT6_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT6_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT7_CH
- ret = PPU_Configure(&DW0_CH_STRUCT7_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT7_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT7_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT8_CH
- ret = PPU_Configure(&DW0_CH_STRUCT8_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT8_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT8_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT9_CH
- ret = PPU_Configure(&DW0_CH_STRUCT9_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT9_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT9_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT10_CH
- ret = PPU_Configure(&DW0_CH_STRUCT10_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT10_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT10_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT11_CH
- ret = PPU_Configure(&DW0_CH_STRUCT11_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT11_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT11_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT12_CH
- ret = PPU_Configure(&DW0_CH_STRUCT12_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT12_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT12_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT13_CH
- ret = PPU_Configure(&DW0_CH_STRUCT13_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT13_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT13_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT14_CH
- ret = PPU_Configure(&DW0_CH_STRUCT14_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT14_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT14_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT15_CH
- ret = PPU_Configure(&DW0_CH_STRUCT15_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT15_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT15_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT16_CH
- ret = PPU_Configure(&DW0_CH_STRUCT16_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT16_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT16_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT17_CH
- ret = PPU_Configure(&DW0_CH_STRUCT17_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT17_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT17_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT18_CH
- ret = PPU_Configure(&DW0_CH_STRUCT18_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT18_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT18_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT19_CH
- ret = PPU_Configure(&DW0_CH_STRUCT19_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT19_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT19_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT20_CH
- ret = PPU_Configure(&DW0_CH_STRUCT20_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT20_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT20_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT21_CH
- ret = PPU_Configure(&DW0_CH_STRUCT21_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT21_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT21_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT22_CH
- ret = PPU_Configure(&DW0_CH_STRUCT22_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT22_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT22_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT23_CH
- ret = PPU_Configure(&DW0_CH_STRUCT23_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT23_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT23_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT24_CH
- ret = PPU_Configure(&DW0_CH_STRUCT24_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT24_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT24_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT25_CH
- ret = PPU_Configure(&DW0_CH_STRUCT25_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT25_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT25_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT26_CH
- ret = PPU_Configure(&DW0_CH_STRUCT26_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT26_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT26_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT27_CH
- ret = PPU_Configure(&DW0_CH_STRUCT27_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT27_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT27_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW0_CH_STRUCT28_CH
- ret = PPU_Configure(&DW0_CH_STRUCT28_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW0_CH_STRUCT28_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW0_CH_STRUCT28_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT0_CH
- ret = PPU_Configure(&DW1_CH_STRUCT0_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT0_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT0_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT1_CH
- ret = PPU_Configure(&DW1_CH_STRUCT1_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT1_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT1_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT2_CH
- ret = PPU_Configure(&DW1_CH_STRUCT2_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT2_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT2_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT3_CH
- ret = PPU_Configure(&DW1_CH_STRUCT3_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT3_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT3_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT4_CH
- ret = PPU_Configure(&DW1_CH_STRUCT4_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT4_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT4_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT5_CH
- ret = PPU_Configure(&DW1_CH_STRUCT5_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT5_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT5_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT6_CH
- ret = PPU_Configure(&DW1_CH_STRUCT6_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT6_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT6_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT7_CH
- ret = PPU_Configure(&DW1_CH_STRUCT7_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT7_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT7_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT8_CH
- ret = PPU_Configure(&DW1_CH_STRUCT8_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT8_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT8_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT9_CH
- ret = PPU_Configure(&DW1_CH_STRUCT9_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT9_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT9_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT10_CH
- ret = PPU_Configure(&DW1_CH_STRUCT10_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT10_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT10_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT11_CH
- ret = PPU_Configure(&DW1_CH_STRUCT11_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT11_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT11_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT12_CH
- ret = PPU_Configure(&DW1_CH_STRUCT12_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT12_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT12_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT13_CH
- ret = PPU_Configure(&DW1_CH_STRUCT13_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT13_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT13_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT14_CH
- ret = PPU_Configure(&DW1_CH_STRUCT14_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT14_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT14_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT15_CH
- ret = PPU_Configure(&DW1_CH_STRUCT15_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT15_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT15_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT16_CH
- ret = PPU_Configure(&DW1_CH_STRUCT16_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT16_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT16_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT17_CH
- ret = PPU_Configure(&DW1_CH_STRUCT17_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT17_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT17_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT18_CH
- ret = PPU_Configure(&DW1_CH_STRUCT18_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT18_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT18_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT19_CH
- ret = PPU_Configure(&DW1_CH_STRUCT19_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT19_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT19_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT20_CH
- ret = PPU_Configure(&DW1_CH_STRUCT20_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT20_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT20_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT21_CH
- ret = PPU_Configure(&DW1_CH_STRUCT21_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT21_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT21_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT22_CH
- ret = PPU_Configure(&DW1_CH_STRUCT22_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT22_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT22_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT23_CH
- ret = PPU_Configure(&DW1_CH_STRUCT23_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT23_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT23_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT24_CH
- ret = PPU_Configure(&DW1_CH_STRUCT24_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT24_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT24_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT25_CH
- ret = PPU_Configure(&DW1_CH_STRUCT25_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT25_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT25_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT26_CH
- ret = PPU_Configure(&DW1_CH_STRUCT26_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT26_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT26_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT27_CH
- ret = PPU_Configure(&DW1_CH_STRUCT27_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT27_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT27_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DW1_CH_STRUCT28_CH
- ret = PPU_Configure(&DW1_CH_STRUCT28_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DW1_CH_STRUCT28_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DW1_CH_STRUCT28_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DMAC_TOP
- ret = PPU_Configure(&DMAC_TOP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DMAC_TOP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DMAC_TOP_PPU_Resources,
#endif
#if RTE_MS_PPU_DMAC_CH0_CH
- ret = PPU_Configure(&DMAC_CH0_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DMAC_CH0_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DMAC_CH0_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DMAC_CH1_CH
- ret = PPU_Configure(&DMAC_CH1_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DMAC_CH1_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DMAC_CH1_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DMAC_CH2_CH
- ret = PPU_Configure(&DMAC_CH2_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DMAC_CH2_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DMAC_CH2_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_DMAC_CH3_CH
- ret = PPU_Configure(&DMAC_CH3_CH_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&DMAC_CH3_CH_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &DMAC_CH3_CH_PPU_Resources,
#endif
#if RTE_MS_PPU_EFUSE_CTL
- ret = PPU_Configure(&EFUSE_CTL_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&EFUSE_CTL_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &EFUSE_CTL_PPU_Resources,
#endif
#if RTE_MS_PPU_EFUSE_DATA
- ret = PPU_Configure(&EFUSE_DATA_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&EFUSE_DATA_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &EFUSE_DATA_PPU_Resources,
#endif
#if RTE_MS_PPU_PROFILE
- ret = PPU_Configure(&PROFILE_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PROFILE_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PROFILE_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT0_PRT
- ret = PPU_Configure(&HSIOM_PRT0_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT0_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT0_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT1_PRT
- ret = PPU_Configure(&HSIOM_PRT1_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT1_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT1_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT2_PRT
- ret = PPU_Configure(&HSIOM_PRT2_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT2_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT2_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT3_PRT
- ret = PPU_Configure(&HSIOM_PRT3_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT3_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT3_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT4_PRT
- ret = PPU_Configure(&HSIOM_PRT4_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT4_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT4_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT5_PRT
- ret = PPU_Configure(&HSIOM_PRT5_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT5_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT5_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT6_PRT
- ret = PPU_Configure(&HSIOM_PRT6_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT6_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT6_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT7_PRT
- ret = PPU_Configure(&HSIOM_PRT7_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT7_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT7_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT8_PRT
- ret = PPU_Configure(&HSIOM_PRT8_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT8_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT8_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT9_PRT
- ret = PPU_Configure(&HSIOM_PRT9_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT9_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT9_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT10_PRT
- ret = PPU_Configure(&HSIOM_PRT10_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT10_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT10_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT11_PRT
- ret = PPU_Configure(&HSIOM_PRT11_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT11_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT11_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT12_PRT
- ret = PPU_Configure(&HSIOM_PRT12_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT12_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT12_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT13_PRT
- ret = PPU_Configure(&HSIOM_PRT13_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT13_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT13_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_PRT14_PRT
- ret = PPU_Configure(&HSIOM_PRT14_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_PRT14_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_PRT14_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_AMUX
- ret = PPU_Configure(&HSIOM_AMUX_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_AMUX_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_AMUX_PPU_Resources,
#endif
#if RTE_MS_PPU_HSIOM_MON
- ret = PPU_Configure(&HSIOM_MON_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&HSIOM_MON_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &HSIOM_MON_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT0_PRT
- ret = PPU_Configure(&GPIO_PRT0_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT0_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT0_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT1_PRT
- ret = PPU_Configure(&GPIO_PRT1_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT1_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT1_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT2_PRT
- ret = PPU_Configure(&GPIO_PRT2_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT2_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT2_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT3_PRT
- ret = PPU_Configure(&GPIO_PRT3_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT3_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT3_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT4_PRT
- ret = PPU_Configure(&GPIO_PRT4_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT4_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT4_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT5_PRT
- ret = PPU_Configure(&GPIO_PRT5_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT5_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT5_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT6_PRT
- ret = PPU_Configure(&GPIO_PRT6_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT6_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT6_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT7_PRT
- ret = PPU_Configure(&GPIO_PRT7_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT7_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT7_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT8_PRT
- ret = PPU_Configure(&GPIO_PRT8_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT8_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT8_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT9_PRT
- ret = PPU_Configure(&GPIO_PRT9_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT9_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT9_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT10_PRT
- ret = PPU_Configure(&GPIO_PRT10_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT10_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT10_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT11_PRT
- ret = PPU_Configure(&GPIO_PRT11_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT11_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT11_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT12_PRT
- ret = PPU_Configure(&GPIO_PRT12_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT12_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT12_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT13_PRT
- ret = PPU_Configure(&GPIO_PRT13_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT13_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT13_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT14_PRT
- ret = PPU_Configure(&GPIO_PRT14_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT14_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT14_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT0_CFG
- ret = PPU_Configure(&GPIO_PRT0_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT0_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT0_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT1_CFG
- ret = PPU_Configure(&GPIO_PRT1_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT1_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT1_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT2_CFG
- ret = PPU_Configure(&GPIO_PRT2_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT2_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT2_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT3_CFG
- ret = PPU_Configure(&GPIO_PRT3_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT3_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT3_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT4_CFG
- ret = PPU_Configure(&GPIO_PRT4_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT4_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT4_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT5_CFG
- ret = PPU_Configure(&GPIO_PRT5_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT5_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT5_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT6_CFG
- ret = PPU_Configure(&GPIO_PRT6_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT6_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT6_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT7_CFG
- ret = PPU_Configure(&GPIO_PRT7_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT7_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT7_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT8_CFG
- ret = PPU_Configure(&GPIO_PRT8_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT8_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT8_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT9_CFG
- ret = PPU_Configure(&GPIO_PRT9_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT9_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT9_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT10_CFG
- ret = PPU_Configure(&GPIO_PRT10_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT10_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT10_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT11_CFG
- ret = PPU_Configure(&GPIO_PRT11_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT11_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT11_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT12_CFG
- ret = PPU_Configure(&GPIO_PRT12_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT12_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT12_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT13_CFG
- ret = PPU_Configure(&GPIO_PRT13_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT13_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT13_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_PRT14_CFG
- ret = PPU_Configure(&GPIO_PRT14_CFG_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_PRT14_CFG_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_PRT14_CFG_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_GPIO
- ret = PPU_Configure(&GPIO_GPIO_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_GPIO_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_GPIO_PPU_Resources,
#endif
#if RTE_MS_PPU_GPIO_TEST
- ret = PPU_Configure(&GPIO_TEST_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&GPIO_TEST_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &GPIO_TEST_PPU_Resources,
#endif
#if RTE_MS_PPU_SMARTIO_PRT8_PRT
- ret = PPU_Configure(&SMARTIO_PRT8_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SMARTIO_PRT8_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SMARTIO_PRT8_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_SMARTIO_PRT9_PRT
- ret = PPU_Configure(&SMARTIO_PRT9_PRT_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SMARTIO_PRT9_PRT_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SMARTIO_PRT9_PRT_PPU_Resources,
#endif
#if RTE_MS_PPU_LPCOMP
- ret = PPU_Configure(&LPCOMP_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&LPCOMP_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &LPCOMP_PPU_Resources,
#endif
#if RTE_MS_PPU_CSD0
- ret = PPU_Configure(&CSD0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&CSD0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &CSD0_PPU_Resources,
#endif
#if RTE_MS_PPU_TCPWM0
- ret = PPU_Configure(&TCPWM0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&TCPWM0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &TCPWM0_PPU_Resources,
#endif
#if RTE_MS_PPU_TCPWM1
- ret = PPU_Configure(&TCPWM1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&TCPWM1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &TCPWM1_PPU_Resources,
#endif
#if RTE_MS_PPU_LCD0
- ret = PPU_Configure(&LCD0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&LCD0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &LCD0_PPU_Resources,
#endif
#if RTE_MS_PPU_USBFS0
- ret = PPU_Configure(&USBFS0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&USBFS0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &USBFS0_PPU_Resources,
#endif
#if RTE_MS_PPU_SMIF0
- ret = PPU_Configure(&SMIF0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SMIF0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SMIF0_PPU_Resources,
#endif
#if RTE_MS_PPU_SDHC0
- ret = PPU_Configure(&SDHC0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SDHC0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SDHC0_PPU_Resources,
#endif
#if RTE_MS_PPU_SDHC1
- ret = PPU_Configure(&SDHC1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SDHC1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SDHC1_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB0
- ret = PPU_Configure(&SCB0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB0_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB1
- ret = PPU_Configure(&SCB1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB1_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB2
- ret = PPU_Configure(&SCB2_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB2_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB2_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB3
- ret = PPU_Configure(&SCB3_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB3_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB3_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB4
- ret = PPU_Configure(&SCB4_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB4_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB4_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB5
- ret = PPU_Configure(&SCB5_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB5_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB5_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB6
- ret = PPU_Configure(&SCB6_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB6_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB6_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB7
- ret = PPU_Configure(&SCB7_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB7_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB7_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB8
- ret = PPU_Configure(&SCB8_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB8_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB8_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB9
- ret = PPU_Configure(&SCB9_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB9_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB9_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB10
- ret = PPU_Configure(&SCB10_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB10_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB10_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB11
- ret = PPU_Configure(&SCB11_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB11_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB11_PPU_Resources,
#endif
#if RTE_MS_PPU_SCB12
- ret = PPU_Configure(&SCB12_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&SCB12_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &SCB12_PPU_Resources,
#endif
#if RTE_MS_PPU_PDM0
- ret = PPU_Configure(&PDM0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&PDM0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &PDM0_PPU_Resources,
#endif
#if RTE_MS_PPU_I2S0
- ret = PPU_Configure(&I2S0_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&I2S0_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &I2S0_PPU_Resources,
#endif
#if RTE_MS_PPU_I2S1
- ret = PPU_Configure(&I2S1_PPU_Resources);
- if (ret) {
- printf("PPU_Configure(&I2S1_PPU_Resources) returned %#x\n", ret);
- }
- assert(ret == CY_PROT_SUCCESS);
+ &I2S1_PPU_Resources,
#endif
+};
+
+void ppu_init_cfg(void)
+{
+ cy_en_prot_status_t ret;
+ (void)ret;
+
+ size_t n = sizeof(ppu_init_table)/sizeof(ppu_init_table[0]);
+
+ for (int i = 0; i < n; i++)
+ {
+ ret = PPU_Configure(ppu_init_table[i]);
+ assert(ret == CY_PROT_SUCCESS);
+ }
__DSB();
__ISB();
diff --git a/platform/ext/target/cypress/psoc64/target_cfg.h b/platform/ext/target/cypress/psoc64/target_cfg.h
index d325a54af..b6dccff32 100644
--- a/platform/ext/target/cypress/psoc64/target_cfg.h
+++ b/platform/ext/target/cypress/psoc64/target_cfg.h
@@ -50,6 +50,11 @@ struct tfm_spm_partition_platform_data_t
void smpu_init_cfg(void);
/**
+ * \brief Prints out the Shared Memory Protection Units config.
+ */
+void smpu_print_config(void);
+
+/**
* \brief Configures the Peripheral Protection Units.
*/
void ppu_init_cfg(void);