SMC SRAM Example for SAM.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | SRAM_TEST_SIZE (10*1024) |
SRAM test size. More... | |
Functions | |
static uint8_t | access_sram_test (uint32_t base_addr) |
Go/No-Go test of the first 10K-Bytes of external SRAM access. More... | |
static void | configure_console (void) |
Configure UART console. More... | |
static void | configure_sram (uint32_t cs) |
Configure the SMC for SRAM access. More... | |
int | main (void) |
Application entry point for smc_sram example. More... | |
#define SRAM_TEST_SIZE (10*1024) |
SRAM test size.
Referenced by access_sram_test().
|
static |
Go/No-Go test of the first 10K-Bytes of external SRAM access.
base_addr | Base address of the SRAM. |
References pio_set_pin_high(), pio_set_pin_low(), and SRAM_TEST_SIZE.
Referenced by main().
|
static |
Configure UART console.
References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
|
static |
Configure the SMC for SRAM access.
cs | Chip select. |
References smc_set_cycle_timing(), smc_set_mode(), smc_set_pulse_timing(), and smc_set_setup_timing().
Referenced by main().
int main | ( | void | ) |
Application entry point for smc_sram example.
References access_sram_test(), board_init(), BOARD_NAME, configure_console(), configure_sram(), pio_configure_pin(), pmc_enable_periph_clk(), and sysclk_init().