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 528c057 commit 3dd7ee8Copy full SHA for 3dd7ee8
src/peripherals/timer.spec.ts
@@ -14,7 +14,7 @@ const INTS = 0x40054040;
14
describe('RPTimer', () => {
15
describe('Alarms', () => {
16
it('should set Alarm 1 to armed when writing to ALARM1 register', () => {
17
- const rp2040 = new RP2040();
+ const rp2040 = new RP2040(new MockClock());
18
rp2040.writeUint32(ALARM1, 0x1000);
19
expect(rp2040.readUint32(ARMED)).toEqual(0x2);
20
});
0 commit comments