Microchip® Advanced Software Framework

smc_example.c File Reference
#include "compiler.h"
#include "board.h"
#include "print_funcs.h"
#include "pm.h"
#include "gpio.h"
#include "smc.h"

Macros

#define SRAM   ((void *)AVR32_EBI_CS1_ADDRESS)
 SRAM base address. More...
 
#define SRAM_SIZE   (1 << smc_get_cs_size(1))
 SRAM size. More...
 

Functions

int main (void)
 This example shows how to access an external RAM connected to the SMC module. More...
 

#define SRAM   ((void *)AVR32_EBI_CS1_ADDRESS)

SRAM base address.

Referenced by main().

#define SRAM_SIZE   (1 << smc_get_cs_size(1))

SRAM size.

Referenced by main().

int main ( void  )

This example shows how to access an external RAM connected to the SMC module.

References FOSC0, init_dbg_rs232(), pm_switch_to_osc0(), print_dbg(), print_dbg_hex(), print_dbg_ulong(), smc_init(), SRAM, and SRAM_SIZE.