rp2040js 0.17.9 → 0.17.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,7 +110,7 @@ class RPPPB extends peripheral_1.BasePeripheral {
|
|
|
110
110
|
return countFlagValue | (this.systickControl & 0x7);
|
|
111
111
|
}
|
|
112
112
|
case SYST_CVR: {
|
|
113
|
-
const delta = (rp2040.
|
|
113
|
+
const delta = (rp2040.core.cycles - this.systickLastZero) % (this.systickReload + 1);
|
|
114
114
|
if (!delta) {
|
|
115
115
|
return 0;
|
|
116
116
|
}
|
|
@@ -107,7 +107,7 @@ export class RPPPB extends BasePeripheral {
|
|
|
107
107
|
return countFlagValue | (this.systickControl & 0x7);
|
|
108
108
|
}
|
|
109
109
|
case SYST_CVR: {
|
|
110
|
-
const delta = (rp2040.
|
|
110
|
+
const delta = (rp2040.core.cycles - this.systickLastZero) % (this.systickReload + 1);
|
|
111
111
|
if (!delta) {
|
|
112
112
|
return 0;
|
|
113
113
|
}
|