CHAPTER 13 SYSTEM CONFIGURATION MANAGEMENT FUNCTIONS
The RI600PX's system configuration management function provides the function to reference the version information.
The version information can be referenced by issuing the following service call from the processing program.
- ref_ver, iref_ver
These service calls store the version information into the area specified by parameter pk_rver.
The following describes an example for coding these service calls.
#include "kernel.h" /*Standard header file definition*/#include "kernel_id.h" /*Header file generated by cfg600px*/#pragma task Task1 /*Refer to note 2*/void Task1 (VP_INT exinf); /*Refer to note 2*/void Task1 (VP_INT exinf){T_RVER pk_rver; /*Declares data structure*/UH maker; /*Declares variable*/UH prid; /*Declares variable*//* ......... */ref_ver (&pk_rver); /*Reference version information/maker = pk_rver.maker; /*Acquirer system time (lower 32 bits)*/prid = pk_rver.prid; /*Acquirer system time (higher 16 bits)*//* ......... */}
Note 1 For details about the version information packet T_RVER, refer to "[Version information packet: T_RVER]".