Home > other >  How to understand stm32 library functions
How to understand stm32 library functions

Time:09-21

Source program is: through a variety of functions to achieve various function peripherals
Important points:
1. Structure pointer
2. The bit operations
3. The conditional statement
4. The loop statement
Header files generally contains several large parts:
1. The enumeration type
2. The structure type
3. The macro definition
4. The macro definition function
Function declaration
5.Read the header file need to master the basic knowledge of:
1. The macro definition
2. The structure type
3. The enumeration type
4. Casting
5.
or operations6. The macro definition function
The following is a snapshot of a header file:

CodePudding user response:

1. Structure pointer because st (or the arm) addressing store peripherals and single unit, each register for machine word length, the size of the structure in order to better management, (2) nature of enumeration and macro definition is for the sake of users, if you don't use 3.1415 directly.. But the macro definition a PI, enumeration and macro definition makes no difference, actually 3. Here is casts to fit different compilers, don't write there will be no problem
  • Related