code cleanup & fix compile with pico-sdk 2.2.0

This commit is contained in:
2025-08-12 07:49:12 -04:00
parent 4f313b3336
commit 692c5af8c9
6 changed files with 28 additions and 20 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
#ifndef MBEDTLS_CONFIG_EXAMPLES_COMMON_H
#define MBEDTLS_CONFIG_EXAMPLES_COMMON_H
#ifndef MBEDTLS_CONFIG_H
#define MBEDTLS_CONFIG_H
/* Workaround for some mbedtls source files using INT_MAX without including limits.h */
#include <limits.h>
@@ -11,6 +11,7 @@
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
#define MBEDTLS_HAVE_TIME
#define MBEDTLS_PLATFORM_MS_TIME_ALT
#define MBEDTLS_CIPHER_MODE_CBC
#define MBEDTLS_ECP_DP_SECP192R1_ENABLED