MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / esp_elf_init

Function esp_elf_init

Libraries/elf_loader/src/esp_elf.c:363–374  ·  view source on GitHub ↗

* @brief Initialize ELF object. * * @param elf - ELF object pointer * * @return ESP_OK if success or other if failed. */

Source from the content-addressed store, hash-verified

361 * @return ESP_OK if success or other if failed.
362 */
363int esp_elf_init(esp_elf_t *elf)
364{
365 ESP_LOGI(TAG, "ELF loader version: %d.%d.%d", ELF_LOADER_VER_MAJOR, ELF_LOADER_VER_MINOR, ELF_LOADER_VER_PATCH);
366
367 if (!elf) {
368 return -EINVAL;
369 }
370
371 memset(elf, 0, sizeof(esp_elf_t));
372
373 return 0;
374}
375
376/**
377 * @brief Decode and relocate ELF data.

Callers 1

startElfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected