aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals
diff options
context:
space:
mode:
Diffstat (limited to 'src/peripherals')
-rw-r--r--src/peripherals/adc.ts3
-rw-r--r--src/peripherals/clock.spec.ts3
-rw-r--r--src/peripherals/clock.ts3
-rw-r--r--src/peripherals/eeprom.spec.ts3
-rw-r--r--src/peripherals/eeprom.ts3
-rw-r--r--src/peripherals/gpio.spec.ts3
-rw-r--r--src/peripherals/gpio.ts4
-rw-r--r--src/peripherals/spi.spec.ts3
-rw-r--r--src/peripherals/spi.ts3
-rw-r--r--src/peripherals/timer.spec.ts3
-rw-r--r--src/peripherals/timer.ts3
-rw-r--r--src/peripherals/twi.spec.ts3
-rw-r--r--src/peripherals/twi.ts3
-rw-r--r--src/peripherals/usart.spec.ts3
-rw-r--r--src/peripherals/usart.ts3
-rw-r--r--src/peripherals/usi.ts3
-rw-r--r--src/peripherals/watchdog.spec.ts3
-rw-r--r--src/peripherals/watchdog.ts3
18 files changed, 55 insertions, 0 deletions
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
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.