|
sys_module.h
Summary: Defines definitions and declarations related to system modules.
Description: This file defines definitions and interfaces related to system
modules.
// *****************************************************************************
/* System Module Object
Summary:
Handle to an instance of a system module.
Description:
This data type is a handle to a specific instance of a system module (such
as a device driver).
Remarks:
Code outside of a specific module should consider this as an opaque type
(much like a void *). Do not make any assumptions about base type as it
may change in the future or about the value stored in a variable of this
type.
*/
typedef uintptr_t SYS_MODULE_OBJ; //uintptr: ポインタと同じサイズの符号なし整数
|
|
definitions.h
Summary: project system definitions.
Description: This file contains the system-wide prototypes and definitions
for a project.
// *****************************************************************************
/* System Objects
Summary:
Structure holding the system's object handles
Description:
This structure contains the object handles for all objects in the
MPLAB Harmony project's system configuration.
Remarks:
These handles are returned from the "Initialize" functions for each module
and must be passed into the "Tasks" function for each module.
*/
typedef struct
{
SYS_MODULE_OBJ sysTime;
} SYSTEM_OBJECTS;
|
|
initialization.c
Summary: This file contains source code necessary to initialize the system.
Description: This file contains source code necessary to initialize the
system. It implements the "SYS_Initialize" function, defines
the configuration bits, and allocates any necessary global system resources,
// Section: System Data
/* Structure to hold the object handles for the modules in the system. */
SYSTEM_OBJECTS sysObj; |