GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RAD750 / V1-3-5

Constituent: rad750_reboot     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

RAD750_reboot.c.vx-ppc-rad750 File Reference

Function definitions for RAD750 VxWorks application reboot library. More...

#include "vxWorks.h"
#include "sysLib.h"
#include "rebootLib.h"
#include "mv2600.h"
#include "BootDiagnostics.h"
#include "RAD750/RAD750_reboot.h"

Include dependency graph for RAD750_reboot.c.vx-ppc-rad750:


Functions

void RAD750_rebootGo (RAD750_Reboot_Type bootType, const unsigned int *appInfo, unsigned int options)
 Reboot the processor from the application level.
void RAD750_rebootGet (RAD750_Reboot_Type *bootType, unsigned int *appInfo)
 Get the application reboot information.

Variables

int sysStartType

Detailed Description

Function definitions for RAD750 VxWorks application reboot library.

Author:
D.L. Wood
These functions provide a means for applications to interface to the RAD750 primary and secondary boot codes.

Function Documentation

void RAD750_rebootGet RAD750_Reboot_Type bootType,
unsigned int *  appInfo
 

Get the application reboot information.

Returns the information in the boot diagnosics area. This may be used to diagnose the cause of a reboot when applications are starting up. The returned bootType value should be one of the RAD750_Reboot_Type values,indicating the reboot cause. The application reboot information words are copied into the user buffer appInfo. These should be the same values as from the last call to RAD750_rebootGo(), if the reboot was peformed in that manner.

Parameters:
bootType Holds the reboot cause or type code on return.
appInfo A pointer to an array of RAD750_REBOOT_N_APP_WORDS 32-bit words. These words are copied from the area of the boot diagnostics region reserved for application use.

void RAD750_rebootGo RAD750_Reboot_Type  bootType,
const unsigned int *  appInfo,
unsigned int  options
 

Reboot the processor from the application level.

Performs a reboot of the processor. The relevant information is stored in the boot diagnostics area in RAM for the primary boot code and is eventually available after the reboot is complete using RAD750_rebootGet(). The bit BOOT_DIAGS_PBF_APP_RESET is set in the primary boot flags to indicate a reboot from the application level. The bootType parameter is also passed in to the primary boot code. In general, users of this function should only implement types RAD750_REBOOT_TYPE_PANIC or RAD750_REBOOT_TYPE_COMMAND.

Parameters:
bootType The reboot cause or type code.
appInfo A pointer to an array of RAD750_REBOOT_N_APP_WORDS 32-bit words. These words are copied into the area of the boot diagnostics region reserved for application use.
options A set of bit mask options; not currently implemented.


Variable Documentation

sysStartType
 

The boot start type passed into the RTOS from the PBC.


Generated on Fri Oct 3 01:12:56 2008 by  doxygen 1.4.4