Microchip® Advanced Software Framework

conf_test.h File Reference

Unit test configuration.

Copyright (c) 2011-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   1
 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   115200
 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   115200

Baudrate of USART.

Baudrate setting : 115200.

Referenced by main().

#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

Parity mode of USART.

Parity setting : No parity check.

Referenced by main().

#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

See Also
exceptions.h
#define CONF_TEST_SPI_ID   ID_SPI

SPI ID for test.

unit test SPI ID

Referenced by run_spi_trans_test().

#define CONF_TEST_SPI_NPCS   1

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

USART to redirect STDIO to.

USART Interface : Console UART.

Referenced by main().

#define SPI_WPSR_WPVS_Msk   SPI_WPSR_WPVSRC_Msk