diff options
| author | Uri Shaked | 2025-02-11 11:01:48 +0200 |
|---|---|---|
| committer | Uri Shaked | 2025-02-11 11:01:48 +0200 |
| commit | 1378808fa3befb80582e1836705e472755505b73 (patch) | |
| tree | cdc39d81d7958a6f155bcf0fd02e903d64bf9e08 /src | |
| parent | test(timer): fix typo #160 (diff) | |
| download | avr8js-1378808fa3befb80582e1836705e472755505b73.tar.gz avr8js-1378808fa3befb80582e1836705e472755505b73.tar.bz2 avr8js-1378808fa3befb80582e1836705e472755505b73.zip | |
docs: add copyright notice to source code
Diffstat (limited to '')
| -rw-r--r-- | src/cpu/cpu.ts | 3 | ||||
| -rw-r--r-- | src/cpu/instruction.spec.ts | 5 | ||||
| -rw-r--r-- | src/cpu/instruction.ts | 3 | ||||
| -rw-r--r-- | src/cpu/interrupt.spec.ts | 3 | ||||
| -rw-r--r-- | src/cpu/interrupt.ts | 3 | ||||
| -rw-r--r-- | src/index.ts | 7 | ||||
| -rw-r--r-- | src/peripherals/adc.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/clock.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/clock.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/eeprom.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/eeprom.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/gpio.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/gpio.ts | 4 | ||||
| -rw-r--r-- | src/peripherals/spi.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/spi.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/timer.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/timer.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/twi.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/twi.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/usart.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/usart.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/usi.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/watchdog.spec.ts | 3 | ||||
| -rw-r--r-- | src/peripherals/watchdog.ts | 3 | ||||
| -rw-r--r-- | src/types.ts | 3 | ||||
| -rw-r--r-- | src/utils/assembler.spec.ts | 3 | ||||
| -rw-r--r-- | src/utils/test-utils.ts | 3 |
27 files changed, 82 insertions, 6 deletions
diff --git a/src/cpu/cpu.ts b/src/cpu/cpu.ts index cd9e3e4..62ff40a 100644 --- a/src/cpu/cpu.ts +++ b/src/cpu/cpu.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR 8 CPU data structures * Part of AVR8js diff --git a/src/cpu/instruction.spec.ts b/src/cpu/instruction.spec.ts index cf3e547..aa01876 100644 --- a/src/cpu/instruction.spec.ts +++ b/src/cpu/instruction.spec.ts @@ -1,7 +1,10 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { CPU } from './cpu'; import { avrInstruction } from './instruction'; import { assemble } from '../utils/assembler'; -import { describe, it, expect, vi } from 'vitest'; +import { describe, it, expect, vi, beforeEach } from 'vitest'; const r0 = 0; const r1 = 1; diff --git a/src/cpu/instruction.ts b/src/cpu/instruction.ts index d29bfb8..d815733 100644 --- a/src/cpu/instruction.ts +++ b/src/cpu/instruction.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR-8 Instruction Simulation * Part of AVR8js diff --git a/src/cpu/interrupt.spec.ts b/src/cpu/interrupt.spec.ts index 944dbb9..fbf2ebe 100644 --- a/src/cpu/interrupt.spec.ts +++ b/src/cpu/interrupt.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it } from 'vitest'; import { CPU } from './cpu'; import { avrInterrupt } from './interrupt'; diff --git a/src/cpu/interrupt.ts b/src/cpu/interrupt.ts index 2e4ceb9..73b56ee 100644 --- a/src/cpu/interrupt.ts +++ b/src/cpu/interrupt.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR-8 Interrupt Handling * Part of AVR8js diff --git a/src/index.ts b/src/index.ts index e529bb6..51ca120 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,5 @@ -/** - * AVR8js - * - * Copyright (C) 2019, 2020, Uri Shaked - */ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors export { CPU } from './cpu/cpu'; export type { CPUMemoryHook, CPUMemoryHooks } from './cpu/cpu'; diff --git a/src/peripherals/adc.ts b/src/peripherals/adc.ts index 16ccdba..a601b09 100644 --- a/src/peripherals/adc.ts +++ b/src/peripherals/adc.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR-8 ADC * Part of AVR8js diff --git a/src/peripherals/clock.spec.ts b/src/peripherals/clock.spec.ts index cb45a14..091dfe5 100644 --- a/src/peripherals/clock.spec.ts +++ b/src/peripherals/clock.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it } from 'vitest'; import { CPU } from '../cpu/cpu'; import { AVRClock, clockConfig } from './clock'; diff --git a/src/peripherals/clock.ts b/src/peripherals/clock.ts index bf49ac9..05afda1 100644 --- a/src/peripherals/clock.ts +++ b/src/peripherals/clock.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR8 Clock * Part of AVR8js diff --git a/src/peripherals/eeprom.spec.ts b/src/peripherals/eeprom.spec.ts index a9cab9b..2b97a39 100644 --- a/src/peripherals/eeprom.spec.ts +++ b/src/peripherals/eeprom.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it } from 'vitest'; import { CPU } from '../cpu/cpu'; import { asmProgram, TestProgramRunner } from '../utils/test-utils'; diff --git a/src/peripherals/eeprom.ts b/src/peripherals/eeprom.ts index 98c2cc6..186bdcc 100644 --- a/src/peripherals/eeprom.ts +++ b/src/peripherals/eeprom.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { AVRInterruptConfig, CPU } from '../cpu/cpu'; import { u16, u32, u8 } from '../types'; diff --git a/src/peripherals/gpio.spec.ts b/src/peripherals/gpio.spec.ts index 046f196..40d4660 100644 --- a/src/peripherals/gpio.spec.ts +++ b/src/peripherals/gpio.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { CPU } from '../cpu/cpu'; import { asmProgram, TestProgramRunner } from '../utils/test-utils'; import { AVRIOPort, portBConfig, PinState, portDConfig, PinOverrideMode } from './gpio'; diff --git a/src/peripherals/gpio.ts b/src/peripherals/gpio.ts index 92435b9..69db9b1 100644 --- a/src/peripherals/gpio.ts +++ b/src/peripherals/gpio.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR-8 GPIO Port implementation * Part of AVR8js @@ -5,6 +8,7 @@ * * Copyright (C) 2019-2023 Uri Shaked */ + import { AVRInterruptConfig, CPU } from '../cpu/cpu'; import { u8 } from '../types'; diff --git a/src/peripherals/spi.spec.ts b/src/peripherals/spi.spec.ts index 72884c5..582770a 100644 --- a/src/peripherals/spi.spec.ts +++ b/src/peripherals/spi.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it, vi } from 'vitest'; import { CPU } from '../cpu/cpu'; import { asmProgram, TestProgramRunner } from '../utils/test-utils'; diff --git a/src/peripherals/spi.ts b/src/peripherals/spi.ts index 824b13a..b6d414e 100644 --- a/src/peripherals/spi.ts +++ b/src/peripherals/spi.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { AVRInterruptConfig, CPU } from '../cpu/cpu'; import { u8 } from '../types'; diff --git a/src/peripherals/timer.spec.ts b/src/peripherals/timer.spec.ts index cb874c6..6af8215 100644 --- a/src/peripherals/timer.spec.ts +++ b/src/peripherals/timer.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it, vi } from 'vitest'; import { CPU } from '../cpu/cpu'; import { asmProgram, TestProgramRunner } from '../utils/test-utils'; diff --git a/src/peripherals/timer.ts b/src/peripherals/timer.ts index dfbba35..0c18071 100644 --- a/src/peripherals/timer.ts +++ b/src/peripherals/timer.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR-8 Timers * Part of AVR8js diff --git a/src/peripherals/twi.spec.ts b/src/peripherals/twi.spec.ts index 5ddace5..49d06e5 100644 --- a/src/peripherals/twi.spec.ts +++ b/src/peripherals/twi.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it, vi } from 'vitest'; import { CPU } from '../cpu/cpu'; import { asmProgram, TestProgramRunner } from '../utils/test-utils'; diff --git a/src/peripherals/twi.ts b/src/peripherals/twi.ts index 3d0275c..654da33 100644 --- a/src/peripherals/twi.ts +++ b/src/peripherals/twi.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { AVRInterruptConfig, CPU } from '../cpu/cpu'; import { u8 } from '../types'; diff --git a/src/peripherals/usart.spec.ts b/src/peripherals/usart.spec.ts index fcbeec1..eb5cbe1 100644 --- a/src/peripherals/usart.spec.ts +++ b/src/peripherals/usart.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it, vi } from 'vitest'; import { CPU } from '../cpu/cpu'; import { AVRUSART, usart0Config } from './usart'; diff --git a/src/peripherals/usart.ts b/src/peripherals/usart.ts index 9babe16..c64ec6f 100644 --- a/src/peripherals/usart.ts +++ b/src/peripherals/usart.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR-8 USART Peripheral * Part of AVR8js diff --git a/src/peripherals/usi.ts b/src/peripherals/usi.ts index c9e09e7..928e24a 100644 --- a/src/peripherals/usi.ts +++ b/src/peripherals/usi.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { AVRInterruptConfig, CPU } from '../cpu/cpu'; import { AVRIOPort } from './gpio'; diff --git a/src/peripherals/watchdog.spec.ts b/src/peripherals/watchdog.spec.ts index df72148..2cc748d 100644 --- a/src/peripherals/watchdog.spec.ts +++ b/src/peripherals/watchdog.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR8 Watchdog Timer Test Suite * Part of AVR8js diff --git a/src/peripherals/watchdog.ts b/src/peripherals/watchdog.ts index 979151f..c4803ed 100644 --- a/src/peripherals/watchdog.ts +++ b/src/peripherals/watchdog.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + /** * AVR8 Watchdog Timer * Part of AVR8js diff --git a/src/types.ts b/src/types.ts index 850cd6b..1139251 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + export type u8 = number; export type u16 = number; export type i16 = number; diff --git a/src/utils/assembler.spec.ts b/src/utils/assembler.spec.ts index 9f66009..26aa7c5 100644 --- a/src/utils/assembler.spec.ts +++ b/src/utils/assembler.spec.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { describe, expect, it } from 'vitest'; import { assemble } from './assembler'; diff --git a/src/utils/test-utils.ts b/src/utils/test-utils.ts index 90558d5..8083790 100644 --- a/src/utils/test-utils.ts +++ b/src/utils/test-utils.ts @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) Uri Shaked and contributors + import { CPU } from '../cpu/cpu'; import { assemble } from './assembler'; import { avrInstruction } from '../cpu/instruction'; |
