aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorUri Shaked2021-08-15 20:27:41 +0300
committerUri Shaked2021-08-15 20:27:41 +0300
commiteff7111c3b08e8bc9030edc284074dfa2e9b7171 (patch)
tree4909fdec5c6602c1da192c0ddd77a801890e941a /src/cpu
parentchore(deps): prettier 2.3.2 (diff)
downloadavr8js-eff7111c3b08e8bc9030edc284074dfa2e9b7171.tar.gz
avr8js-eff7111c3b08e8bc9030edc284074dfa2e9b7171.tar.bz2
avr8js-eff7111c3b08e8bc9030edc284074dfa2e9b7171.zip
feat(timer): external timer support #97
also refactor timer/GPIO interaction to be more generic. close #97
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/cpu.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/cpu.ts b/src/cpu/cpu.ts
index 3cb4846..096d9eb 100644
--- a/src/cpu/cpu.ts
+++ b/src/cpu/cpu.ts
@@ -77,9 +77,8 @@ export class CPU implements ICPU {
private readonly clockEventPool: AVRClockEventEntry[] = []; // helps avoid garbage collection
readonly pc22Bits = this.progBytes.length > 0x20000;
- // This lets the Timer Compare output override GPIO pins:
- readonly gpioTimerHooks: CPUMemoryHooks = [];
readonly gpioPorts = new Set<AVRIOPort>();
+ readonly gpioByPort: AVRIOPort[] = [];
pc: u32 = 0;
cycles: u32 = 0;