82 Commits

Author SHA1 Message Date
Gordon Williams
a75f2a77a7 add ESPR_FS_PREPEND_PATH, other compile fixes 2025-09-12 11:48:23 +01:00
Gordon Williams
9bc16c4d24 update docs to keep version number the same format 2025-06-25 11:52:08 +01:00
Gordon Williams
9a0bff67b7 Fat FS: If can't allocate file, attempt defragmentation and try again 2025-06-02 13:38:06 +01:00
Gordon Williams
4589fbc0e7 Fat FS: Added r+ file open mode (and allow w+ to read) 2025-06-02 13:31:19 +01:00
Gordon Williams
2bdf05f910 ESP32: Remove FlashFS, adjust partitions to increase available Storage from 256kB to 896kB 2025-04-02 10:39:00 +01:00
Gordon Williams
adef722e14 Merge branch 'STM32F4LCD' into STM32F4LCD_oldfatfs 2024-12-06 09:08:12 +00:00
Gordon Williams
f8910b10fc Add fs.mkfs function to allow reformatting of media 2024-11-25 14:24:02 +00:00
Gordon Williams
6864224f9a Merge branch 'STM32F4LCD' into STM32F4LCD_oldfatfs 2024-09-30 14:21:43 +01:00
Richard Blakesley
d9d0e1c0a7 Don't throw an error in jsfsInit() if it fails (e.g. due to no SD card) - just return false 2024-09-28 21:50:14 +02:00
Gordon Williams
87b1871a37 Fix call of SD_WriteMultiBlocks, and reduce write block size to 512b
as we were seeing DISK_ERR write errors (unsure of why)
2024-09-20 15:38:44 +01:00
Gordon Williams
b9222ed3a2 Revert "Upgrade FatFs library from R0.10c to R0.15"
This reverts commit 9f2eb167ce7ae10ed3a7c25c5e71e95b21e0d997.
2024-09-19 15:57:03 +01:00
Gordon Williams
6495ec0758 Add ESPR_FS_LARGE_WRITE_BUFFER to allow faster SD card writes 2024-09-18 12:09:09 +01:00
Richard Blakesley
9f2eb167ce Upgrade FatFs library from R0.10c to R0.15 2024-08-05 00:21:17 +02:00
Richard Blakesley
d131dd29fc jsfsInit(): wait a bit after enabling SD card power (if it was turned off) 2024-08-04 23:41:12 +02:00
Richard Blakesley
f03dd96a47 Add optional power supply enable pin for SD card 2024-07-23 14:41:57 +02:00
Gordon Williams
d82f826756 attempt to fix all the broken jsDebug messages 2024-05-15 13:36:08 +01:00
Gordon Williams
1341bceb21 Move commonly used sequences of function calls into functions (eg jsvRemoveChild,jsvUnLock -> jsvRemoveChildAndUnLock) - saves ~200b 2024-02-02 14:16:14 +00:00
Gordon Williams
f6894cd54c Remove createChild argument from jsvFindChildFromString, add jsvFindOrAddChildFromString instead 2023-10-06 17:03:59 +01:00
Gordon Williams
4327ebd34e Tidying up error messages (no trailing '.' or '\n'), making almost-similar error messages the same
Used the following to try and find issues:

find . -name "*.c" | xargs -I{} grep -h jsExceptionHere {} | sed -e "s/^[^\"]*\"/\"/" | sort | uniq -c
2023-10-06 10:47:58 +01:00
Gordon Williams
9b30f17227 Added jsvObjectGetChildIfExists to avoid the jsvObjectGetChild(... ,0) case - saves ~300b of flash space 2023-04-25 10:59:34 +01:00
Rob Pilling
9d13de0122 Add PipeOptions to pipe() typescript definitions 2023-04-19 08:21:08 +01:00
Rob Pilling
953f33d683 Update docs with [optional] (for typescript) 2023-02-08 22:48:30 +00:00
qucchia
c5bb94bf7a Limit documentation comments to 80 characters (#2244) 2022-07-27 15:32:19 +02:00
qucchia
ff3fc6dcdf Fix minor typos 2022-07-22 11:48:00 +02:00
Gordon Williams
872ba947ce handle case where 'undefined' is passed as an argument to FS.write 2021-09-23 11:58:47 +01:00
MaBecker
bbc372620c esp32_improvements
- add FLASH_BAUD
- fix erase_flash
- switch jsWarn()  to jsDevInfo()
- keep jsWarn()/ jsError() for not implemented functions
- switch jsError() to jsExceptionHere() if helpfull
2020-07-13 17:52:38 +02:00
Gordon Williams
80db15bd61 add low memory warning if file allocation fails 2018-11-13 13:10:36 +00:00
Gordon Williams
d71c82c012 fix #1230 2018-04-10 08:36:03 +01:00
Gordon Williams
1e23aa6553 remove hidden char from vars that are already in hiddenRoot 2018-03-09 10:54:09 +00:00
Gordon Williams
07ae7710e3 updated filesystem docs 2018-01-29 15:43:10 +00:00
Gordon Williams
2b08fe86af fix warnings 2017-12-14 13:03:26 +00:00
Gordon Williams
1068563563 Increase default internal SD card bitrate to 4MHz (from 100k) 2017-12-13 12:43:33 +00:00
Gordon Williams
fe2fe0e2d8 Filesystem API now uses flat strings (avoiding the 512 byte copy for each call) 2017-12-13 12:20:00 +00:00
Gordon Williams
26240e3909 Add E.setFlags({unsyncFiles:1} which doesn't sync the file to the SD card after each write - it's *much* faster 2017-12-13 11:59:13 +00:00
Gordon Williams
aa09ad4f97 jsvNewIterator now has an option to iterate over sparse arrays as if they weren't sparse
Fixed some built-in functions that misbehaved when given sparse arrays
2017-11-24 12:47:43 +00:00
Gordon Williams
735c014659 Internal: Added initialiser argument to jsvNewStringOfLength
Internal: Added jsvObjectSetChildVar/jsvObjectSetChildVar/jsvObjectSetChildVar
            Internal: Fix jsvCopy if given a NAME_INT/etc
            Added ES6's Object.assign
2017-08-31 16:42:31 +01:00
wilberforce
6fc95d1e7f Fat FS: closedir after readdir, FS errors should be catchable (#1164), fs.statSync (#1163) 2017-05-11 12:37:55 +01:00
Gordon Williams
38cb9eab9f Add Array.indexOf fromIndex support (fix #162) 2017-05-05 13:46:58 +01:00
wilberforce
897524388e Merge branch 'master' into ESP32 2017-04-26 15:13:34 +12:00
Gordon Williams
8ec31cff7a fix broken formatting for code 2017-04-24 11:48:27 +01:00
wilberforce
0fb9ed1e21 suppress warnings, FatFS docs, suppress logging 2017-04-22 11:17:45 +12:00
Gordon Williams
7097e156f0 remove un-needed ifdef that was overwriting docs for one about ESP32 (#1145) 2017-04-19 13:26:46 +01:00
wilberforce
5f08a95cb7 Fix File.read so that end of file triggers pipe.end event 2017-04-11 23:16:24 +12:00
wilberforce
6ef6ab4028 get ESP8266 compiling 2017-03-23 15:45:05 +13:00
wilberforce
d93ea2ad6f Add fs.mkdir, E.flashFatFS({format:true}); 2017-03-23 13:50:56 +13:00
wilberforce
a167bd3eeb add build type FLASHFS 2017-03-23 01:05:20 +13:00
wilberforce
6f7dbbea39 clean up functions, add auto format 2017-03-22 17:43:39 +13:00
wilberforce
1b8e57aba7 working read of flash fat filesystem 2017-03-22 01:55:03 +13:00
wilberforce
9541573f58 add more debugging - still crashes on read 2017-03-21 22:13:10 +13:00
wilberforce
0ce596887b #ifdefs 2017-03-21 16:29:57 +13:00