Change __WEAK to MBED_WEAK

pull/8804/head
Mohammad AboMokh 2018-11-27 12:15:26 +02:00
parent daeb19d167
commit b9ea334f1f
1 changed files with 4 additions and 3 deletions

View File

@ -17,21 +17,22 @@
#include "trng_api.h" #include "trng_api.h"
#include "crypto.h" #include "crypto.h"
#include "mbed_toolchain.h"
#if DEVICE_TRNG #if DEVICE_TRNG
__WEAK void trng_init(trng_t *obj) MBED_WEAK void trng_init(trng_t *obj)
{ {
(void)(obj); (void)(obj);
} }
__WEAK void trng_free(trng_t *obj) MBED_WEAK void trng_free(trng_t *obj)
{ {
(void)(obj); (void)(obj);
} }
__WEAK int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length) MBED_WEAK int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length)
{ {
if (output == NULL){ if (output == NULL){
return -1; return -1;