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

# ATMEL Hardware data flash configuration
[STK525]

Macros to init the environnement for DF on STK525. More...

## Defines
#define | DF_4_MB
#define | DF_NB_MEM 1
#define | Df_init_spi()
#define | Df_select_0() (PORTB &= ~(1<<PINB4))
#define | Df_desel_all() (PORTB |= (1<<PINB4))

## Detailed Description

Macros to init the environnement for DF on STK525.

## Define Documentation

#define DF_4_MB

Definition at line 150 of file stk_525.h.

#define DF_NB_MEM 1

Definition at line 151 of file stk_525.h.

Referenced by df_mem_check(), and df_read_capacity().

#define Df_init_spi | ( |  | ) |

Value:

    (DDRB  &= ~((1<<PINB3)), \
                                DDRB  |=  ((1<<PINB4)|(1<<PINB2)|(1<<PINB1)|(1<<PINB0)), \
                                PORTB |=  ((1<<PINB4)|(1<<PINB3)|(1<<PINB2)|(1<<PINB1)|(1<<PINB0)) )

Definition at line 159 of file stk_525.h.

Referenced by df_init().

#define Df_select_0 | ( |  | ) | (PORTB &= ~(1<<PINB4))

Definition at line 162 of file stk_525.h.

Referenced by df_chipselect_current().

#define Df_desel_all | ( |  | ) | (PORTB |= (1<<PINB4))

Definition at line 163 of file stk_525.h.

Referenced by df_chipselect_current(), df_host_read_sector(), df_host_write_sector(), df_mem_check(), df_read_close(), df_read_sector(), df_wait_busy(), df_write_close(), df_write_open(), and df_write_sector().