Unit test configuration.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
Debug output configuration | |
#define | CONF_TEST_USART &USARTD0 |
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... | |
Test configuration | |
#define | CONF_TEST_RAM_BASE 0x800000UL |
Base address of RAM to test. More... | |
#define | CONF_TEST_RAM_SIZE 0x20000UL |
Size of RAM to test. More... | |
Functions | |
static void | ebi_sram_init (void) |
Initialize the EBI for on-board SRAM. More... | |
#define CONF_TEST_BAUDRATE 38400 |
#define CONF_TEST_CHARLENGTH USART_CHSIZE_8BIT_gc |
#define CONF_TEST_PARITY USART_PMODE_DISABLED_gc |
#define CONF_TEST_RAM_BASE 0x800000UL |
Base address of RAM to test.
Referenced by ebi_sram_init().
#define CONF_TEST_RAM_SIZE 0x20000UL |
Size of RAM to test.
#define CONF_TEST_STOPBITS false |
#define CONF_TEST_USART &USARTD0 |
|
static |
Initialize the EBI for on-board SRAM.
This function initializes the EBI according to the parameters specific to the on-board SRAM chip(s). It is defined in conf_test.h.
References CONF_TEST_RAM_BASE, EBI_CS_ASPACE_128KB_gc, ebi_cs_set_address_size(), ebi_cs_set_base_address(), ebi_cs_set_mode(), ebi_cs_set_sram_wait_states(), ebi_cs_write_config(), ebi_enable_cs(), EBI_PORT_3PORT, EBI_PORT_CS0, EBI_PORT_SRAM, and ebi_setup_port().
Referenced by main().