Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
◆ FLASH2_CFG_BPNV
#define FLASH2_CFG_BPNV 0x08 |
◆ FLASH2_CFG_IOC
#define FLASH2_CFG_IOC 0x02 |
◆ FLASH2_CFG_RES
#define FLASH2_CFG_RES 0x01 |
◆ FLASH2_CFG_WPEN
#define FLASH2_CFG_WPEN 0x80 |
◆ FLASH2_END_PAGE_ADDRESS
#define FLASH2_END_PAGE_ADDRESS 0x7FFFFF |
◆ FLASH2_FLASH_PAGE_SIZE
#define FLASH2_FLASH_PAGE_SIZE 256 |
◆ FLASH2_INSTR_BE
#define FLASH2_INSTR_BE 0xD8 |
Erase 64, 32 or 8 KBytes of Memory Array
◆ FLASH2_INSTR_CE
#define FLASH2_INSTR_CE 0xC7 |
◆ FLASH2_INSTR_EQIO
#define FLASH2_INSTR_EQIO 0x38 |
◆ FLASH2_INSTR_HS_READ
#define FLASH2_INSTR_HS_READ 0x0B |
Read Memory at Higher Speed
◆ FLASH2_INSTR_JEDECID
#define FLASH2_INSTR_JEDECID 0x9F |
◆ FLASH2_INSTR_LBPR
#define FLASH2_INSTR_LBPR 0x8D |
Lock Down Block-Protection Register
◆ FLASH2_INSTR_LSID
#define FLASH2_INSTR_LSID 0x85 |
Lockout Security ID Programming
◆ FLASH2_INSTR_NOP
#define FLASH2_INSTR_NOP 0x00 |
◆ FLASH2_INSTR_NVWLDR
#define FLASH2_INSTR_NVWLDR 0xE8 |
Non-Volatile Write Lock-Down Register
◆ FLASH2_INSTR_PP
#define FLASH2_INSTR_PP 0x02 |
◆ FLASH2_INSTR_PSID
#define FLASH2_INSTR_PSID 0xA5 |
Program User Security ID Area
◆ FLASH2_INSTR_QUAD_JID
#define FLASH2_INSTR_QUAD_JID 0xAF |
◆ FLASH2_INSTR_RBPR
#define FLASH2_INSTR_RBPR 0x72 |
Read Block-Protection Register
◆ FLASH2_INSTR_RBSPI
#define FLASH2_INSTR_RBSPI 0xEC |
◆ FLASH2_INSTR_RBSQI
#define FLASH2_INSTR_RBSQI 0x0C |
◆ FLASH2_INSTR_RDCR
#define FLASH2_INSTR_RDCR 0x35 |
Read Configuration Register
◆ FLASH2_INSTR_RDSR
#define FLASH2_INSTR_RDSR 0x05 |
◆ FLASH2_INSTR_READ
#define FLASH2_INSTR_READ 0x03 |
◆ FLASH2_INSTR_RSID
#define FLASH2_INSTR_RSID 0x88 |
◆ FLASH2_INSTR_RST
#define FLASH2_INSTR_RST 0x99 |
◆ FLASH2_INSTR_RSTEN
#define FLASH2_INSTR_RSTEN 0x66 |
◆ FLASH2_INSTR_RSTQIO
#define FLASH2_INSTR_RSTQIO 0xFF |
◆ FLASH2_INSTR_SB
#define FLASH2_INSTR_SB 0xC0 |
◆ FLASH2_INSTR_SDIOR
#define FLASH2_INSTR_SDIOR 0xBB |
◆ FLASH2_INSTR_SDOR
#define FLASH2_INSTR_SDOR 0x3B |
◆ FLASH2_INSTR_SE
#define FLASH2_INSTR_SE 0x20 |
Erase 4 KBytes of Memory Array
◆ FLASH2_INSTR_SFDP
#define FLASH2_INSTR_SFDP 0x5A |
Serial Flash Discoverable Parameters
◆ FLASH2_INSTR_SPI_QUAD
#define FLASH2_INSTR_SPI_QUAD 0x32 |
◆ FLASH2_INSTR_SQIOR
#define FLASH2_INSTR_SQIOR 0xEB |
◆ FLASH2_INSTR_SQOR
#define FLASH2_INSTR_SQOR 0x6B |
◆ FLASH2_INSTR_ULBPR
#define FLASH2_INSTR_ULBPR 0x98 |
Global Block Protection Unlock
◆ FLASH2_INSTR_WBPR
#define FLASH2_INSTR_WBPR 0x42 |
Write Block-Protection Register
◆ FLASH2_INSTR_WRDI
#define FLASH2_INSTR_WRDI 0x04 |
◆ FLASH2_INSTR_WREN
#define FLASH2_INSTR_WREN 0x06 |
◆ FLASH2_INSTR_WRRE
#define FLASH2_INSTR_WRRE 0x30 |
◆ FLASH2_INSTR_WRSR
#define FLASH2_INSTR_WRSR 0x01 |
◆ FLASH2_INSTR_WRSU
#define FLASH2_INSTR_WRSU 0xB0 |
◆ FLASH2_START_PAGE_ADDRESS
#define FLASH2_START_PAGE_ADDRESS 0x010000 |
◆ FLASH2_STATUS_BUSY
#define FLASH2_STATUS_BUSY 0x80 |
◆ FLASH2_STATUS_RES
#define FLASH2_STATUS_RES 0x40 |
◆ FLASH2_STATUS_SEC
#define FLASH2_STATUS_SEC 0x20 |
◆ FLASH2_STATUS_WEL
#define FLASH2_STATUS_WEL 0x02 |
◆ FLASH2_STATUS_WPLD
#define FLASH2_STATUS_WPLD 0x10 |
◆ FLASH2_STATUS_WSE
#define FLASH2_STATUS_WSE 0x04 |
◆ FLASH2_STATUS_WSP
#define FLASH2_STATUS_WSP 0x08 |