From af5ac6d4687b8b3903fa300527655ff43be12526 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Wed, 7 Jul 2021 15:32:09 +0300 Subject: feat(gpio): external interrupt/PCINT support (#82) close #70, #84--- src/cpu/cpu.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cpu/cpu.ts') 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(); pc: u32 = 0; cycles: u32 = 0; -- cgit v1.2.3