USB KEY Hardware data flash configuration
[USBKEY]

Macros to init the environnement for DF on USB KEY. More...

Defines

#define DF_8_MB
#define DF_NB_MEM   2
#define Df_init_spi()
#define Df_select_0()   (PORTE &= ~(1<<PINE0))
#define Df_select_1()   (PORTE &= ~(1<<PINE1))
#define Df_desel_all()   (PORTE |= ((1<<PINE1)|(1<<PINE0)))

Detailed Description

Macros to init the environnement for DF on USB KEY.


Define Documentation

#define DF_8_MB

Definition at line 157 of file usb_key.h.

#define DF_NB_MEM   2

Definition at line 158 of file usb_key.h.

 
#define Df_init_spi (  ) 

Value:

(DDRB  &= ~((1<<PINB3)), \
                            DDRB  |=  ((1<<PINB2)|(1<<PINB1)|(1<<PINB0)), \
                            PORTB |=  ((1<<PINB3)|(1<<PINB2)|(1<<PINB1)|(1<<PINB0)),\
                            DDRE  |=  ((1<<PINE1)|(1<<PINE0)), \
                            PORTE |=  ((1<<PINE1)|(1<<PINE0)) )

Definition at line 167 of file usb_key.h.

 
#define Df_select_0 (  )     (PORTE &= ~(1<<PINE0))

Definition at line 172 of file usb_key.h.

 
#define Df_select_1 (  )     (PORTE &= ~(1<<PINE1))

Definition at line 173 of file usb_key.h.

 
#define Df_desel_all (  )     (PORTE |= ((1<<PINE1)|(1<<PINE0)))

Definition at line 174 of file usb_key.h.


Generated on Mon Sep 14 13:24:13 2009 for ATMEL by  doxygen 1.5.3