diff --git a/features/mbedtls/platform/inc/platform_mbed.h b/features/mbedtls/platform/inc/platform_mbed.h index 8632ec0328..b433f88861 100644 --- a/features/mbedtls/platform/inc/platform_mbed.h +++ b/features/mbedtls/platform/inc/platform_mbed.h @@ -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