fix some calloc bug
1. some calloc fix 2. fix some document error 3. refactor kv API, to be compatible with ota API
This commit is contained in:
@@ -42,10 +42,10 @@ void task(void *arg)
|
||||
#endif
|
||||
|
||||
#ifdef USING_ONCHIP_FLASH
|
||||
err = tos_kv_init(&stm32l4_norflash_onchip_drv, &stm32l4_norflash_onchip_prop);
|
||||
err = tos_kv_init(0x803d000, 0x803d000 + 2 * 2048, &stm32l4_norflash_onchip_drv, &stm32l4_norflash_onchip_prop);
|
||||
printf("kv init, rc: %d\n", err);
|
||||
#else
|
||||
err = tos_kv_init(&stm32l4_qspiflash_drv, &stm32l4_qspiflash_prop);
|
||||
err = tos_kv_init(0, 2 * 4096, &stm32l4_qspiflash_drv, &stm32l4_qspiflash_prop);
|
||||
printf("kv init, rc: %d\n", err);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user