espressif HAL usage


Ilan Ganor <ilan@...>
 

I would like to use API from espressif HAL

for example: esp_efuse_mac_get_custom


I can include the h file using : 

#include "esp_system.h"

but when I try to use one of the h included functions: 

esp_efuse_mac_get_custom

I get compilation error: 

main.c:116: undefined reference to `esp_efuse_mac_get_custom'

I think that I need to add entry in CMakeLists.txt

this is my current file :

# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(peripheral_hr)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE
  ${app_sources}
  )

zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)


any assistance is welcomed 

Join devel@lists.zephyrproject.org to automatically receive all group messages.