diff options
Diffstat (limited to 'main/common/spif.h')
-rw-r--r-- | main/common/spif.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/main/common/spif.h b/main/common/spif.h index 89310ec..a9b5375 100644 --- a/main/common/spif.h +++ b/main/common/spif.h @@ -1,7 +1,7 @@ /************************************************************************** * * Copyright (c) 2013 Alcatel-Lucent - * + * * Alcatel Lucent licenses this file to You under the Apache License, * Version 2.0 (the "License"); you may not use this file except in * compliance with the License. A copy of the License is contained the @@ -26,17 +26,17 @@ * */ /* Status register bits for ATMEL device: */ -#define SPRL 0x80 // Sector protection registers locked (if 1) -#define RES 0x40 // Reserved for future use -#define EPE 0x20 // Erase or program error (if 1) -#define WPP 0x10 // *WP pin is deasserted (if 1) -#define SWPS 0x0c // Software protection status bits -#define SWPS00 0x00 // 00: all sectors unprotected -#define SWPS01 0x04 // 01: some sectors unprotected -#define SWPS10 0x08 // 10: reserved for future use -#define SWPS11 0x0c // 11: all sectors protected (default) -#define WEL 0x02 // Write enable latch (1=write enabled) -#define BSY 0x01 // Busy (1=busy, 0=ready) +#define SPRL 0x80 // Sector protection registers locked (if 1) +#define RES 0x40 // Reserved for future use +#define EPE 0x20 // Erase or program error (if 1) +#define WPP 0x10 // *WP pin is deasserted (if 1) +#define SWPS 0x0c // Software protection status bits +#define SWPS00 0x00 // 00: all sectors unprotected +#define SWPS01 0x04 // 01: some sectors unprotected +#define SWPS10 0x08 // 10: reserved for future use +#define SWPS11 0x0c // 11: all sectors protected (default) +#define WEL 0x02 // Write enable latch (1=write enabled) +#define BSY 0x01 // Busy (1=busy, 0=ready) /* Baudrate could be much higher, but we keep it low here for easier * ability to trace out on the scope... @@ -48,9 +48,9 @@ /* The ATMEL part supports three different erase block sizes (not * including the 'whole-chip' erase)... */ -#define BLKSZ_4K 0x20 -#define BLKSZ_32K 0x52 -#define BLKSZ_64K 0xD8 +#define BLKSZ_4K 0x20 +#define BLKSZ_32K 0x52 +#define BLKSZ_64K 0xD8 extern void spifQinit(void); extern int spifInit(void); |