This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Pstorage question for storage different size

hi : I want storage different size in flash.How can i do it? I can write like this?

param.block_size  = 16;                   //Select block size of 16 bytes
param.block_count = 1;                   //Select 1 blocks, total of 16 bytes
param.cb          = example_cb_handler;   //Set the pstorage callback handler
retval = pstorage_register(&param, &handle);

param.block_size  = 256;                   //Select block size of 256 bytes
param.block_count = 1;                   //Select 1 blocks, total of 256 bytes
param.cb          = example_cb_handler;   //Set the pstorage callback handler
retval = pstorage_register(&param, &handle);
Related