mos/dev/include/atmel-flash.h File Reference

Interfaces with the external flash through the dev layer. More...

Go to the source code of this file.

Defines

#define ATMEL_FLASH_PORT   PORTD
#define ATMEL_FLASH_DIRE   DDRD
#define ATMEL_FLASH_SELECT   PORTA
#define ATMEL_FLASH_SELECT_PIN   3
#define ATMEL_FLASH_CLK   5
#define ATMEL_FLASH_OUT   2
#define ATMEL_FLASH_IN   3
#define ATMEL_FLASH_PAGE_SIZE   264
#define ATMEL_FLASH_MAX_PAGES   2048
#define ATMEL_FLASH_SIZE   540672
#define ATMEL_FLASH_BUFFER_1   0x1
#define ATMEL_FLASH_BUFFER_2   0x2
#define ATMEL_FLASH_DEFAULT_BUFFER   ATMEL_FLASH_BUFFER_1
#define ATMEL_FLASH_MODE_UNBUFFERED   3
#define ATMEL_FLASH_MODE_BUFFERED   4

Enumerations

enum  

Functions

void atmel_flash_init ()
 Init the external flash.
uint8_t atmel_flash_compare (uint8_t *p, uint16_t count)
 Compare the buffer to flash.
uint16_t atmel_flash_crc (uint32_t count)
 Compute the CRC of flash. Doesn't require a buffer.


Detailed Description

Definition in file atmel-flash.h.


Generated on Mon Nov 23 06:25:59 2009 for MANTIS by  doxygen 1.4.6