Skip to content

Commit 4b6d803

Browse files
committed
feat(ssi): IDR, SSI_VERSION_ID registers
1 parent 20b7a6f commit 4b6d803

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/peripherals/ssi.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const SSI_DR0 = 0x00000060;
77
const SSI_SR_TFNF_BITS = 0x00000002;
88
const SSI_SR_TFE_BITS = 0x00000004;
99
const SSI_SR_RFNE_BITS = 0x00000008;
10+
/** Identification register */
11+
const SSI_IDR = 0x00000058;
12+
const SSI_VERSION_ID = 0x0000005c;
1013

1114
const CMD_READ_STATUS = 0x05;
1215

@@ -21,6 +24,10 @@ export class RPSSI extends BasePeripheral implements Peripheral {
2124
return 0;
2225
case SSI_SR:
2326
return SSI_SR_TFE_BITS | SSI_SR_RFNE_BITS | SSI_SR_TFNF_BITS;
27+
case SSI_IDR:
28+
return 0x51535049;
29+
case SSI_VERSION_ID:
30+
return 0x3430312a;
2431
case SSI_DR0:
2532
return this.dr0;
2633
}

0 commit comments

Comments
 (0)