aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorUri Shaked2021-07-07 15:32:09 +0300
committerGitHub2021-07-07 15:32:09 +0300
commitaf5ac6d4687b8b3903fa300527655ff43be12526 (patch)
tree52d885a00242ad05804e9356ceb83809fe76dc91 /src/cpu
parent0.15.3 (diff)
downloadavr8js-af5ac6d4687b8b3903fa300527655ff43be12526.tar.gz
avr8js-af5ac6d4687b8b3903fa300527655ff43be12526.tar.bz2
avr8js-af5ac6d4687b8b3903fa300527655ff43be12526.zip
feat(gpio): external interrupt/PCINT support (#82)
close #70, #84
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/cpu.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/cpu.ts b/src/cpu/cpu.ts
index 55b8a68..3cb4846 100644
--- a/src/cpu/cpu.ts
+++ b/src/cpu/cpu.ts
@@ -5,6 +5,7 @@
* Copyright (C) 2019, Uri Shaked
*/
+import { AVRIOPort } from '../peripherals/gpio';
import { u32, u16, u8, i16 } from '../types';
import { avrInterrupt } from './interrupt';
@@ -78,6 +79,7 @@ export class CPU implements ICPU {
// This lets the Timer Compare output override GPIO pins:
readonly gpioTimerHooks: CPUMemoryHooks = [];
+ readonly gpioPorts = new Set<AVRIOPort>();
pc: u32 = 0;
cycles: u32 = 0;