ECE 486 Support Libraries
|
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... | |
Error Handling for ECE 486 STM32L476G-Discovery Interface.
Defines error flags and error indication mechanisms for the ECE 486 interface to the STM32L476-Discovery development boards
Definition in file err486.h.