Initialization of memories (XMEGA)
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | BOARD_EBI_SDRAM_INITDLY (100 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM initialization delay in number of CLKper2 cycles (100 us) More... | |
#define | BOARD_EBI_SDRAM_REFRESH (16 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM refresh interval in number of CLKper2 cycles (16 us) More... | |
Functions | |
void | memories_initialization (void) |
Initialize the memories used by examples. More... | |
#define BOARD_EBI_SDRAM_INITDLY (100 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM initialization delay in number of CLKper2 cycles (100 us)
Referenced by memories_initialization().
#define BOARD_EBI_SDRAM_REFRESH (16 * 2 * sysclk_get_per2_hz() / 1000000) |
SDRAM refresh interval in number of CLKper2 cycles (16 us)
Referenced by memories_initialization().
void memories_initialization | ( | void | ) |
Initialize the memories used by examples.
References BOARD_EBI_SDRAM_BASE, BOARD_EBI_SDRAM_INITDLY, BOARD_EBI_SDRAM_REFRESH, 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_is_ready(), 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().