aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorUri Shaked2022-05-23 17:46:27 +0300
committerUri Shaked2022-05-23 17:46:27 +0300
commit881ebb6006eeedc799b408c99da2042ec6bc3d87 (patch)
tree1878aa68befd7cd8109a7f1a890afc9db2c8b028 /src/index.ts
parent0.19.0 (diff)
downloadavr8js-881ebb6006eeedc799b408c99da2042ec6bc3d87.tar.gz
avr8js-881ebb6006eeedc799b408c99da2042ec6bc3d87.tar.bz2
avr8js-881ebb6006eeedc799b408c99da2042ec6bc3d87.zip
refactor(demo): migrate to Vite
ditch parcel v1, and replace it with Vite. Vite is much faster and smaller, compared to parcel
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts53
1 files changed, 23 insertions, 30 deletions
diff --git a/src/index.ts b/src/index.ts
index 1429db5..1f4c2c7 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -4,37 +4,30 @@
* Copyright (C) 2019, 2020, Uri Shaked
*/
-export { CPU, CPUMemoryHook, CPUMemoryHooks } from './cpu/cpu';
+export { CPU } from './cpu/cpu';
+export type { CPUMemoryHook, CPUMemoryHooks } from './cpu/cpu';
export { avrInstruction } from './cpu/instruction';
export { avrInterrupt } from './cpu/interrupt';
-export {
+export { adcConfig, atmega328Channels, AVRADC } from './peripherals/adc';
+export type {
ADCConfig,
- adcConfig,
ADCMuxConfiguration,
ADCMuxInput,
ADCMuxInputType,
ADCReference,
- atmega328Channels,
- AVRADC,
} from './peripherals/adc';
-export {
- AVRTimer,
- AVRTimerConfig,
- timer0Config,
- timer1Config,
- timer2Config,
-} from './peripherals/timer';
+export { AVRClock, clockConfig } from './peripherals/clock';
+export type { AVRClockConfig } from './peripherals/clock';
+export { AVREEPROM, eepromConfig, EEPROMMemoryBackend } from './peripherals/eeprom';
+export type { EEPROMBackend, AVREEPROMConfig } from './peripherals/eeprom';
export {
AVRIOPort,
- GPIOListener,
- AVRPortConfig,
- AVRPinChangeInterrupt,
- AVRExternalInterrupt,
+ INT0,
+ INT1,
PCINT0,
PCINT1,
PCINT2,
- INT0,
- INT1,
+ PinState,
portAConfig,
portBConfig,
portCConfig,
@@ -46,18 +39,18 @@ export {
portJConfig,
portKConfig,
portLConfig,
- PinState,
} from './peripherals/gpio';
-export { AVRUSART, usart0Config } from './peripherals/usart';
-export {
- AVREEPROM,
- AVREEPROMConfig,
- EEPROMBackend,
- EEPROMMemoryBackend,
- eepromConfig,
-} from './peripherals/eeprom';
+export type {
+ AVRExternalInterrupt,
+ AVRPinChangeInterrupt,
+ AVRPortConfig,
+ GPIOListener,
+} from './peripherals/gpio';
+export { AVRSPI, spiConfig } from './peripherals/spi';
+export type { SPIConfig, SPITransferCallback } from './peripherals/spi';
+export { AVRTimer, timer0Config, timer1Config, timer2Config } from './peripherals/timer';
+export type { AVRTimerConfig } from './peripherals/timer';
export * from './peripherals/twi';
-export { spiConfig, SPIConfig, SPITransferCallback, AVRSPI } from './peripherals/spi';
-export { AVRClock, AVRClockConfig, clockConfig } from './peripherals/clock';
-export { AVRWatchdog, watchdogConfig, WatchdogConfig } from './peripherals/watchdog';
+export { AVRUSART, usart0Config } from './peripherals/usart';
export { AVRUSI } from './peripherals/usi';
+export { AVRWatchdog, watchdogConfig } from './peripherals/watchdog';