Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Error c129: keil; What happened before the lack of "'data'" in? Ask experts for answers.
Error c129: keil; What happened before the lack of "'data'" in? Ask experts for answers.
There is a problem in front of the data when defining variables. If possible, the data type you defined is wrong, or the data type you used has not been redefined as the name you wrote, for example:

The commonly used unsigned 16-bit integer data type is unsigned int, and we usually write uint 16 instead of this type. The premise of this is to redefine the unsigned int type as uint 16.

If you don't redefine it, write it directly as: uint 16 data variable name; Missing';' Will appear. Before' data', change it to the variable name of unsigned int data, and you can do it.

STM generally redefines related structural types in this way, and there are many other structural types that need to be redefined in the header file, such as the following operations in the header file: typedef unsigned intuint16; Redefining unsigned int as uint 16 is equivalent to giving it a new name.

I hope it works for you!