/*H**************************************************************************
* NAME: hard.h
*----------------------------------------------------------------------------
* Copyright (c) 2002 Atmel.
*----------------------------------------------------------------------------
* RELEASE: snd1c-refd-nf-3_0_0
* REVISION: 1.4.2.5
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the low-level memory definition
*****************************************************************************/
#ifndef _HARD_H_
#define _HARD_H_
/*_____ I N C L U D E S ____________________________________________________*/
#include "lib_mem\nf\nf.h" /* nand flash definition */
/*_____ M A C R O S ________________________________________________________*/
/*----- Memory type -----*/
#define MEM_CHIP ((bit)0) /* on-board memory */
#define MEM_CARD ((bit)1) /* memory card */
/*_____ D E F I N I T I O N ________________________________________________*/
extern bdata bit gl_memory; /* selected memory */
/*_____ D E C L A R A T I O N ______________________________________________*/
#define Hard_read_byte() nf_read_byte()
#define Hard_read_open(pos) nf_read_open(pos)
#define Hard_read_close() nf_read_close()
#define Hard_write_byte(b) nf_write_byte(b)
#define Hard_write_open(pos) nf_write_open(pos)
#define Hard_write_close() nf_write_close()
#define Hard_format() nf_format()
#endif /* _HARD_H_ */