We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b7a6f commit 4b6d803Copy full SHA for 4b6d803
src/peripherals/ssi.ts
@@ -7,6 +7,9 @@ const SSI_DR0 = 0x00000060;
7
const SSI_SR_TFNF_BITS = 0x00000002;
8
const SSI_SR_TFE_BITS = 0x00000004;
9
const SSI_SR_RFNE_BITS = 0x00000008;
10
+/** Identification register */
11
+const SSI_IDR = 0x00000058;
12
+const SSI_VERSION_ID = 0x0000005c;
13
14
const CMD_READ_STATUS = 0x05;
15
@@ -21,6 +24,10 @@ export class RPSSI extends BasePeripheral implements Peripheral {
21
24
return 0;
22
25
case SSI_SR:
23
26
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;
31
case SSI_DR0:
32
return this.dr0;
33
}
0 commit comments