aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUri Shaked2020-11-14 10:32:06 +0200
committerUri Shaked2020-11-14 10:32:06 +0200
commit348c553c8a05657f0476000079738945d1203973 (patch)
tree99034c8d4e1349583f8092af236e89f3a19512fe /src
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
Diffstat (limited to 'src')
-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;
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.