Everything

CHAPTER 13 SYSTEM CONFIGURATION MANAGEMENT FUNCTIONS


This chapter describes the system configuration management functions performed by the RI600PX.
13.1 Outline
The RI600PX's system configuration management function provides the function to reference the version information.
13.2 Reference 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]".
Note 2 These statements are unnecessary for the task which is created by the system configuration file because the cfg600px generates these statement into the "kernel_id.h".