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 |
#define CONF_TEST_CHARLENGTH USART_CHSIZE_8BIT_gc |
#define CONF_TEST_PARITY USART_PMODE_DISABLED_gc |
#define CONF_TEST_STOPBITS false |
#define CONF_TEST_USART &USARTC0 |
USART to redirect STDIO to.
Referenced by main().