dernasherbrezon / sx127x

Library to work with Semtech chips SX1276/SX1277/SX1278/SX1279.
Apache License 2.0
34 stars 4 forks source link

Compiling on ESP32C6 board #12

Closed VitorCMatias closed 7 months ago

VitorCMatias commented 7 months ago

Hello,

I am using the example present in the repo to make my project, when I compile to the ESP32 board it works. However, when I try on my C6 I receive the following error:

image

I am using the espidf environment in vscode.

VitorCMatias commented 7 months ago

If I follow the compiler tip the build works, but I don't know if it will affect the component behaviour. I am a beginner in the espidf environment

dernasherbrezon commented 7 months ago

Looks like HSPI_HOST was deprecated at some point: https://github.com/espressif/esp-idf/blob/master/components/hal/include/hal/spi_types.h#L81

It is safe to use SPI2_HOST.