From 348c553c8a05657f0476000079738945d1203973 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 14 Nov 2020 10:32:06 +0200 Subject: fix: AVRTimerConfig interface not exported #65 close #65 --- src/index.ts | 8 +++++++- src/peripherals/timer.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0795ab3..d02718a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,13 @@ export { CPU, ICPU, CPUMemoryHook, CPUMemoryHooks } from './cpu/cpu'; export { avrInstruction } from './cpu/instruction'; export { avrInterrupt } from './cpu/interrupt'; -export { AVRTimer, timer0Config, timer1Config, timer2Config } from './peripherals/timer'; +export { + AVRTimer, + AVRTimerConfig, + timer0Config, + timer1Config, + timer2Config, +} from './peripherals/timer'; export { AVRIOPort, GPIOListener, diff --git a/src/peripherals/timer.ts b/src/peripherals/timer.ts index 5ba908e..5c211ba 100644 --- a/src/peripherals/timer.ts +++ b/src/peripherals/timer.ts @@ -43,7 +43,7 @@ interface TimerDividers { 7: number; } -interface AVRTimerConfig { +export interface AVRTimerConfig { bits: 8 | 16; captureInterrupt: u8; compAInterrupt: u8; -- cgit v1.2.3