Skip to content

Commit

Permalink
all: update copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech authored and laurensvalk committed Apr 22, 2020
1 parent abdcfca commit 90ca654
Show file tree
Hide file tree
Showing 154 changed files with 161 additions and 162 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2018-2020 The Pybricks Authors
Copyright (c) 2018 Laurens Valk
Copyright (c) 2018 David Lechner

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion bricks/cityhub/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2019 David Lechner
# Copyright (c) 2019-2020 The Pybricks Authors

PBIO_PLATFORM = city_hub
PB_MCU_SERIES = F0
Expand Down
2 changes: 1 addition & 1 deletion bricks/cityhub/city_hub.ld
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2013, 2014 Damien P. George */
/* Copyright (c) 2018 David Lechner */
/* Copyright (c) 2018-2020 The Pybricks Authors */

/*
GNU linker script for LEGO Powered Up City Hub
Expand Down
2 changes: 1 addition & 1 deletion bricks/cityhub/mphalport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include <contiki.h>

Expand Down
2 changes: 1 addition & 1 deletion bricks/cityhub/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#define PBIO_CONFIG_IOPORT_LPF2 (1)

Expand Down
2 changes: 1 addition & 1 deletion bricks/cplushub/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2019 David Lechner
# Copyright (c) 2019-2020 The Pybricks Authors

PBIO_PLATFORM = cplus_hub
PB_MCU_SERIES = L4
Expand Down
2 changes: 1 addition & 1 deletion bricks/cplushub/cplus_hub.ld
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2013, 2014 Damien P. George */
/* Copyright (c) 2019 David Lechner */
/* Copyright (c) 2019-2020 The Pybricks Authors */

/*
GNU linker script for LEGO TECHNIC Control+ Hub
Expand Down
2 changes: 1 addition & 1 deletion bricks/cplushub/mphalport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include <contiki.h>

Expand Down
2 changes: 1 addition & 1 deletion bricks/cplushub/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#define PBIO_CONFIG_IOPORT_LPF2 (1)

Expand Down
2 changes: 1 addition & 1 deletion bricks/debug/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2019 David Lechner
# Copyright (c) 2019-2020 The Pybricks Authors

DEBUG ?= 1

Expand Down
2 changes: 1 addition & 1 deletion bricks/debug/mpconfigport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#include "stm32f446xx.h"

Expand Down
2 changes: 1 addition & 1 deletion bricks/debug/mphalport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include <contiki.h>

Expand Down
2 changes: 1 addition & 1 deletion bricks/debug/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#define PBIO_CONFIG_UARTDEV (1)
#define PBIO_CONFIG_UARTDEV_NUM_DEV (1)
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/modbluetooth.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 David Lechner
// Copyright (c) 2020 The Pybricks Authors

#include <glib.h>
#include <gio/gio.h>
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/modules/pybricks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2018-2020 The Pybricks Authors
# Copyright (c) 2018-2019 Laurens Valk
# Copyright (c) 2018-2019 David Lechner
2 changes: 1 addition & 1 deletion bricks/ev3dev/modules/pybricks/bluetooth.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2020 David Lechner
# Copyright (C) 2020 The Pybricks Authors

"""
:class:`RFCOMMServer` can be used to communicate with other Bluetooth RFCOMM
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/modules/pybricks/display.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2018-2020 The Pybricks Authors
# Copyright (c) 2018-2019 Laurens Valk
# Copyright (c) 2018-2019 David Lechner
# Copyright (c) 2019 LEGO System A/S

"""Pybricks module for showing text or images on a display (e.g. EV3 screen)"""
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/modules/pybricks/messaging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2020 David Lechner
# Copyright (C) 2020 The Pybricks Authors

from _thread import allocate_lock
from uerrno import ECONNRESET
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/modules/pybricks/speaker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2018-2020 The Pybricks Authors
# Copyright (c) 2018-2019 Laurens Valk
# Copyright (c) 2018-2019 David Lechner
# Copyright (c) 2019 LEGO System A/S

"""Pybricks sound/speaker module for playing sounds (e.g. EV3 speaker, Bluetooth speaker, or IDE speaker)"""
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/modusignal.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 David Lechner
// Copyright (c) 2020 The Pybricks Authors

// This is a subset of the standard CPython signal module.

Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/pb_ev3dev_types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#ifndef PYBRICKS_INCLUDED_BRICKS_EV3DEV_TYPES_H
#define PYBRICKS_INCLUDED_BRICKS_EV3DEV_TYPES_H
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/pb_type_ev3dev_font.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier
// Copyright (c) 2019 David Lechner
// Copyright (c) 2013, 2014 Damien P. George
// Copyright (c) 2019-2020 The Pybricks Authors

// class Screen

Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/pb_type_ev3dev_image.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier
// Copyright (c) 2019 David Lechner
// Copyright (c) 2013, 2014 Damien P. George
// Copyright (c) 2019-2020 The Pybricks Authors

// class Image
//
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/pb_type_ev3dev_speaker.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier
// Copyright (c) 2018-2020 The Pybricks Authors
// Copyright (c) 2018-2019 Laurens Valk
// Copyright (c) 2019 David Lechner

// class Speaker
//
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/pbinit.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
// Copyright (c) 2018 Laurens Valk
// Copyright (c) 2020 David Lechner

#include <pthread.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion bricks/ev3dev/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#define PBIO_CONFIG_EV3_INPUT_DEVICE (1)

Expand Down
2 changes: 1 addition & 1 deletion bricks/movehub/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2019 David Lechner
# Copyright (c) 2019-2020 The Pybricks Authors

PBIO_PLATFORM = move_hub
PB_MCU_SERIES = F0
Expand Down
2 changes: 1 addition & 1 deletion bricks/movehub/accel.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include <stdbool.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion bricks/movehub/accel.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#ifndef _PYBRICKS_MOVEHUB_ACCEL_H_
#define _PYBRICKS_MOVEHUB_ACCEL_H_
Expand Down
2 changes: 1 addition & 1 deletion bricks/movehub/move_hub.ld
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2013, 2014 Damien P. George */
/* Copyright (c) 2018 David Lechner */
/* Copyright (c) 2018-2020 The Pybricks Authors */

/*
GNU linker script for LEGO BOOST Move Hub
Expand Down
2 changes: 1 addition & 1 deletion bricks/movehub/mphalport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include <contiki.h>

Expand Down
2 changes: 1 addition & 1 deletion bricks/movehub/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#define PBIO_CONFIG_IOPORT_LPF2 (1)

Expand Down
2 changes: 1 addition & 1 deletion bricks/nxt/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2013, 2014 Damien P. George
# Copyright (C) 2019 David Lechner <[email protected]>
# Copyright (C) 2019-2020 The Pybricks Authors

PBIO_PLATFORM = nxt

Expand Down
2 changes: 1 addition & 1 deletion bricks/nxt/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2019 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors
// Copyright (c) 2019 Laurens Valk

#include <stdint.h>
Expand Down
2 changes: 1 addition & 1 deletion bricks/nxt/mphalport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include <contiki.h>

Expand Down
2 changes: 1 addition & 1 deletion bricks/nxt/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#define PBIO_CONFIG_DCMOTOR (1)

Expand Down
2 changes: 1 addition & 1 deletion bricks/primehub/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2019 David Lechner
# Copyright (c) 2019-2020 The Pybricks Authors

PBIO_PLATFORM = prime_hub
PB_MCU_SERIES = F4
Expand Down
2 changes: 1 addition & 1 deletion bricks/primehub/mpconfigport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#include "stm32f413xx.h"

Expand Down
2 changes: 1 addition & 1 deletion bricks/primehub/mphalport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include "sys/clock.h"

Expand Down
2 changes: 1 addition & 1 deletion bricks/primehub/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#define PBIO_CONFIG_IOPORT_LPF2 (1)

Expand Down
2 changes: 1 addition & 1 deletion bricks/primehub/prime_hub.ld
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2013, 2014 Damien P. George */
/* Copyright (c) 2018-2019 David Lechner */
/* Copyright (c) 2018-2020 The Pybricks Authors */

/*
GNU linker script for LEGO SPIKE Prime hub
Expand Down
2 changes: 1 addition & 1 deletion bricks/pybricks_config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

// Common config for all Pybricks hubs/bricks

Expand Down
4 changes: 2 additions & 2 deletions bricks/stm32/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2019 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors
// Copyright (c) 2019 Laurens Valk

#include <stdint.h>
Expand Down Expand Up @@ -164,7 +164,7 @@ static uint32_t get_user_program(uint8_t **buf, bool *free_reader) {
*buf = (uint8_t *)(_mpy_size + 1);
return *_mpy_size;
}

// Handle other errors
if (err != PBIO_SUCCESS) {
*buf = NULL;
Expand Down
2 changes: 1 addition & 1 deletion bricks/stm32/pbdevice.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019-2020 The Pybricks Authors
// Copyright (c) 2019 Laurens Valk
// Copyright (c) 2019 David Lechner

#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion bricks/stm32/stm32.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2013, 2014 Damien P. George
# Copyright (C) 2019 David Lechner <[email protected]>
# Copyright (C) 2019-2020 The Pybricks Authors

# This file is shared by all STM32-based Pybricks ports
# Other ports should not use this file
Expand Down
2 changes: 1 addition & 1 deletion bricks/stm32/uart_core.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018 David Lechner
// Copyright (c) 2018-2020 The Pybricks Authors

#include <pbsys/sys.h>

Expand Down
2 changes: 1 addition & 1 deletion extmod/moddebug.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#include "py/mpconfig.h"

Expand Down
2 changes: 1 addition & 1 deletion extmod/modexperimental.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 David Lechner
// Copyright (c) 2020 The Pybricks Authors

// C implementation of Pybricks experimental module.
// Also see pybricks/experimental.py.
Expand Down
2 changes: 1 addition & 1 deletion extmod/modmedia_ev3dev.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

#include "py/mpconfig.h"

Expand Down
2 changes: 1 addition & 1 deletion extmod/modmotor.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
// Copyright (c) 2018-2019 Laurens Valk
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019 LEGO System A/S

#include "py/mpconfig.h"
Expand Down
2 changes: 1 addition & 1 deletion extmod/modparameters.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
// Copyright (c) 2018-2019 Laurens Valk
// Copyright (c) 2018-2019 David Lechner
// Copyright (c) 2019 LEGO System A/S


Expand Down
2 changes: 1 addition & 1 deletion lib/lego/lego_uart.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

// LEGO UART Message Protocol (LUMP) for EV3 and Powered Up I/O devices
//
Expand Down
2 changes: 1 addition & 1 deletion lib/pbio/drv/adc/adc_stm32_hal.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019 David Lechner
// Copyright (c) 2019-2020 The Pybricks Authors

// Platform should override HAL_ADC_MspInit() to configure pin mux and ADC
// channel mapping. Example:
Expand Down
Loading

0 comments on commit 90ca654

Please sign in to comment.