Skip to content

Commit 222425d

Browse files
authored
Merge pull request #95 from wnienhaus/add_licence_headers
Add licence headers to all source files
2 parents 74d2f79 + 1b7cd61 commit 222425d

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

.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:

.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]

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

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

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

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

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

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
"""

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

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

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:

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
"""

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
"""

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

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

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
"""

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
"""

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
"""

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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)

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)