Skip to content

Commit 5ced8e4

Browse files
Andres Amaya GarciaAndres Amaya Garcia
authored andcommitted
Integrate mbed OS RTC with mbed TLS
The integration is simply to define the macro MBEDTLS_HAVE_TIME_DATE in the features/mbedtls/platform/inc/platform_mbed.h. The default implementation of the mbedtls_time() function provided by mbed TLS is sufficient to work with mbed OS because both use POSIX functions.
1 parent be215a3 commit 5ced8e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

features/mbedtls/platform/inc/platform_mbed.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#define MBEDTLS_ENTROPY_HARDWARE_ALT
2222
#endif
2323

24+
#if defined(DEVICE_RTC)
25+
#define MBEDTLS_HAVE_TIME_DATE
26+
#endif
27+
2428
#if defined(MBEDTLS_CONFIG_HW_SUPPORT)
2529
#include "mbedtls_device.h"
2630
#endif

0 commit comments

Comments
 (0)