ECE 486 Support Libraries
err486.h File Reference

Error Handling for ECE 486 STM32L476G-Discovery Interface. More...

#include "init486.h"

Go to the source code of this file.

Macros

#define ERRORBUFLEN   100
 Number of errors to record in a circular buffer. More...
 
#define SAMPLE_OVERRUN   2
 ADC buffer filled before the user serviced the buffer. More...
 
#define MEMORY_ALLOCATION_ERROR   3
 malloc() or calloc() returned NULL More...
 
#define DAC_CONFIG_ERROR   4
 
#define ADC_CONFIG_ERROR   5
 
#define SETBLOCKSIZE_ERROR   6
 setblocksize() must be called BEFORE initialize() More...
 
#define UART_CONFIG_ERROR   7
 
#define CLOCK_CONFIG_ERROR   8
 

Functions

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

Variables

int errorbuf []
 Circular buffer to store the most recent error codes. More...
 
int erroridx
 Index of the NEXT error to be written into the errorbuf array. More...
 

Detailed Description

Error Handling for ECE 486 STM32L476G-Discovery Interface.

Author
Don Hummels
Date
Jan, 2016

Defines error flags and error indication mechanisms for the ECE 486 interface to the STM32L476-Discovery development boards

Definition in file err486.h.