Skip to content

Commit b9ea334

Browse files
committed
Change __WEAK to MBED_WEAK
1 parent daeb19d commit b9ea334

File tree

1 file changed

+4
-3
lines changed
  • features/mbedtls/platform/TARGET_PSA/COMPONENT_NSPE/src

1 file changed

+4
-3
lines changed

features/mbedtls/platform/TARGET_PSA/COMPONENT_NSPE/src/psa_hrng.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,22 @@
1717

1818
#include "trng_api.h"
1919
#include "crypto.h"
20+
#include "mbed_toolchain.h"
2021

2122
#if DEVICE_TRNG
2223

23-
__WEAK void trng_init(trng_t *obj)
24+
MBED_WEAK void trng_init(trng_t *obj)
2425
{
2526
(void)(obj);
2627
}
2728

2829

29-
__WEAK void trng_free(trng_t *obj)
30+
MBED_WEAK void trng_free(trng_t *obj)
3031
{
3132
(void)(obj);
3233
}
3334

34-
__WEAK int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length)
35+
MBED_WEAK int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length)
3536
{
3637
if (output == NULL){
3738
return -1;

0 commit comments

Comments
 (0)