-
It's actually just a written function;
Each chip comes with one or several simple functions that are written; It is convenient for us to develop.
You can open the header file by yourself, or you can modify it by yourself;
There are already written bit definitions and some basic functions.
When programming, we don't need to define some basic bits or functions again, just put the header file that contains them.
-
Filename. h file. It defines some commonly used functions and variables.
For example, there is, etc. In the . .c file usage is include
-
Define the registers and pins in the microcontroller. I can open it by right-clicking it in keil.
-
It defines some commonly used functions and variables.
-
For C header files, it is common to use the include+filename statement for reference.
The format is as follows: include
or include
When using include, quotation marks and angle brackets do not mean the same thing. When using quotation marks "", search the directory where the project files are located first, and then the directory where the compiler header files are located. Therefore, for user-defined header files, double quotation marks are usually used.
Example: Let's say we have two header files with the same file name.
But the content is different. One is stored in the header file directory specified by the compiler, which we call file i
The other is stored in the directory of the current project, which we call File II.
If we are using
include
then we are referencing a file.
i。If we are using include, we will be referencing file ii.
-
I think it's all about bringing up the database.
Something, you need something.
But in some library.
When you use it. It needs to be called up and declared.
-
It is a dedicated register file, 8031, 8051 are reg, it includes the SFR of 8051 and its bit definition, and the general system must include this file.
Absolute address file. The file defines only a few macros to determine the absolute address of each storage space.
Dynamic memory allocation functions.
Buffer handlers.
The input and output stream function reads data through the channel port of 8051 or the user-defined IO port, which is the channel port of 8051 by default.
lz understands the same thing, and it is true that it is to avoid repetition, but not to avoid repeating declarations, but to avoid repeating definitions. In general, all declarations of C are repeatable, as long as the duplicate declarations are identical. However, definitions should not be repeated, even if they are identical, and repeating them will lead to compilation errors. >>>More
The microcontroller is composed of three modules: combinator, controller and main register. >>>More
Single-chip microcomputer, also known as microcontroller, is a microcomputer that integrates processors, memory, timing counters, and various input and output interfaces on an integrated circuit chip. >>>More
Actually, the abbreviation of because, because means.
The lyrics that are often heard are: cause i love you, because I love you. >>>More
I don't think there's this! HDR only