Atmel Software Framework

ebi_port.h File Reference

External bus interface (EBI) port/pin configuration.

Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.

#include <stdint.h>
#include "compiler.h"
#include "sysclk.h"

Macros

#define EBI_PORT_CS_ALL
 
EBI Address Latch Configuration Flags
#define EBI_ALE1   0x01
 Enable ALE1 only. More...
 
#define EBI_ALE12   0x03
 Enable both ALE1 and ALE2. More...
 
EBI Port Configuration Flags
#define EBI_PORT_3PORT   (1 << 0)
 3-port interface (default is 2-port) More...
 
#define EBI_PORT_SDRAM   (1 << 1)
 Enable SDRAM interface. More...
 
#define EBI_PORT_SRAM   (1 << 2)
 Enable SRAM interface. More...
 
#define EBI_PORT_LPC   (1 << 3)
 Enable LPC interface. More...
 
#define EBI_PORT_CS0   (1 << 4)
 Enable SRAM Chip Select 0. More...
 
#define EBI_PORT_CS1   (1 << 5)
 Enable SRAM Chip Select 1. More...
 
#define EBI_PORT_CS2   (1 << 6)
 Enable SRAM Chip Select 2. More...
 
#define EBI_PORT_CS3   (1 << 7)
 Enable SRAM Chip Select 3. More...
 

Functions

static void ebi_setup_port (uint8_t addr_bits, uint8_t sram_ale, uint8_t lpc_ale, uint8_t flags)
 Set up the I/O ports for use by the EBI. More...