Skip to content

Commit e0c7e08

Browse files
authored
Merge pull request #10025 from kfnta/psoc6_trng_psa
PSA: PSoC 6 Correct TRNG behaviour
2 parents 5c79394 + d6863d8 commit e0c7e08

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/trng_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
#if DEVICE_TRNG
2121

22+
#if !(defined(TARGET_PSA) && defined(COMPONENT_NSPE))
23+
2224
#include "trng_api.h"
2325
#include "psoc6_utils.h"
2426
#include "cy_crypto_core_trng.h"
@@ -70,4 +72,5 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
7072
return (ret);
7173
}
7274

75+
#endif // #if !(defined(TARGET_PSA) && defined(COMPONENT_NSPE))
7376
#endif

targets/targets.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8042,7 +8042,6 @@
80428042
"MBED_TICKLESS",
80438043
"MBEDTLS_PSA_CRYPTO_SPM",
80448044
"MBEDTLS_PSA_CRYPTO_C",
8045-
"MBEDTLS_ENTROPY_NV_SEED",
80468045
"CY_IPC_DEFAULT_CFG_DISABLE",
80478046
"PU_ENABLE"
80488047
],
@@ -8067,7 +8066,7 @@
80678066
"inherits": ["NSPE_Target", "CY8CKIT_062_WIFI_BT"],
80688067
"extra_labels_add": ["PSA", "MBED_SPM"],
80698068
"components_add": ["SPM_MAILBOX", "FLASHIAP"],
8070-
"device_has_remove": ["TRNG", "CRC"],
8069+
"device_has_remove": ["CRC"],
80718070
"macros_add": ["MBEDTLS_PSA_CRYPTO_C"],
80728071
"hex_filename": "psa_release_1.0.hex",
80738072
"overrides": {

0 commit comments

Comments
 (0)