rp2040js 0.17.1 → 0.17.3

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.
@@ -87,7 +87,7 @@ function irqIndex(irq, machineIndex) {
87
87
  return rel ? (irq & 0x4) | (((irq & 0x3) + machineIndex) & 0x3) : irq & 0x7;
88
88
  }
89
89
  const dreqRx0 = [
90
- dma_1.DREQChannel.DREQ_PIO1_RX0,
90
+ dma_1.DREQChannel.DREQ_PIO0_RX0,
91
91
  dma_1.DREQChannel.DREQ_PIO0_RX1,
92
92
  dma_1.DREQChannel.DREQ_PIO0_RX2,
93
93
  dma_1.DREQChannel.DREQ_PIO0_RX3,
@@ -96,8 +96,8 @@ class RPSPI extends peripheral_1.BasePeripheral {
96
96
  doTX() {
97
97
  if (!this.busy && !this.txFIFO.empty) {
98
98
  const value = this.txFIFO.pull();
99
- this.onTransmit(value);
100
99
  this.busy = true;
100
+ this.onTransmit(value);
101
101
  this.fifosUpdated();
102
102
  }
103
103
  }
@@ -84,7 +84,7 @@ function irqIndex(irq, machineIndex) {
84
84
  return rel ? (irq & 0x4) | (((irq & 0x3) + machineIndex) & 0x3) : irq & 0x7;
85
85
  }
86
86
  const dreqRx0 = [
87
- DREQChannel.DREQ_PIO1_RX0,
87
+ DREQChannel.DREQ_PIO0_RX0,
88
88
  DREQChannel.DREQ_PIO0_RX1,
89
89
  DREQChannel.DREQ_PIO0_RX2,
90
90
  DREQChannel.DREQ_PIO0_RX3,
@@ -93,8 +93,8 @@ export class RPSPI extends BasePeripheral {
93
93
  doTX() {
94
94
  if (!this.busy && !this.txFIFO.empty) {
95
95
  const value = this.txFIFO.pull();
96
- this.onTransmit(value);
97
96
  this.busy = true;
97
+ this.onTransmit(value);
98
98
  this.fifosUpdated();
99
99
  }
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rp2040js",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
4
4
  "description": "Raspberry Pi Pico (RP2040) Emulator",
5
5
  "repository": "https://github.com/wokwi/rp2040js",
6
6
  "keywords": [