Microchip® Advanced Software Framework

smc.c File Reference
#include "compiler.h"
#include "preprocessor.h"
#include "gpio.h"
#include "smc.h"
#include "smc_nf.h"

Macros

#define NWAIT_MODE_GLOBAL   AVR32_SMC_EXNW_MODE_DISABLED
 
#define SMC_8_BIT_CHIPS   true
 
#define SMC_8_BIT_CHIPS_GLOBAL   true
 
#define SMC_CS_SETUP(ncs)
 
#define SMC_DBW_GLOBAL   8
 

Functions

static void smc_enable_muxed_pins (void)
 Puts the multiplexed MCU pins used for the SMC. More...
 
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...
 

Variables

static U8 smc_tab_cs_size [6]
 

#define NWAIT_MODE_GLOBAL   AVR32_SMC_EXNW_MODE_DISABLED
#define SMC_8_BIT_CHIPS   true
#define SMC_8_BIT_CHIPS_GLOBAL   true
#define SMC_CS_SETUP (   ncs)

Referenced by smc_init().

#define SMC_DBW_GLOBAL   8

static void smc_enable_muxed_pins ( void  )
static

Puts the multiplexed MCU pins used for the SMC.

References ATPASTE2, EBI_ADDR_21, EBI_ADDR_22, EBI_DATA_0, EBI_DATA_1, EBI_DATA_2, EBI_DATA_3, EBI_DATA_4, EBI_DATA_5, EBI_DATA_6, EBI_DATA_7, and gpio_enable_module().

Referenced by smc_init().

U8 smc_tab_cs_size[6]
static

Referenced by smc_get_cs_size().