Mercurial > ~darius > hgwebdir.cgi > stm32test
comparison flash.h @ 8:58d76cf522ff
Split out code into separate files.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sat, 04 Feb 2012 13:29:31 +1030 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7:9404b9869c27 | 8:58d76cf522ff |
---|---|
1 uint16_t flashreadid(void); | |
2 uint8_t flashreadstatus(void); | |
3 void flashwritestatus(uint8_t status); | |
4 void flashwritectl(int enable); | |
5 | |
6 #define FL_BP0 (1<<2) | |
7 #define FL_BP1 (1<<3) | |
8 #define FL_BP2 (1<<4) | |
9 #define FL_BP3 (1<<5) | |
10 #define FL_BPL (1<<7) | |
11 | |
12 #define FL_READ 0x03 | |
13 #define FL_HSREAD 0x0b | |
14 #define FL_32KERASE 0x52 | |
15 #define FL_64KERASE 0xd8 | |
16 #define FL_CHIPERASE 0x60 | |
17 #define FL_BYTEPROG 0x02 | |
18 #define FL_AAIWP 0xad | |
19 #define FL_RDSR 0x05 | |
20 #define FL_EWSR 0x50 | |
21 #define FL_WRSR 0x01 | |
22 #define FL_WREN 0x06 | |
23 #define FL_WRDI 0x04 | |
24 #define FL_RDID 0x90 | |
25 #define FL_JEDECID 0x9f | |
26 #define FL_EBSY 0x70 | |
27 #define FL_DBSY 0x80 | |
28 | |
29 |