Microchip® Advanced Software Framework

conf_test.h File Reference

Unit test configuration.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Macros

Unit test configuration
#define CONF_TEST_USART   &USARTC0
 USART to redirect STDIO to. More...
 
#define CONF_TEST_BAUDRATE   38400
 Baudrate of USART. More...
 
#define CONF_TEST_CHARLENGTH   USART_CHSIZE_8BIT_gc
 Character length (bits) of USART. More...
 
#define CONF_TEST_PARITY   USART_PMODE_DISABLED_gc
 Parity mode of USART. More...
 
#define CONF_TEST_STOPBITS   false
 Stopbit configuration of USART. More...
 
#define CONF_TEST_ACCEPT_DELTA_12BIT   260
 Maximum acceptable deviation for 12-bit measurements. More...
 
#define CONF_TEST_ACCEPT_DELTA_8BIT   20
 Maximum acceptable deviation for 8-bit measurements. More...
 

#define CONF_TEST_ACCEPT_DELTA_12BIT   260

Maximum acceptable deviation for 12-bit measurements.

The ADC results are accepted, i.e., test passed, as long as they are within the acceptable range for the sample resolution:

\[ \left| R_\textnormal{measured,12bit} - R_\textnormal{expected,12bit} \right| \le \Delta_\textnormal{accepted,12bit} \]

Referenced by verify_signed_result(), and verify_unsigned_result().

#define CONF_TEST_ACCEPT_DELTA_8BIT   20

Maximum acceptable deviation for 8-bit measurements.

The ADC results are accepted, i.e., test passed, as long as they are within the acceptable range for the sample resolution:

\[ \left| R_\textnormal{measured,8bit} - R_\textnormal{expected,8bit} \right| \le \Delta_\textnormal{accepted,8bit} \]

Referenced by verify_signed_result(), and verify_unsigned_result().

#define CONF_TEST_BAUDRATE   38400

Baudrate of USART.

Note
38400 baud

Referenced by main().

#define CONF_TEST_CHARLENGTH   USART_CHSIZE_8BIT_gc

Character length (bits) of USART.

Note
8-bit character length

Referenced by main().

#define CONF_TEST_PARITY   USART_PMODE_DISABLED_gc

Parity mode of USART.

Note
No parity check

Referenced by main().

#define CONF_TEST_STOPBITS   false

Stopbit configuration of USART.

Note
No extra stopbit, i.e., use 1

Referenced by main().

#define CONF_TEST_USART   &USARTC0

USART to redirect STDIO to.

Note
USART0 on PORTC routed through board controller to USB

Referenced by main().