File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " flash-algorithm"
3
- version = " 0.2 .0"
3
+ version = " 0.3 .0"
4
4
edition = " 2021"
5
5
readme = " README.md"
6
6
keywords = [" no-std" , " embedded" , " flashing" ]
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ macro_rules! algorithm {
68
68
flash_address: $flash_address: expr,
69
69
flash_size: $flash_size: expr,
70
70
page_size: $page_size: expr,
71
+ empty_value: $empty_value: expr,
71
72
sectors: [ $( {
72
73
size: $size: expr,
73
74
address: $address: expr,
@@ -164,7 +165,7 @@ macro_rules! algorithm {
164
165
page_size: $page_size,
165
166
_reserved: 0 ,
166
167
// The empty state of a byte in flash.
167
- empty: 0xff ,
168
+ empty: $empty_value ,
168
169
// This value can be used to estimate the amount of time the flashing procedure takes worst case.
169
170
program_time_out: 1000 ,
170
171
// This value can be used to estimate the amount of time the erasing procedure takes worst case.
You can’t perform that action at this time.
0 commit comments