Skip to main content
DSonc.1
Visitor II
January 20, 2020
Question

Is there any migration guide from old sdk to new

  • January 20, 2020
  • 0 replies
  • 444 views

I'm currently in the process of compiling example code from our supplier for an e-ink display. The issue however is it uses functions that predate HAL from what I can tell. While some things are simply renaming to uppercase, some other things are unknown.

Some examples are:

RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB|RCC_APB2Periph_GPIOD|RCC_APB2Periph_GPIOE, ENABLE);
 
//SCL--PE0 SDA--PE1
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0 | GPIO_Pin_1; 
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(GPIOE, &GPIO_InitStructure);
 
GPIO_ResetBits(GPIOB, GPIO_Pin_8)
GPIO_SetBits(GPIOB, GPIO_Pin_8

I'm currently using STM32CubeIDE

    This topic has been closed for replies.