efuse: Using IDF_ENV_FPGA in UTs

This commit is contained in:
KonstantinKondrashov
2020-03-11 16:38:08 +08:00
parent 4c5d26085f
commit 912028273d
2 changed files with 7 additions and 10 deletions

View File

@@ -6,12 +6,12 @@
#include "unity.h"
#include "bootloader_random.h"
#ifdef CONFIG_IDF_TARGET_ESP32
typedef struct {
uint8_t unencoded[24];
uint32_t encoded[8];
} coding_scheme_test_t;
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2)
/* Randomly generated byte strings, encoded and written to ESP32
using espefuse algorithm, then verified to have no encoding errors
and correct readback.
@@ -204,4 +204,4 @@ TEST_CASE("Test data does not match the coding scheme", "[efuse]")
esp_efuse_utility_reset();
}
#endif
#endif // CONFIG_IDF_TARGET_ESP32