ECE 486 Support Libraries

Functions

void initerror ()
 Initialization routine to set up error buffers. More...
 
void flagerror (int errorcode)
 Records and indicates an error condition. More...
 

Detailed Description

Function Documentation

void flagerror ( int  errorcode)

Records and indicates an error condition.

  • Writes the input value errorcode into the errorbuf array
  • Circularly increments the error index erroridx
  • Indicates an error by lighting the red LED
Parameters
[in]errorcodeError code to be stored in errorbuf[erroridx]

Definition at line 48 of file err486.c.

void initerror ( )

Initialization routine to set up error buffers.

Called once, at program start-up: Sets all error codes in errorbuf[i] to zero, and clears the red LED.

Definition at line 34 of file err486.c.