Includes¶
There are several Lantronix-provided includes available, and you can create your own. Lantronix includes are located in lantronix/includes. Refer to the File List in the Developer Reference for information about includes that are available as part of the SDK.
When creating your own includes, you can either store them within the module that uses them, in custom/module/module_name/includes, or place them in custom/includes to allow multiple modules to make use of the same files.
Required includes¶
Two includes are required for all modules:
-
module_name_module_defs.his automatically generated when you run the make command. The name of the include is the module name with"_module_defs.h"appended. -
ltrx_compile_defines.his delivered with SDK and is required for all modules.
extend.make¶
When your module makes use of includes, that module's directory should also include an extend.make file to define where the includes are located. Definemodule_name_INCLUDE_PATHS in the module's extend.make file to specify the paths to the includes used by the module.
Note
Files used in the variable should maintain alphabetical order.
Example: