armink / FlashDB

An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库
Apache License 2.0
1.71k stars 399 forks source link

Support 128bit write granularity for kvdb #250

Closed tinic closed 9 months ago

tinic commented 9 months ago

The new stm32h5xx MCUs only support quad word (128bit) writes to flash. Tested with this driver:

https://github.com/tinic/lightkraken2/blob/main/support/fal_stm32h5xx.c

armink commented 9 months ago

Thx @tinic . Can you update the fdb_tsdb.c and fdb_cfg.h code.

https://github.com/armink/FlashDB/blob/b309810ff377d294109219e5c6bfe8aaca28d60b/src/fdb_tsdb.c#L28-L30

https://github.com/armink/FlashDB/blob/b309810ff377d294109219e5c6bfe8aaca28d60b/inc/fdb_cfg.h#L29-L32

armink commented 9 months ago

👍