Collaboration diagram for USB KEY Hardware data flash configuration:
![]() |
Defines | |
#define | DF_8_MB |
Type of DF implemented on USB KEY. | |
#define | DF_SELECT_MEM 0 |
#define | DF_UNSELECT_MEM 1 |
#define | DF_NB_MEM 2 |
#define | Init_df_usb_key() |
#define | DF_CS0 PORTE_Bit0 |
#define | DF_CS1 PORTE_Bit1 |
#define | DF_CS2 DF_CS0 |
#define | DF_CS3 DF_CS0 |
#define | Df_select_df(i, val) (DF_CS##i = val) |
#define | Df_desel_all() (DF_CS0=DF_UNSELECT_MEM,DF_CS1=DF_UNSELECT_MEM) |
#define | df_init_spi() Init_df_usb_key() |
#define Init_df_usb_key | ( | ) |
Value:
(PORTB_Bit0=1,DDRB_Bit0=0,DDRB_Bit1=1,DDRB_Bit2=1,\ DDRB_Bit3=0,DDRE_Bit0=1,DDRE_Bit1=1,Df_desel_all())
#define Df_desel_all | ( | ) | (DF_CS0=DF_UNSELECT_MEM,DF_CS1=DF_UNSELECT_MEM) |