aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals
diff options
context:
space:
mode:
authorUri Shaked2025-02-11 10:45:54 +0200
committerUri Shaked2025-02-11 10:45:54 +0200
commit00a691f1c2e957d57d6954d5edf69016a37b38ec (patch)
treed6f901c06a663be25d27ea722376a6148fd69a3c /src/peripherals
parentci: remove codeql action (diff)
downloadavr8js-00a691f1c2e957d57d6954d5edf69016a37b38ec.tar.gz
avr8js-00a691f1c2e957d57d6954d5edf69016a37b38ec.tar.bz2
avr8js-00a691f1c2e957d57d6954d5edf69016a37b38ec.zip
test(timer): fix typo #160
close #160
Diffstat (limited to '')
-rw-r--r--src/peripherals/timer.spec.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripherals/timer.spec.ts b/src/peripherals/timer.spec.ts
index 893fe32..cb874c6 100644
--- a/src/peripherals/timer.spec.ts
+++ b/src/peripherals/timer.spec.ts
@@ -982,7 +982,7 @@ describe('timer', () => {
expect(cpu.dataView.getUint16(TCNT1, true)).toEqual(0x2234); // TCNT1 should increment
});
- it('should set OCF0A flag when timer equals OCRA (16 bit mode)', () => {
+ it('should set OCF1A flag when timer equals OCRA (16 bit mode)', () => {
const cpu = new CPU(new Uint16Array(0x1000));
new AVRTimer(cpu, timer1Config);
cpu.writeData(TCNT1H, 0x10); // TCNT1 <- 0x10ee
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.