mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(linux): Miscellaneous fixes for linux build on MacOS
This commit fixes some compilation errors for the linux build on MacOS.
This commit is contained in:
parent
19c784efef
commit
ac64aa0c60
@ -89,7 +89,7 @@ esp_err_t esp_efuse_utility_burn_chip_opt(bool ignore_coding_errors, bool verify
|
||||
// This function reads EFUSE_BLKx_WDATAx_REG registers, and checks possible to write these data with RS coding scheme.
|
||||
// The RS coding scheme does not require data changes for the encoded data. esp32s2 has special registers for this.
|
||||
// They will be filled during the burn operation.
|
||||
esp_err_t esp_efuse_utility_apply_new_coding_scheme()
|
||||
esp_err_t esp_efuse_utility_apply_new_coding_scheme(void)
|
||||
{
|
||||
// start with EFUSE_BLK1. EFUSE_BLK0 - always uses EFUSE_CODING_SCHEME_NONE.
|
||||
for (int num_block = EFUSE_BLK1; num_block < EFUSE_BLK_MAX; num_block++) {
|
||||
|
@ -17,4 +17,8 @@ uint32_t esp_log_early_timestamp(void)
|
||||
return milliseconds;
|
||||
}
|
||||
|
||||
uint32_t esp_log_timestamp(void) __attribute__((alias("esp_log_early_timestamp")));
|
||||
// Avoid using __attribute(alias) here since linux target builds on MacOS fail to compile.
|
||||
uint32_t esp_log_timestamp(void)
|
||||
{
|
||||
return esp_log_early_timestamp();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user