Skip to content

Commit 1b7cd61

Browse files
committed
Add licence headers to all source files
The licence header explains that the given file is part of this project, and expresses the copyright information and the licence the file is licensed under using SPDX headers to keep the header short. While we have a repo-global LICENSE file, having licence text directly in a source file makes it very clear for anyone who copies the file what the licence/copyright is.
1 parent 74d2f79 commit 1b7cd61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+424
-1
lines changed

Diff for: .github/workflows/publish.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
name: Publish Python Package
29

310
on:

Diff for: .github/workflows/run_tests.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
name: CI
29

310
on: [push, pull_request]

Diff for: LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright 2018-2022 by the micropython-esp32-ulp authors, see AUTHORS file
3+
Copyright 2018-2023 by the micropython-esp32-ulp authors, see AUTHORS file
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Diff for: demo.S

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
# comment-only line
29

310
.text

Diff for: demo.sh

+7
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
micropython -m esp32_ulp demo.S

Diff for: esp32_ulp/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
from .util import garbage_collect
29

310
from .preprocess import preprocess

Diff for: esp32_ulp/__main__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
import sys
29
from . import assemble_file
310

Diff for: esp32_ulp/assemble.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
ESP32 ULP Co-Processor Assembler
310
"""

Diff for: esp32_ulp/definesdb.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
import os
29
import btree
310
from .util import file_exists

Diff for: esp32_ulp/link.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
from uctypes import struct, addressof, LITTLE_ENDIAN, UINT16, UINT32
29

310

Diff for: esp32_ulp/nocomment.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
def remove_comments(s):
29
"""
310
Remove comments of these styles:

Diff for: esp32_ulp/opcodes.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
ESP32 ULP Co-Processor Instructions
310
"""

Diff for: esp32_ulp/opcodes_s2.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
ESP32 ULP Co-Processor Instructions
310
"""

Diff for: esp32_ulp/parse_to_db.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
import sys
29

310
from .preprocess import Preprocessor

Diff for: esp32_ulp/preprocess.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
from . import nocomment
29
from .util import split_tokens
310
from .definesdb import DefinesDB

Diff for: esp32_ulp/soc.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Address / Register definitions for the ESP32 SoC
310
"""

Diff for: esp32_ulp/soc_s2.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Address / Register definitions for the ESP32-S2 SoC
310
"""

Diff for: esp32_ulp/soc_s3.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Address / Register definitions for the ESP32-S3 SoC
310
"""

Diff for: esp32_ulp/util.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
DEBUG = False
29

310
import gc

Diff for: examples/blink.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Example for: ESP32
310

Diff for: examples/blink_s2.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Example for: ESP32-S2 and ESP32-S3
310

Diff for: examples/counter.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Example for: ESP32
310

Diff for: examples/counter_s2.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Example for: ESP32-S2 and ESP32-S3
310

Diff for: examples/readgpio.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Example for: ESP32
310

Diff for: examples/readgpio_s2.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Example for: ESP32-S2
310

Diff for: examples/readgpio_s3.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
"""
29
Example for: ESP32-S3
310

Diff for: setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
import re
29
from setuptools import setup
310
import sdist_upip

Diff for: tests/00_unit_tests.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
#
3+
# This file is part of the micropython-esp32-ulp project,
4+
# https://github.com/micropython/micropython-esp32-ulp
5+
#
6+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
7+
# SPDX-License-Identifier: MIT
28

39
# export PYTHONPATH=.:$PYTHONPATH
410

Diff for: tests/01_compat_tests.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
#
3+
# This file is part of the micropython-esp32-ulp project,
4+
# https://github.com/micropython/micropython-esp32-ulp
5+
#
6+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
7+
# SPDX-License-Identifier: MIT
28

39
# export PYTHONPATH=.:$PYTHONPATH
410

Diff for: tests/02_compat_rtc_tests.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
#
3+
# This file is part of the micropython-esp32-ulp project,
4+
# https://github.com/micropython/micropython-esp32-ulp
5+
#
6+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
7+
# SPDX-License-Identifier: MIT
28

39
# export PYTHONPATH=.:$PYTHONPATH
410

Diff for: tests/03_disassembler_tests.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
#
3+
# This file is part of the micropython-esp32-ulp project,
4+
# https://github.com/micropython/micropython-esp32-ulp
5+
#
6+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
7+
# SPDX-License-Identifier: MIT
28

39
set -e
410

Diff for: tests/assemble.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
from esp32_ulp.assemble import Assembler, TEXT, DATA, BSS, REL, ABS
29
from esp32_ulp.assemble import SymbolTable
310
from esp32_ulp.nocomment import remove_comments

Diff for: tests/compat/alu.S

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
.text
29

310
and r1, r2, r3

Diff for: tests/compat/expr.S

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
# common example of real world code using expressions
29
.set adc_channel, 6
310

Diff for: tests/compat/fixes.S

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
# This file tests various fixes to the assembler,
29
# to ensure the binary output matches that of binutils.
310
# a) support for left-aligned directives (e.g. .set without preceding whitespace)

Diff for: tests/compat/io.S

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#
2+
# This file is part of the micropython-esp32-ulp project,
3+
# https://github.com/micropython/micropython-esp32-ulp
4+
#
5+
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
6+
# SPDX-License-Identifier: MIT
7+
18
.text
29

310
reg_rd 0x3ff48000, 7, 0

0 commit comments

Comments
 (0)