refactor(examples): reformat peripheral examples with astyle_py

This commit is contained in:
morris
2023-09-28 09:43:12 +08:00
parent 1b2484214c
commit b12e250b2c
79 changed files with 677 additions and 703 deletions

View File

@@ -28,7 +28,6 @@
#include "sdkconfig.h"
#include "sdmmc_cmd.h"
#define TIMEOUT_MAX UINT32_MAX
#define GPIO_B1 21
@@ -55,7 +54,6 @@
#define PIN_D3 SDMMC_SLOT1_IOMUX_PIN_NUM_D3
#endif
/*
sdio host example.
@@ -298,7 +296,6 @@ esp_err_t slave_init(essl_handle_t* handle)
return ret;
}
void slave_power_on(void)
{
#ifdef SLAVE_PWR_GPIO
@@ -338,9 +335,13 @@ static esp_err_t get_intr(essl_handle_t handle, uint32_t* out_raw, uint32_t* out
#endif
ret = essl_get_intr(handle, out_raw, out_st, TIMEOUT_MAX);
if (ret != ESP_OK) return ret;
if (ret != ESP_OK) {
return ret;
}
ret = essl_clear_intr(handle, *out_raw, TIMEOUT_MAX);
if (ret != ESP_OK) return ret;
if (ret != ESP_OK) {
return ret;
}
ESP_LOGD(TAG, "intr: %08"PRIX32, *out_raw);
return ESP_OK;
}