How to add .cpp and .h files to the project of stm32cubeide?
1) I added to folder Core/Inc file my_lib.h
2) Added to folder Core/Src file my_lib.cpp
3) I added #include "my_lib.cpp" to main.cpp
In tmy_lib.cpp I have only one class for testing. This class works with PWM.
When I compile project I get errors that such names are not found:
TIM_Channel_1, htim, uint32_t, so on...
So, it seems that this my_lib.h is compiled first and before default libraries goted by CubeMX. How to solve this problem and to compile added file at the end of the project?
