mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/4846/head
parent
be215a310d
commit
5ced8e4fdf
|
@ -21,6 +21,10 @@
|
|||
#define MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||
#endif
|
||||
|
||||
#if defined(DEVICE_RTC)
|
||||
#define MBEDTLS_HAVE_TIME_DATE
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_CONFIG_HW_SUPPORT)
|
||||
#include "mbedtls_device.h"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue