mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
Implement the MTD write callback when CONFIG_MTD_BYTE_WRITE is enabled, allowing unaligned byte writes without changing existing block operations. Reject ranges outside the physical device and return zero for valid empty writes without SPI traffic. Use the initialized SPI device ID, hold the bus lock across the request, and issue write-enable for each transfer. With CONFIG_RAMTRON_CHUNKING, split writes at the write-buffer boundaries of chunk-limited parts. Document the optional callback and its bounds and chunk behavior. Verified with mocked-SPI host tests, driver compilation with byte writes and chunking enabled/disabled, and a Conductor STM32H743BI hardware test covering single-byte and unaligned writes, surrounding-byte preservation, invalid ranges, and restoration of the original FRAM contents. Hardware coverage is limited to the installed 32 KiB part. Assisted-by: Codex:GPT-6 Signed-off-by: jsanchez-2g <jsanchez@2g-eng.com> |
||
|---|---|---|
| .. | ||
| _extensions | ||
| _static | ||
| _templates | ||
| about | ||
| applications | ||
| components | ||
| contributing | ||
| debugging | ||
| developing | ||
| faq | ||
| guides | ||
| implementation | ||
| introduction | ||
| logos | ||
| os | ||
| platforms | ||
| quickstart | ||
| reference | ||
| ReleaseNotes | ||
| standards | ||
| testing | ||
| .gitignore | ||
| conf.py | ||
| glossary.rst | ||
| index.rst | ||
| known-warnings.txt | ||
| legacy_README.md | ||
| make.bat | ||
| Makefile | ||
| Pipfile | ||
| Pipfile.lock | ||
| redirects.py | ||
| security.rst | ||
| substitutions.rst | ||