51 #define ERRORBUFLEN 100 57 #define SAMPLE_OVERRUN 2 58 #define MEMORY_ALLOCATION_ERROR 3
59 #define DAC_CONFIG_ERROR 4
60 #define ADC_CONFIG_ERROR 5 61 #define SETBLOCKSIZE_ERROR 6 62 #define UART_CONFIG_ERROR 7
63 #define CLOCK_CONFIG_ERROR 8 void initerror()
Initialization routine to set up error buffers.
int erroridx
Index of the NEXT error to be written into the errorbuf array.
void flagerror(int errorcode)
Records and indicates an error condition.
int errorbuf[]
Circular buffer to store the most recent error codes.
STM32L476-Discovery configuration routines to support ECE 486.