Skip to content

Commit d1ac040

Browse files
Apply suggestions from code review
Fix two errors, and use Bits32, Bits16 as size enums Co-authored-by: Adam Greig <adam@adamgreig.com>
1 parent de41b8e commit d1ac040

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

peripherals/cordic/cordic_g4.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ CORDIC:
77
_read:
88
NotReady: [0, "Results from computation are not read"]
99
Ready: [1, "Results are ready, this flag will be automatically cleared once value is read"]
10-
_write:
11-
Clear: [0, "Clear the computation results"]
1210
ARGSIZE:
13-
Size32: [0, "Use 32 bit input values"]
14-
Size16: [1, "Use 16 bit input values"]
11+
Bits32: [0, "Use 32 bit input values"]
12+
Bits16: [1, "Use 16 bit input values"]
1513
RESSIZE:
16-
Size32: [0, "Use 32 bit output values"]
17-
Size16: [1, "Use 16 bit output values"]
14+
Bits32: [0, "Use 32 bit output values"]
15+
Bits16: [1, "Use 16 bit output values"]
1816
NARGS:
1917
Num1: [0, "Only single argument write is needed for next calculation"]
2018
Num2: [1, "Two argument writes need to be performed for next calculation"]
@@ -31,7 +29,7 @@ CORDIC:
3129
Disabled: [0, "Disable interrupt request generation"]
3230
Enabled: [1, "Enable intterrupt request generation"]
3331
PRECISION: [1, 15]
34-
SCALE: [0, 3]
32+
SCALE: [0, 7]
3533
FUNC:
3634
Cosine: [0, "Cosine funciton"]
3735
Sine: [1, "Sine function"]

0 commit comments

Comments
 (0)