diff options
| author | Uri Shaked | 2021-07-07 15:32:09 +0300 |
|---|---|---|
| committer | GitHub | 2021-07-07 15:32:09 +0300 |
| commit | af5ac6d4687b8b3903fa300527655ff43be12526 (patch) | |
| tree | 52d885a00242ad05804e9356ceb83809fe76dc91 /src/cpu | |
| parent | 0.15.3 (diff) | |
| download | avr8js-af5ac6d4687b8b3903fa300527655ff43be12526.tar.gz avr8js-af5ac6d4687b8b3903fa300527655ff43be12526.tar.bz2 avr8js-af5ac6d4687b8b3903fa300527655ff43be12526.zip | |
feat(gpio): external interrupt/PCINT support (#82)
close #70, #84
Diffstat (limited to '')
| -rw-r--r-- | src/cpu/cpu.ts | 2 |
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; |
