- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# 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 154 of file usb_key.h.

#define DF_NB_MEM 2

Definition at line 155 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 164 of file usb_key.h.

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

Definition at line 169 of file usb_key.h.

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

Definition at line 170 of file usb_key.h.

Referenced by df_chipselect_current().

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

Definition at line 171 of file usb_key.h.