Fixing indentation on preprocessor commands

pull/5902/head
Andras Fekete 2022-12-19 11:13:58 -05:00
parent 11fcb790b1
commit bc15f67d8d
6 changed files with 17 additions and 17 deletions

View File

@ -78,11 +78,11 @@ static void set_time()
static void tls_smp_client_init(void) static void tls_smp_client_init(void)
{ {
int ret; int ret;
#if ESP_IDF_VERSION_MAJOR >= 4 #if ESP_IDF_VERSION_MAJOR >= 4
TaskHandle_t _handle; TaskHandle_t _handle;
#else #else
xTaskHandle _handle; xTaskHandle _handle;
#endif #endif
/* http://esp32.info/docs/esp_idf/html/dd/d3c/group__xTaskCreate.html */ /* http://esp32.info/docs/esp_idf/html/dd/d3c/group__xTaskCreate.html */
ret = xTaskCreate(tls_smp_client_task, ret = xTaskCreate(tls_smp_client_task,
TLS_SMP_CLIENT_TASK_NAME, TLS_SMP_CLIENT_TASK_NAME,

View File

@ -78,11 +78,11 @@ static void set_time()
static void tls_smp_server_init(void) static void tls_smp_server_init(void)
{ {
int ret; int ret;
#if ESP_IDF_VERSION_MAJOR >= 4 #if ESP_IDF_VERSION_MAJOR >= 4
TaskHandle_t _handle; TaskHandle_t _handle;
#else #else
xTaskHandle _handle; xTaskHandle _handle;
#endif #endif
/* http://esp32.info/docs/esp_idf/html/dd/d3c/group__xTaskCreate.html */ /* http://esp32.info/docs/esp_idf/html/dd/d3c/group__xTaskCreate.html */
ret = xTaskCreate(tls_smp_server_task, ret = xTaskCreate(tls_smp_server_task,
TLS_SMP_SERVER_TASK_NAME, TLS_SMP_SERVER_TASK_NAME,

View File

@ -8216,11 +8216,11 @@ void bench_sphincsKeySign(byte level, byte optim)
#endif #endif
double current_time(int reset) double current_time(int reset)
{ {
#if ESP_IDF_VERSION_MAJOR >= 4 #if ESP_IDF_VERSION_MAJOR >= 4
TickType_t tickCount; TickType_t tickCount;
#else #else
portTickType tickCount; portTickType tickCount;
#endif #endif
(void) reset; (void) reset;

View File

@ -157,11 +157,11 @@ static void esp_aes_hw_Set_KeyMode(Aes *ctx, ESP32_AESPROCESS mode)
static void esp_aes_bk(const byte* in, byte* out) static void esp_aes_bk(const byte* in, byte* out)
{ {
const word32 *inwords = (const word32 *)in; const word32 *inwords = (const word32 *)in;
#if ESP_IDF_VERSION_MAJOR >= 4 #if ESP_IDF_VERSION_MAJOR >= 4
uint32_t *outwords = (uint32_t *)out; uint32_t *outwords = (uint32_t *)out;
#else #else
word32 *outwords = (word32 *)out; word32 *outwords = (word32 *)out;
#endif #endif
ESP_LOGV(TAG, "enter esp_aes_bk"); ESP_LOGV(TAG, "enter esp_aes_bk");

View File

@ -551,11 +551,11 @@ int wc_esp_digest_state(WC_ESP32SHA* ctx, byte* hash)
* DPORT_SEQUENCE_REG_READ(address + i * 4); * DPORT_SEQUENCE_REG_READ(address + i * 4);
*/ */
esp_dport_access_read_buffer( esp_dport_access_read_buffer(
#if ESP_IDF_VERSION_MAJOR >= 4 #if ESP_IDF_VERSION_MAJOR >= 4
(uint32_t*)(hash), /* the result will be found in hash upon exit */ (uint32_t*)(hash), /* the result will be found in hash upon exit */
#else #else
(word32*)(hash), /* the result will be found in hash upon exit */ (word32*)(hash), /* the result will be found in hash upon exit */
#endif #endif
SHA_TEXT_BASE, /* there's a fixed reg addy for all SHA */ SHA_TEXT_BASE, /* there's a fixed reg addy for all SHA */
wc_esp_sha_digest_size(ctx->sha_type) / sizeof(word32) /* # 4-byte */ wc_esp_sha_digest_size(ctx->sha_type) / sizeof(word32) /* # 4-byte */
); );

View File

@ -203,9 +203,9 @@
/* FREERTOS comes first to enable use of FreeRTOS Windows simulator only */ /* FREERTOS comes first to enable use of FreeRTOS Windows simulator only */
#if defined(FREERTOS) #if defined(FREERTOS)
#if ESP_IDF_VERSION_MAJOR >= 4 #if ESP_IDF_VERSION_MAJOR >= 4
typedef SemaphoreHandle_t wolfSSL_Mutex; typedef SemaphoreHandle_t wolfSSL_Mutex;
#else #else
typedef xSemaphoreHandle wolfSSL_Mutex; typedef xSemaphoreHandle wolfSSL_Mutex;
#endif #endif
#elif defined(FREERTOS_TCP) #elif defined(FREERTOS_TCP)
#include "FreeRTOS.h" #include "FreeRTOS.h"