aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Shaked2020-11-14 10:32:06 +0200
committerUri Shaked2020-11-14 10:32:06 +0200
commit348c553c8a05657f0476000079738945d1203973 (patch)
tree99034c8d4e1349583f8092af236e89f3a19512fe
parentdocs: add link to ATtiny85 simulation example (diff)
downloadavr8js-348c553c8a05657f0476000079738945d1203973.tar.gz
avr8js-348c553c8a05657f0476000079738945d1203973.tar.bz2
avr8js-348c553c8a05657f0476000079738945d1203973.zip
fix: AVRTimerConfig interface not exported #65
close #65
-rw-r--r--src/index.ts8
-rw-r--r--src/peripherals/timer.ts2
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;