Преглед изворни кода

Espressif notes for user_settings.h preference

gojimmypi пре 2 година
родитељ
комит
83f4f9e5ef
2 измењених фајлова са 39 додато и 5 уклоњено
  1. 13 2
      IDE/Espressif/ESP-IDF/user_settings.h
  2. 26 3
      wolfssl/wolfcrypt/settings.h

+ 13 - 2
IDE/Espressif/ESP-IDF/user_settings.h

@@ -20,10 +20,21 @@
  */
 #undef WOLFSSL_ESPIDF
 #define WOLFSSL_ESPIDF
+
+/*
+ * choose ONE of these Espressif chips to define:
+ * 
+ * WOLFSSL_ESPWROOM32
+ * WOLFSSL_ESPWROOM32SE
+ * WOLFSSL_ESP8266
+ * 
+ * comment out the others:
+ */
+
 #define WOLFSSL_ESPWROOM32
-/* Uncomment next line if using Espressif ESP32-WROOM-32SE */
-/* comment the above line #define WOLFSSL_ESPWROOM32 */
 /* #define WOLFSSL_ESPWROOM32SE */
+/* #define WOLFSSL_ESP8266 */
+
 
 #define BENCH_EMBEDDED
 #define USE_CERT_BUFFERS_2048

+ 26 - 3
wolfssl/wolfcrypt/settings.h

@@ -19,6 +19,27 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
  */
 
+/*
+ *   ************************************************************************
+ *
+ *   ******************************** NOTICE ********************************
+ * 
+ *   ************************************************************************
+ *
+ *   This method of uncommenting a line in settings.h is outdated. 
+ * 
+ *   Please use user_settings.h / WOLFSSL_USER_SETTINGS 
+ * 
+ *         or 
+ * 
+ *   ./configure CFLAGS="-DFLAG" 
+ * 
+ *   For more information see:
+ * 
+ *   https://www.wolfssl.com/how-do-i-manage-the-build-configuration-of-wolfssl/
+ * 
+ */
+
 
 /* Place OS specific preprocessor flags, defines, includes here, will be
    included into every file because types.h includes it */
@@ -194,6 +215,11 @@
 /* Uncomment next line if building for using Apache mynewt */
 /* #define WOLFSSL_APACHE_MYNEWT */
 
+/* For Espressif chips see example user_settings.h
+ * 
+ * https://github.com/wolfSSL/wolfssl/blob/master/IDE/Espressif/ESP-IDF/user_settings.h 
+ */
+
 /* Uncomment next line if building for using ESP-IDF */
 /* #define WOLFSSL_ESPIDF */
 
@@ -203,9 +229,6 @@
 /* Uncomment next line if using Espressif ESP32-WROOM-32SE */
 /* #define WOLFSSL_ESPWROOM32SE */
 
-/* Uncomment next line if using Espressif ESP8266 */
-/* #define WOLFSSL_ESP8266 */
-
 /* Uncomment next line if using ARM CRYPTOCELL*/
 /* #define WOLFSSL_CRYPTOCELL */