Microchip® Advanced Software Framework

smc.h File Reference
#include <avr32/io.h>
#include "compiler.h"
#include "conf_ebi.h"

Macros

#define EXT_SM_SIZE   17
 SMC Peripheral Memory Size in log2(Bytes) More...
 
#define NCS_CONTROLLED_READ   false
 Whether read is controlled by NCS or by NRD. More...
 
#define NCS_CONTROLLED_WRITE   false
 Whether write is controlled by NCS or by NWE. More...
 
#define NCS_RD_HOLD   0
 Unit: ns. More...
 
#define NCS_RD_PULSE   82
 Unit: ns. More...
 
#define NCS_RD_SETUP   0
 Unit: ns. More...
 
#define NCS_WR_HOLD   82
 Unit: ns. More...
 
#define NCS_WR_PULSE   82
 Unit: ns. More...
 
#define NCS_WR_SETUP   0
 Unit: ns. More...
 
#define NRD_CYCLE   Max((NCS_RD_SETUP + NCS_RD_PULSE + NCS_RD_HOLD),(NRD_SETUP + NRD_PULSE + NRD_HOLD))
 
#define NRD_HOLD   0
 
#define NRD_PULSE   82
 Unit: ns. More...
 
#define NRD_SETUP   0
 Unit: ns. More...
 
#define NWAIT_MODE   AVR32_SMC_EXNW_MODE_DISABLED
 Whether to use the NWAIT pin. More...
 
#define NWE_CYCLE   Max((NCS_WR_SETUP + NCS_WR_PULSE + NCS_WR_HOLD),(NWE_SETUP + NWE_PULSE + NWE_HOLD))
 
#define NWE_HOLD   82
 
#define NWE_PULSE   82
 Unit: ns. More...
 
#define NWE_SETUP   0
 Unit: ns. More...
 
#define PAGE_MODE   false
 
#define PAGE_SIZE   0
 
#define SMC_8_BIT_CHIPS   false
 Whether 8-bit SM chips are connected on the SMC. More...
 
#define SMC_DBW   16
 SMC Data Bus Width. More...
 
#define TDF_CYCLES   0
 
#define TDF_OPTIM   false
 

Functions

unsigned char smc_get_cs_size (unsigned char cs)
 Return the size of the peripheral connected . More...
 
void smc_init (unsigned long hsb_hz)
 Initializes the AVR32 SMC module and the connected SRAM(s). More...