mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
rp2040: add missing suffix to CMD_READ_STATUS
This commit is contained in:
committed by
Ron Evans
parent
dc91c96305
commit
db8d80755f
@@ -63,7 +63,7 @@
|
||||
// Expanded include files
|
||||
//
|
||||
#define CMD_WRITE_ENABLE 0x06
|
||||
#define CMD_READ_STATUS 0x05
|
||||
#define CMD_READ_STATUS1 0x05
|
||||
#define CMD_READ_STATUS2 0x35
|
||||
#define CMD_WRITE_STATUS1 0x01
|
||||
#define CMD_WRITE_STATUS2 0x31
|
||||
@@ -301,7 +301,7 @@ program_sregs:
|
||||
# endif
|
||||
// Poll status register for write completion
|
||||
1:
|
||||
movs r0, #CMD_READ_STATUS
|
||||
movs r0, #CMD_READ_STATUS1
|
||||
bl read_flash_sreg
|
||||
movs r1, #1
|
||||
tst r0, r1
|
||||
|
||||
Reference in New Issue
Block a user