cancel
Showing results for 
Search instead for 
Did you mean: 

error in Library Header File

Ala1980
Associate II

Hi,

I created a new project using ready HAL Libraries on STM32F3, I get an weird error (expected an identifier) on the following line in the file (stm32f303xc.h):

  __IO uint32_t TR;     /*!< RTC time register,                    Address offset: 0x00 */

Can anyone help?

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

As .h files are never compiled on their own, you should check the .c file including it and other include files too. Possibly TR is defined somwhere else as a constant or so.

View solution in original post

2 REPLIES 2
KnarfB
Principal III

As .h files are never compiled on their own, you should check the .c file including it and other include files too. Possibly TR is defined somwhere else as a constant or so.

Ala1980
Associate II

Yes, you have right, RT was defined in other place too.

Thank you, solved