modified: src/W25QXXArduino/w25qxx.h
parent
0cc99e3e52
commit
43698f06d2
|
@ -32,14 +32,20 @@ extern uint16_t W25QXX_TYPE; //
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//端口定义
|
||||
#define NORFLASH_CS_PIN 5
|
||||
#define NORFLASH_CLK_PIN 18
|
||||
#define NORFLASH_MOSI_PIN 23
|
||||
#define NORFLASH_MISO_PIN 19
|
||||
// #define NORFLASH_HOLD_PIN 9 // hold pin no connect 3.3V
|
||||
// #define NORFLASH_WP_PIN 14 // hold pin no connect 3.3V
|
||||
#define NORFLASH_HOLD_PIN -1 // hold pin connect 3.3V
|
||||
#define NORFLASH_WP_PIN -1 // wp pin connect 3.3V
|
||||
#define ESP32S3
|
||||
|
||||
#ifdef ESP32 //choose ESP32
|
||||
#define NORFLASH_CS_PIN 5
|
||||
#define NORFLASH_CLK_PIN 18
|
||||
#define NORFLASH_MOSI_PIN 23
|
||||
#define NORFLASH_MISO_PIN 19
|
||||
#endif
|
||||
#ifdef ESP32S3 //choose ESP32S3
|
||||
#define NORFLASH_CS_PIN 34
|
||||
#define NORFLASH_CLK_PIN 36
|
||||
#define NORFLASH_MOSI_PIN 35
|
||||
#define NORFLASH_MISO_PIN 37
|
||||
#endif
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//SPI相关设定
|
||||
#define SPI_FREQUENCY 30*1000000 //SPI时钟频率,硬件SPI使用
|
||||
|
|
Loading…
Reference in New Issue