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.clock.micros - this.systickLastZero) % (this.systickReload + 1);
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.clock.micros - this.systickLastZero) % (this.systickReload + 1);
110
+ const delta = (rp2040.core.cycles - this.systickLastZero) % (this.systickReload + 1);
111
111
  if (!delta) {
112
112
  return 0;
113
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rp2040js",
3
- "version": "0.17.9",
3
+ "version": "0.17.10",
4
4
  "description": "Raspberry Pi Pico (RP2040) Emulator",
5
5
  "repository": "https://github.com/wokwi/rp2040js",
6
6
  "keywords": [