A couple of bugfixes

This commit is contained in:
dario
2024-06-14 16:39:42 +02:00
parent e2adee029e
commit 789fa4cd3e
5 changed files with 42 additions and 46 deletions

View File

@@ -209,7 +209,7 @@ namespace sta
* @remarks Afterwards, the device won't accept any instructions for a duration T_SE. This can be checked
* by reading the busy bit.
*
* @param address The address of the sector to erase.
* @param address The number of the sector to erase. Here, 0 is the first sector, 1 the second and so on.
* @return bool Returns 1 if the operation was successful, 0 otherwise.
*/
uint8_t sectorErase(uint32_t address);

View File

@@ -39,12 +39,14 @@
#define W25QXX_PAGE_PROGAM 0x02
#define W25QXX_QUAD_PAGE_PROGAM 0x32
#define W25QXX_SECTOR_ERASE 0x21
#define W25QXX_SECTOR_ERASE 0x20
#define W25QXX_BLOCK_ERASE_32_KB 0x52
#define W25QXX_BLOCK_ERASE_64_KB 0xD8
#define W25QXX_READ 0x03
#define W25QXX_READ_32_BIT 0x13
#define W25QXX_FAST_READ 0x0B
#define W25QXX_FAST_READ_32_BIT 0x0C
#define W25QXX_FAST_READ_DUAL_OUT 0x3B
#define W25QXX_FAST_READ_QUAD_OUT 0x6B
#define W25QXX_SFDP_REG 0x5A