aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/gpio.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/peripherals/gpio.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/peripherals/gpio.ts b/src/peripherals/gpio.ts
index 0da9d50..92435b9 100644
--- a/src/peripherals/gpio.ts
+++ b/src/peripherals/gpio.ts
@@ -219,7 +219,10 @@ export class AVRIOPort {
private lastPin: u8 = 0;
openCollector: u8 = 0;
- constructor(private cpu: CPU, readonly portConfig: Readonly<AVRPortConfig>) {
+ constructor(
+ private cpu: CPU,
+ readonly portConfig: Readonly<AVRPortConfig>,
+ ) {
cpu.gpioPorts.add(this);
cpu.gpioByPort[portConfig.PORT] = this;
@@ -259,7 +262,7 @@ export class AVRIOPort {
enableRegister: externalConfig.EIMSK,
enableMask: 1 << externalConfig.index,
}
- : null
+ : null,
);
const EICR = new Set(externalInterrupts.map((item) => item?.EICR));
for (const EICRx of EICR) {