cancel
Showing results for 
Search instead for 
Did you mean: 

Naming Standar STMCubeIDE,

dhs
Senior

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?

1 REPLY 1
Amel NASRI
ST Employee

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.