Commit Graph

11 Commits

Author SHA1 Message Date
mculover666
4f5c747a63 board_perf:add support for kv and vfs on ch32v307 board 2022-06-06 20:33:33 +08:00
supowang
8253a953bd fix all board compile for v3.0
fix all board compile for v3.0
2021-08-11 16:30:15 +08:00
Arthur
cb36ebae84 kv gc bugfix
if a power down or crash happened during gc process,  kv_init will fail with NO_WRITEABLE_BLOK next time.
2021-08-03 12:19:19 +08:00
daishengdong
c90e31d90f fix return code of tos_kv_has_key when sanity check failed 2020-06-18 21:02:00 +08:00
daishengdong
9bedf2ea80 fix a bug of memory leak of kv
in tos_kv_has_key, if an item is found, should kv_item_free it later.
2020-06-18 20:57:17 +08:00
daishengdong
b13634de77 fix sytick drift after tickless wakeup from sleep or stop
1. make port_systick_reload the same as port_systick_config
2020-04-28 16:23:57 +08:00
daishengdong
2e8c8c19e6 fix some calloc bug
1. some calloc fix
2. fix some document error
3. refactor kv API, to be compatible with ota API
2020-04-24 11:58:42 +08:00
daishengdong
5c21ce702f add IAP sample project, mini program manual
see:
doc/20.In_Application_Programming_based_EVB_MX_Plus.md
2020-04-15 18:11:13 +08:00
daishengdong
c9556307df add tos_slist.h, rename tos.h to tos_k.h 2020-01-03 17:25:38 +08:00
daishengdong
c4c60c3722 fix a bug
consider this situation: no more fresh block, meantime an item with such a big size come in, and currently no block inuse has sufficient space to save this item, the code will run into the modified line, and KV_MGR_WORKSPACE will be set to KV_BLK_INVALID. this will cause no matter what size of an item wanna come in again, kv_blk_search_suitable just return KV_BLK_INVALID because "if (KV_MGR_WORKSPACE == KV_BLK_INVALID)"  is true.
2019-12-20 11:20:30 +08:00
daishengdong
febcf10911 add kv fs component
1. a true wear-leveling kv fs for norflash, especially optimize for some onchip norflash with "write once on one single write unit" like stm32l4, a true "no earse before write" flash algorithm.
2. an "as less as possible" gc strategy, do best to save norflash's life.
3. full "power down protection" support
4. see "examples" of kv, project in "TencentOS_tiny_EVB_MX_Plus", with onchip flash and qspiflash sample.
2019-12-19 16:08:42 +08:00