(and more specifically, for STM32F030F4P6)
I 'm trying to convert
Arduino 's Lora library to STM32 library (Atollic TrueStudio).
This is my project 's structure:
The driver consists of Lora.h and Lora.c files.
I have converted the most of the code in the header file (Lora.h) and have commented out (small) parts of the code that don 't compile.
So, I have Arduino 's code:
void setTxPower(int level, int outputPin = PA_OUTPUT_PA_BOOST_PIN);
This does not compile as is, so I changed it to:
int outputPin = PA_OUTPUT_PA_BOOST_PIN;
void setTxPower(int level, int outputPin);
But still does not compile, except if I remove the first line.
What can I do to make it work?