2023-01-21 3:22 PM
I am trying to understand the standard followed by libraries and automatic code generated for this IDE but I am very confused, some examples :
Looks this one
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
compare with this one:
GPIO_InitTypeDef GPIO_InitStruct
Both definition are in outside modules, only one use the "rule" module name later underscore ....
The following
DMA_HandleTypeDef hdma_adc1;
Here use under scores to separe words.
There is a guide in some where which follows these libraries and the automatic code generated?
2023-02-07 6:21 AM
Hi @dhs ,
The generated code by STM32CubeIDE (or precisely by STM32CubeMX) is based on the STM32Cube drivers HAL/LL.
These drivers are described in a dedicated user manual. In the case of STM32F4 for example, you need to refer to UM1725 Description of STM32F4 HAL and low-layer drivers where you find this explanation: "For the shared and system peripherals, no handle or instance object is used. The peripherals concerned by this exception are the following: – GPIO – SYSTICK – NVIC – PWR – RCC – FLASH".
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.