How to use the esp-idf componets with makefile system

frank_he
Posts: 7
Joined: Wed Apr 08, 2020 5:41 am

How to use the esp-idf componets with makefile system

Postby frank_he » Thu Apr 23, 2020 12:34 pm

Hi,
I'm try to integrate the esp-idf to our makefile based project, and i need to use the spi driver for spi master. so I tried to define my include path in the makefile to include path for driver/spi_master.h. but then i tried to build and many errors occured, like:

components/soc/src/esp32/include/hal/cpu_ll.h:35:5: error: 'asm' undeclared (first use in this function)

components/soc/src/esp32/include/hal/cpu_ll.h:35:8: error: expected ';' before 'volatile'
asm volatile (

so how can i free to use the darivers in my project? which include paths do i need to add? Do i need to include all the include path for all head files?

Who is online

Users browsing this forum: Bing [Bot] and 94 guests