mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 00:55:26 +00:00
add software SPI flash support (disabled by default) along with ultra-fast BK7231 software SPI and ability to store littlefs on that SPI , rel: https://www.elektroda.pl/rtvforum/topic4133583.html
* tt * tt * kk * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * nodelay * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * test * test * test * tt * Update our_lfs.c * Update our_lfs.c * Update our_lfs.c * Update our_lfs.c * Update our_lfs.c * t * Update drv_spi_flash.c * Update drv_spi_flash.c * ttt * Update drv_spi_flash.c * unrolll * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * Update drv_spi_flash.c * better wait for logic * Update drv_spi_flash.c * revert * Update drv_spi_flash.c * PLATFORM_BEKEN_NEW fix??? * faster?> * faster? * test memory * test2 * restore * coarse time test * test * restore * DISABLE
This commit is contained in:
@ -849,10 +849,17 @@ static int http_rest_post_lfs_file(http_request_t* request) {
|
||||
|
||||
do {
|
||||
loops++;
|
||||
#if ENABLE_LFS_SPI
|
||||
if (loops > 50) {
|
||||
loops = 0;
|
||||
rtos_delay_milliseconds(1);
|
||||
}
|
||||
#else
|
||||
if (loops > 10) {
|
||||
loops = 0;
|
||||
rtos_delay_milliseconds(10);
|
||||
}
|
||||
#endif
|
||||
//ADDLOG_DEBUG(LOG_FEATURE_API, "%d bytes to write", writelen);
|
||||
len = lfs_file_write(&lfs, file, writebuf, writelen);
|
||||
if (len < 0) {
|
||||
|
||||
Reference in New Issue
Block a user