aboutsummaryrefslogtreecommitdiff
path: root/demo/src
diff options
context:
space:
mode:
authorUri Shaked2025-02-11 11:01:48 +0200
committerUri Shaked2025-02-11 11:01:48 +0200
commit1378808fa3befb80582e1836705e472755505b73 (patch)
treecdc39d81d7958a6f155bcf0fd02e903d64bf9e08 /demo/src
parenttest(timer): fix typo #160 (diff)
downloadavr8js-1378808fa3befb80582e1836705e472755505b73.tar.gz
avr8js-1378808fa3befb80582e1836705e472755505b73.tar.bz2
avr8js-1378808fa3befb80582e1836705e472755505b73.zip
docs: add copyright notice to source code
Diffstat (limited to 'demo/src')
-rw-r--r--demo/src/compile.ts3
-rw-r--r--demo/src/cpu-performance.ts3
-rw-r--r--demo/src/execute.ts3
-rw-r--r--demo/src/format-time.ts3
-rw-r--r--demo/src/index.ts3
-rw-r--r--demo/src/intelhex.ts3
-rw-r--r--demo/src/task-scheduler.ts3
7 files changed, 21 insertions, 0 deletions
diff --git a/demo/src/compile.ts b/demo/src/compile.ts
index fa846b1..fda2416 100644
--- a/demo/src/compile.ts
+++ b/demo/src/compile.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
const url = 'https://hexi.wokwi.com';
export interface HexiResult {
diff --git a/demo/src/cpu-performance.ts b/demo/src/cpu-performance.ts
index 1b1261e..88f9326 100644
--- a/demo/src/cpu-performance.ts
+++ b/demo/src/cpu-performance.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
import { CPU } from 'avr8js';
export class CPUPerformance {
diff --git a/demo/src/execute.ts b/demo/src/execute.ts
index 5d5c6b4..805ce9a 100644
--- a/demo/src/execute.ts
+++ b/demo/src/execute.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
import {
avrInstruction,
AVRTimer,
diff --git a/demo/src/format-time.ts b/demo/src/format-time.ts
index a82b3b0..2afdcbf 100644
--- a/demo/src/format-time.ts
+++ b/demo/src/format-time.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
function zeroPad(value: number, length: number) {
let sval = value.toString();
while (sval.length < length) {
diff --git a/demo/src/index.ts b/demo/src/index.ts
index a76d1fe..2d35403 100644
--- a/demo/src/index.ts
+++ b/demo/src/index.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
import '@wokwi/elements';
import { LEDElement } from '@wokwi/elements';
import { PinState } from 'avr8js';
diff --git a/demo/src/intelhex.ts b/demo/src/intelhex.ts
index ba5d6c8..446a5c1 100644
--- a/demo/src/intelhex.ts
+++ b/demo/src/intelhex.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
/**
* Minimal Intel HEX loader
* Part of AVR8js
diff --git a/demo/src/task-scheduler.ts b/demo/src/task-scheduler.ts
index 46413ef..d7e3c23 100644
--- a/demo/src/task-scheduler.ts
+++ b/demo/src/task-scheduler.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
export type IMicroTaskCallback = () => void;
export class MicroTaskScheduler {