From f0b3c5c26aa7ab4d01f751370c03068c25a3d247 Mon Sep 17 00:00:00 2001 From: Todd A Ouska Date: Mon, 23 May 2011 16:10:36 -0700 Subject: [PATCH] FreeRTOS settings --- ctaocrypt/include/os_settings.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ctaocrypt/include/os_settings.h b/ctaocrypt/include/os_settings.h index f24b98de0..8d7b1966b 100644 --- a/ctaocrypt/include/os_settings.h +++ b/ctaocrypt/include/os_settings.h @@ -41,6 +41,9 @@ /* Uncomment next line if using Mbed */ /* #define MBED */ +/* Uncomment next line if using FreeRTOS */ +/* #define FREERTOS */ + #if defined(USE_CYASSL_CONFIG) || defined(HAVE_CONFIG_H) #include "config.h" /* may not want global HAVE_CONFIG_H */ #endif @@ -66,6 +69,16 @@ #define NO_HC128 #endif /* MBED */ +#ifdef FREERTOS + #define SINGLE_THREADED + #define NO_WRITEV + #define NO_SHA512 + #define NO_DH + #define NO_DSA + #define NO_HC128 + #define LWIP_SOCKETS + #define LWIP_PROVIDE_ERRNO +#endif #ifdef MICRIUM