diff options
| author | Uri Shaked | 2025-02-11 10:31:57 +0200 |
|---|---|---|
| committer | Uri Shaked | 2025-02-11 10:31:57 +0200 |
| commit | 9ce22e49cf1110d0a8c1943877dc32e6568354cc (patch) | |
| tree | 6ad61569ee9a311b5ca8f330948b2136b2c04ed5 /src/peripherals/spi.ts | |
| parent | chore: replace ts-node with tsx (diff) | |
| download | avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.tar.gz avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.tar.bz2 avr8js-9ce22e49cf1110d0a8c1943877dc32e6568354cc.zip | |
chore(deps): upgrade prettier
reformat all code with the new prettier version
Diffstat (limited to 'src/peripherals/spi.ts')
| -rw-r--r-- | src/peripherals/spi.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/peripherals/spi.ts b/src/peripherals/spi.ts index 3167c07..824b13a 100644 --- a/src/peripherals/spi.ts +++ b/src/peripherals/spi.ts @@ -63,7 +63,11 @@ export class AVRSPI { enableMask: SPCR_SPIE, }; - constructor(private cpu: CPU, private config: SPIConfig, private freqHz: number) { + constructor( + private cpu: CPU, + private config: SPIConfig, + private freqHz: number, + ) { const { SPCR, SPSR, SPDR } = config; cpu.writeHooks[SPDR] = (value: u8) => { if (!(cpu.data[SPCR] & SPCR_SPE)) { |
