ECE 486 Support Libraries
err486.c File Reference

Implementation of error handling routines for ECE 486. More...

#include "stm32l4xx_hal.h"
#include "stm32l476g_discovery.h"
#include "err486.h"
#include "init486.h"
#include "stm32l476g_discovery_glass_lcd.h"

Go to the source code of this file.

Functions

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

Variables

enum Num_Channels_Out Output_Configuration
 
enum Num_Channels_In Input_Configuration
 
int errorbuf [ERRORBUFLEN]
 Circular buffer to store the most recent error codes. More...
 
int first_error =0
 
int erroridx = 0
 Index of the NEXT error to be written into the errorbuf array. More...
 

Detailed Description

Implementation of error handling routines for ECE 486.

Author
Don Hummels
Date
Jan, 2013

Definition in file err486.c.

Function Documentation

static void print_error ( int  index)
static

Definition at line 70 of file err486.c.

Variable Documentation

int first_error =0

Definition at line 28 of file err486.c.

enum Num_Channels_In Input_Configuration

Definition at line 88 of file init486.c.

enum Num_Channels_Out Output_Configuration

Definition at line 87 of file init486.c.