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 0x800000UL |
Size of RAM to test. More... | |
Convenience macros for EBI initialization | |
#define | EBI_SDRAM_INITDLY (100 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM initialization delay in number of CLKper2 cycles (100 us) More... | |
#define | EBI_SDRAM_REFRESH (16 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM refresh interval in number of CLKper2 cycles (16 us) More... | |
Functions | |
static void | ebi_sdram_init (void) |
Initialize the EBI for on-board SDRAM. 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_sdram_init().
#define CONF_TEST_RAM_SIZE 0x800000UL |
Size of RAM to test.
#define CONF_TEST_STOPBITS false |
#define CONF_TEST_USART &USARTD0 |
#define EBI_SDRAM_INITDLY (100 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM initialization delay in number of CLKper2 cycles (100 us)
Referenced by ebi_sdram_init().
#define EBI_SDRAM_REFRESH (16 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM refresh interval in number of CLKper2 cycles (16 us)
Referenced by ebi_sdram_init().
|
static |
Initialize the EBI for on-board SDRAM.
This function initializes the EBI according to the parameters specific to the on-board SDRAM chip(s). It is defined in conf_test.h.
References CONF_TEST_RAM_BASE, EBI_CS_ASPACE_8MB_gc, ebi_cs_set_address_size(), ebi_cs_set_base_address(), ebi_cs_set_mode(), ebi_cs_write_config(), ebi_enable_cs(), EBI_PORT_3PORT, EBI_PORT_SDRAM, EBI_SDRAM_CS, EBI_SDRAM_INITDLY, ebi_sdram_is_ready(), EBI_SDRAM_REFRESH, ebi_sdram_set_cas_latency(), ebi_sdram_set_col_bits(), ebi_sdram_set_initialization_delay(), ebi_sdram_set_mode(), ebi_sdram_set_mode_delay(), ebi_sdram_set_refresh_period(), ebi_sdram_set_row_bits(), ebi_sdram_set_row_cycle_delay(), ebi_sdram_set_row_to_col_delay(), ebi_sdram_set_row_to_precharge_delay(), ebi_sdram_set_self_refresh_to_active_delay(), ebi_sdram_set_write_recovery_delay(), ebi_sdram_write_config(), and ebi_setup_port().
Referenced by main().