Page 1 of 1

Export Pin configuration

Posted: Thu May 13, 2021 8:42 am
by mebab
Hi
I know that It is possible to have 'clock configuration' from STM32CubeIDE in a 'variant.cpp' file to be usable by Arduino IDE. How to use the STM32CubeIDE-generated pin configuration in Arduino IDE?

Thanks for your guidance,

Re: Export Pin configuration

Posted: Tue Sep 21, 2021 7:40 am
by fpiSTM
If what you want is use the MX_GPIO_init() then simply copy the code in your sketch.
HAL and LL are available at sketch level. For LL usage you have to include manually the header.
To be generic across serie all LL header have been wrapped in a generic header file:
https://github.com/stm32duino/Arduino_C ... o/stm32/LL

All LL header: stm32yyxx_ll.h
Specific one: stm32yyxx_ll_<ppp>.h where <ppp> is the tagerted peripheral. Ex for ADC: stm32yyxx_ll_adc.h