ATMEL: ATMEL Hardware data flash configuration

- 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 153 of file stk_525.h.

#define DF_NB_MEM 1

Definition at line 154 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 162 of file stk_525.h.

Referenced by df_init().

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

Definition at line 165 of file stk_525.h.

Referenced by df_chipselect_current().

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

Definition at line 166 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().