mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
feather-rp2040,macropad-rp2040: fix qspi-flash settings
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// rp2040-boot-stage2.S
|
||||
//
|
||||
|
||||
#define BOARD_PICO_FLASH_SPI_CLKDIV 2
|
||||
#define BOARD_PICO_FLASH_SPI_CLKDIV 4
|
||||
#define BOARD_CMD_READ 0xe7
|
||||
#define BOARD_QUAD_OK 1
|
||||
#define BOARD_QUAD_ENABLE_STATUS_BYTE 2
|
||||
@@ -14,4 +14,4 @@
|
||||
#define BOARD_SPLIT_STATUS_WRITE 1
|
||||
#define BOARD_WAIT_CYCLES 2
|
||||
|
||||
#include "rp2040-boot-stage2.S"
|
||||
#include "rp2040-boot-stage2.S"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// Adafruit MacroPad RP2040 Stage 2 Bootloader
|
||||
|
||||
//
|
||||
// This file defines the parameters specific to the flash-chip found
|
||||
// on the Adafruit MacroPad RP2040. The generic implementation is in
|
||||
// rp2040-boot-stage2.S
|
||||
//
|
||||
|
||||
#define BOARD_PICO_FLASH_SPI_CLKDIV 4
|
||||
#define BOARD_CMD_READ 0xeb
|
||||
#define BOARD_QUAD_OK 1
|
||||
#define BOARD_QUAD_ENABLE_STATUS_BYTE 2
|
||||
#define BOARD_QUAD_ENABLE_BIT_MASK 2
|
||||
#define BOARD_SPLIT_STATUS_WRITE 0
|
||||
#define BOARD_WAIT_CYCLES 4
|
||||
|
||||
#include "rp2040-boot-stage2.S"
|
||||
@@ -7,6 +7,6 @@
|
||||
"serial-port": ["acm:239a:8107"],
|
||||
"linkerscript": "targets/pico.ld",
|
||||
"extra-files": [
|
||||
"targets/pico-boot-stage2.S"
|
||||
"targets/macropad-rp2040-boot-stage2.S"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user