Skip to content

Commit ce0b1ef

Browse files
project: Adding SPDX license identifier to headers.
1 parent d6d21b7 commit ce0b1ef

12 files changed

+49
-2
lines changed

src/__tests__/common.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
3+
* SPDX-License-Identifier: MIT
4+
*/
15
import { bytesToStr, strToBytes } from '../common';
26

37
describe(`strToBytes`, () => {

src/__tests__/micropython-appended.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
3+
* SPDX-License-Identifier: MIT
4+
*/
15
import MemoryMap from 'nrf-intel-hex';
26

37
import {

src/__tests__/micropython-fs-builder.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* the files to a micro:bit running MicroPython v1.0.1 using Mu.
44
* Because the filesystem limits depend on the MicroPython version, these will
55
* only work if combined with v1.0.1.
6+
*
7+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
8+
* SPDX-License-Identifier: MIT
69
*/
710
import * as fs from 'fs';
811

src/__tests__/micropython-fs-hex.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
3+
* SPDX-License-Identifier: MIT
4+
*/
15
import * as fs from 'fs';
26

37
import MemoryMap from 'nrf-intel-hex';

src/__tests__/uicr.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
3+
* SPDX-License-Identifier: MIT
4+
*/
15
import * as fs from 'fs';
26

37
import { getIntelHexUicrData } from '../uicr';

src/common.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/**
22
* General utilities.
3+
*
4+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
5+
* SPDX-License-Identifier: MIT
36
*/
4-
57
import { TextDecoderLite, TextEncoderLite } from 'text-encoder-lite';
68

79
/**

src/fs-interface.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* An interface to define multiple types of file systems.
3+
*
4+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
5+
* SPDX-License-Identifier: MIT
6+
*/
17
export interface FsInterface {
28
write(filename: string, content: string): void;
39
append(filename: string, content: string): void;

src/micropython-appended.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/**
22
* Module to add and remove Python scripts into and from a MicroPython hex.
3+
*
4+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
5+
* SPDX-License-Identifier: MIT
36
*/
47
import MemoryMap from 'nrf-intel-hex';
58

src/micropython-fs-builder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
* A file consists of a double linked list of chunks. The first chunk in a
2828
* file, indicated by the FileStart marker, contains the data end offset for
2929
* the last chunk and the file name.
30+
*
31+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
32+
* SPDX-License-Identifier: MIT
3033
*/
3134
import MemoryMap from 'nrf-intel-hex';
3235

src/micropython-fs-hex.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
/** Manage files in a MicroPython hex file. */
1+
/**
2+
* Manage files in a MicroPython hex file.
3+
*
4+
* (c) 2019 Micro:bit Educational Foundation and the microbit-fs contributors.
5+
* SPDX-License-Identifier: MIT
6+
*/
27
import { FsInterface } from './fs-interface';
38
import {
49
addIntelHexFiles,

0 commit comments

Comments
 (0)