modified: src/W25QXXArduino/w25qxx.h
parent
f8b55940ef
commit
f54da28f00
|
@ -31,28 +31,33 @@ extern uint16_t W25QXX_TYPE; //
|
|||
#define W25QXX_CS1 digitalWrite(NORFLASH_CS_PIN, HIGH)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//¶Ë¿Ú¶¨Òå
|
||||
#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 10
|
||||
#define NORFLASH_CLK_PIN 12
|
||||
#define NORFLASH_MOSI_PIN 11
|
||||
#define NORFLASH_MISO_PIN 13
|
||||
#endif
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//SPI相关设定
|
||||
#define SPI_FREQUENCY 30*1000000 //SPI时钟频率,硬件SPI使用
|
||||
// #define HARDWARE_SPI //使用硬件SPI
|
||||
#define SOFTWARE_SPI //使用软件SPI
|
||||
#define FLASH_TEST_ENABLE //使能测试
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//¶Ë¿Ú¶¨Òå
|
||||
#ifdef HARDWARE_SPI
|
||||
#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 10
|
||||
#define NORFLASH_CLK_PIN 12
|
||||
#define NORFLASH_MOSI_PIN 11
|
||||
#define NORFLASH_MISO_PIN 13
|
||||
#endif
|
||||
#endif
|
||||
#ifdef SOFTWARE_SPI
|
||||
#define NORFLASH_CS_PIN 10
|
||||
#define NORFLASH_CLK_PIN 12
|
||||
#define NORFLASH_MOSI_PIN 11
|
||||
#define NORFLASH_MISO_PIN 14
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//指令表
|
||||
|
|
Loading…
Reference in New Issue