Loading...
 
Skip to main content

System Workbench for STM32


Error unknown type name 'HAL_LockTypeDef'

As usual, the problem was resolved as soon as I wrote to the forum.
I was helped by the following:

1. I deleted all 4 includes:

  1. include ‹main.h›
  2. include ‹stm32f3xx_hal_gpio.h›
  3. include ‹stm32f3xx_hal_spi.h›
  4. include ‹sys/_stdint.h›


2. And I added one #include ‹stm32f3xx_hal.h›

This was enough for the functions that I use in gyro_l3gd20.c file.

P.S. All 4 non-working #include I added using the combination CTRL + Shift + O.
I do not advise you to use this function so that there are no problems like mine.

 
Collapse/expand modules below