diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 8 | ||||
| -rw-r--r-- | 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; |
