Tidy up Espressif ESP32 test and benchmark examples (#5800)

Tidy up Espressif ESP32 test and benchmark examples:
* add VisualGDB project and solution files for server and client
* "hardware in use revert to software" is now verbose level message
* Remove (void) TAG;  - not needed to appease compiler
* include esp_log.h lib with defined(WOLFSSL_ESPIDF)
* large ESP32 default stack size
* check for max number of arguments assembled into array
* cleanup & comments per code review
* wolfssl_test VisualGDB updates
* Espressif wolfssl_test default stack 55,000 bytes
This commit is contained in:
gojimmypi
2022-11-30 10:01:46 -08:00
committed by GitHub
parent 973de0e954
commit fec7469c19
33 changed files with 2116 additions and 57 deletions

View File

@@ -118,6 +118,7 @@
#elif defined(WOLFSSL_ESPIDF)
#include <time.h>
#include <sys/time.h>
#include <esp_log.h>
#elif defined(WOLFSSL_ZEPHYR)
#include <stdio.h>
@@ -1640,11 +1641,20 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
printf("Testing complete. You may close the window now\n");
while (1);
#endif
#ifndef WOLFSSL_ESPIDF
printf("Exiting main with return code: %d\n", args.return_code);
return args.return_code;
#ifdef WOLFSSL_ESPIDF
/* ESP_LOGI to print takes up a lot less memory than printf */
ESP_LOGI("wolfcrypt_test", "Exiting main with return code: % d\n", args.return_code);
#endif
}
/* everything else will use printf */
#if !defined(WOLFSSL_ESPIDF)
/* gate this for target platforms wishing to avoid printf reference */
printf("Exiting main with return code: %d\n", args.return_code);
#endif
return args.return_code;
} /* wolfcrypt_test_main or wolf_test_task */
#endif /* NO_MAIN_DRIVER */

View File

@@ -33,10 +33,15 @@ THREAD_RETURN WOLFSSL_THREAD wolfcrypt_test(void* args);
#else
int wolfcrypt_test(void* args);
#endif
#ifndef NO_MAIN_DRIVER
int wolfcrypt_test_main(int argc, char** argv);
#endif
#if defined(WOLFSSL_ESPIDF) || defined(_WIN32_WCE)
int wolf_test_task(void);
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif