File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 42
42
-d flash-start-address=0x0 \
43
43
-d flash-page-size=0x400 \
44
44
-d flash-size=0x40000 \
45
- -d empty-byte-value=0xFF
45
+ -d empty-byte-value=0xFF \
46
+ -d flash-sector-size=0x400
46
47
- name : Check
47
48
run : cd test && cargo check --target thumbv7em-none-eabi
48
49
- name : Clippy
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ type = "string"
37
37
prompt = " What is the target Flash page size in bytes?"
38
38
default = " 0x400"
39
39
40
+ [placeholders .flash-sector-size ]
41
+ type = " string"
42
+ prompt = " What is the target Flash sector size in bytes?"
43
+ default = " 0x400"
44
+
40
45
[placeholders .empty-byte-value ]
41
46
type = " string"
42
47
prompt = " What is the erased state of a byte in Flash?"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ algorithm!(Algorithm, {
14
14
page_size: { { flash-page-size} } ,
15
15
empty_value: 0xFF ,
16
16
sectors: [ {
17
- size: { { flash-size} } ,
17
+ size: { { flash-sector- size} } ,
18
18
address: { { flash-start-address} } ,
19
19
} ]
20
20
} ) ;
You can’t perform that action at this time.
0 commit comments