]> granicus.if.org Git - esp-idf/commit
bugfix(psram): improve spi cs timing settings for psram
authorchenjianqiang <chenjianqiang@espressif.com>
Tue, 30 Apr 2019 02:50:50 +0000 (10:50 +0800)
committerchenjianqiang <chenjianqiang@espressif.com>
Tue, 30 Apr 2019 02:50:50 +0000 (10:50 +0800)
commitce521210504c8cce98f3d5cb1304a23a3366349b
tree10b4c155a12998e64482b1644b6b73fda0b194a8
parentd39c0cc281e70cb2933a51ddeff5b6135581fa7e
bugfix(psram): improve spi cs timing settings for psram

1. remove redundant SPI clock settings, use rom functions to set clock.
2. remove redundant SPI cs setup and hold settings.
3. for old 32Mbit psram, cs hold time must only be 0.5T due to the special driving mode.(cs_setup = 0; cs_hold = 0)
4. for new 64Mbit psram, cs hold time is recommended to be 2.5T. (cs_setup = 1, cs_setup_time = 0;cs_hold = 1, cs_hold_time = 1)
components/esp32/spiram_psram.c