Unit test configuration.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | SPI_WPSR_WPVS_Msk SPI_WPSR_WPVSRC_Msk |
Unit test configuration | |
#define | CONF_TEST_SPI SPI |
SPI instance to perform unit tests on. More... | |
#define | CONF_TEST_SPI_ID ID_SPI |
SPI ID for test. More... | |
#define | CONF_TEST_SPI_NPCS (1UL) |
NPCS used for test. More... | |
#define | CONF_TEST_SPI_HANDLER SPI_Handler |
SPI handler for vector table. More... | |
#define | CONF_TEST_USART CONSOLE_UART |
USART to redirect STDIO to. More... | |
#define | CONF_TEST_BAUDRATE (115200UL) |
Baudrate of USART. More... | |
#define | CONF_TEST_CHARLENGTH (0) |
Character length (bits) of USART. More... | |
#define | CONF_TEST_PARITY UART_MR_PAR_NO |
Parity mode of USART. More... | |
#define | CONF_TEST_STOPBITS (false) |
Stopbit configuration of USART. More... | |
#define CONF_TEST_BAUDRATE (115200UL) |
#define CONF_TEST_CHARLENGTH (0) |
Character length (bits) of USART.
Char setting : 8-bit character length (don't care for UART)
Referenced by main().
#define CONF_TEST_PARITY UART_MR_PAR_NO |
#define CONF_TEST_SPI SPI |
SPI instance to perform unit tests on.
Perform unit tests using SPI.
SPI base for test.
Referenced by CONF_TEST_SPI_HANDLER(), run_spi_ctrl_test(), run_spi_trans_test(), and run_spi_writeprotect_test().
#define CONF_TEST_SPI_HANDLER SPI_Handler |
SPI handler for vector table.
unit test SPI handler in vector table
#define CONF_TEST_SPI_ID ID_SPI |
#define CONF_TEST_SPI_NPCS (1UL) |
NPCS used for test.
unit test SPI NPCS
Referenced by run_spi_trans_test(), and run_spi_writeprotect_test().
#define CONF_TEST_STOPBITS (false) |
Stopbit configuration of USART.
Stopbit setting : No extra stopbit, i.e., use 1 (don't care for UART.
Referenced by main().
#define CONF_TEST_USART CONSOLE_UART |
#define SPI_WPSR_WPVS_Msk SPI_WPSR_WPVSRC_Msk |
Referenced by run_spi_writeprotect_test().