diff options
Diffstat (limited to 'include')
79 files changed, 383 insertions, 21 deletions
diff --git a/include/arch.h b/include/arch.h index 1911271..5142a51 100644 --- a/include/arch.h +++ b/include/arch.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef ARCH_H #define ARCH_H diff --git a/include/arch/arduino-nano/arch_types.h b/include/arch/arduino-nano/arch_types.h index 5f4e729..ed0b543 100644 --- a/include/arch/arduino-nano/arch_types.h +++ b/include/arch/arduino-nano/arch_types.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef ARCH_TYPES_H #define ARCH_TYPES_H diff --git a/include/arch/arduino-nano/driver/adc.h b/include/arch/arduino-nano/driver/adc.h index 4af64b8..f913b4f 100644 --- a/include/arch/arduino-nano/driver/adc.h +++ b/include/arch/arduino-nano/driver/adc.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef ADC_H #define ADC_H diff --git a/include/arch/arduino-nano/driver/counter.h b/include/arch/arduino-nano/driver/counter.h index c89fb44..8812407 100644 --- a/include/arch/arduino-nano/driver/counter.h +++ b/include/arch/arduino-nano/driver/counter.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef COUNTER_H #define COUNTER_H diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h index 30df113..47cb7dc 100644 --- a/include/arch/arduino-nano/driver/gpio.h +++ b/include/arch/arduino-nano/driver/gpio.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef GPIO_H #define GPIO_H diff --git a/include/arch/arduino-nano/driver/i2c.h b/include/arch/arduino-nano/driver/i2c.h index 6d6ea66..7c1dcc2 100644 --- a/include/arch/arduino-nano/driver/i2c.h +++ b/include/arch/arduino-nano/driver/i2c.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef I2C_H #define I2C_H diff --git a/include/arch/arduino-nano/driver/neopixel.h b/include/arch/arduino-nano/driver/neopixel.h index 6416124..6671b3d 100644 --- a/include/arch/arduino-nano/driver/neopixel.h +++ b/include/arch/arduino-nano/driver/neopixel.h @@ -1,3 +1,8 @@ +/* + * Copyright 2019 Adafruit Industries + * + * SPDX-License-Identifier: LGPL-3.0-or-later + */ /*! * @file Adafruit_NeoPixel.h * diff --git a/include/arch/arduino-nano/driver/spi.h b/include/arch/arduino-nano/driver/spi.h index 8c593ee..2738312 100644 --- a/include/arch/arduino-nano/driver/spi.h +++ b/include/arch/arduino-nano/driver/spi.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef SPI_H #define SPI_H diff --git a/include/arch/arduino-nano/driver/stdin.h b/include/arch/arduino-nano/driver/stdin.h index 6462e0c..1085111 100644 --- a/include/arch/arduino-nano/driver/stdin.h +++ b/include/arch/arduino-nano/driver/stdin.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDINPUT_H #define STANDARDINPUT_H diff --git a/include/arch/arduino-nano/driver/stdout.h b/include/arch/arduino-nano/driver/stdout.h index 2eb669d..eaf7eac 100644 --- a/include/arch/arduino-nano/driver/stdout.h +++ b/include/arch/arduino-nano/driver/stdout.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDOUTPUT_H #define STANDARDOUTPUT_H diff --git a/include/arch/arduino-nano/driver/timer.h b/include/arch/arduino-nano/driver/timer.h index 87acfea..e5375ba 100644 --- a/include/arch/arduino-nano/driver/timer.h +++ b/include/arch/arduino-nano/driver/timer.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #include <avr/io.h> #include <avr/interrupt.h> diff --git a/include/arch/arduino-nano/driver/uptime.h b/include/arch/arduino-nano/driver/uptime.h index 86a8bb5..fa0b943 100644 --- a/include/arch/arduino-nano/driver/uptime.h +++ b/include/arch/arduino-nano/driver/uptime.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef UPTIME_H #define UPTIME_H diff --git a/include/arch/blinkenrocket/driver/gpio.h b/include/arch/blinkenrocket/driver/gpio.h index be6eb38..0d76521 100644 --- a/include/arch/blinkenrocket/driver/gpio.h +++ b/include/arch/blinkenrocket/driver/gpio.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef GPIO_H #define GPIO_H diff --git a/include/arch/blinkenrocket/driver/i2c.h b/include/arch/blinkenrocket/driver/i2c.h index 6d6ea66..7c1dcc2 100644 --- a/include/arch/blinkenrocket/driver/i2c.h +++ b/include/arch/blinkenrocket/driver/i2c.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef I2C_H #define I2C_H diff --git a/include/arch/blinkenrocket/driver/stdout.h b/include/arch/blinkenrocket/driver/stdout.h index 2eb669d..eaf7eac 100644 --- a/include/arch/blinkenrocket/driver/stdout.h +++ b/include/arch/blinkenrocket/driver/stdout.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDOUTPUT_H #define STANDARDOUTPUT_H diff --git a/include/arch/blinkenrocket/driver/uptime.h b/include/arch/blinkenrocket/driver/uptime.h index d5fdd2e..9457bcf 100644 --- a/include/arch/blinkenrocket/driver/uptime.h +++ b/include/arch/blinkenrocket/driver/uptime.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef UPTIME_H #define UPTIME_H diff --git a/include/arch/esp8266/driver/counter.h b/include/arch/esp8266/driver/counter.h index beb36e5..8c2d22f 100644 --- a/include/arch/esp8266/driver/counter.h +++ b/include/arch/esp8266/driver/counter.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef COUNTER_H #define COUNTER_H diff --git a/include/arch/esp8266/driver/gpio.h b/include/arch/esp8266/driver/gpio.h index 3db5d9d..b609f76 100644 --- a/include/arch/esp8266/driver/gpio.h +++ b/include/arch/esp8266/driver/gpio.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef GPIO_H #define GPIO_H diff --git a/include/arch/esp8266/driver/stdin.h b/include/arch/esp8266/driver/stdin.h index 6462e0c..1085111 100644 --- a/include/arch/esp8266/driver/stdin.h +++ b/include/arch/esp8266/driver/stdin.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDINPUT_H #define STANDARDINPUT_H diff --git a/include/arch/esp8266/driver/stdout.h b/include/arch/esp8266/driver/stdout.h index 8d366d8..2484cee 100644 --- a/include/arch/esp8266/driver/stdout.h +++ b/include/arch/esp8266/driver/stdout.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDOUTPUT_H #define STANDARDOUTPUT_H @@ -37,25 +42,18 @@ class StandardOutput { }; -// ENDL: new line character (and flush) StandardOutput & endl(StandardOutput & os); -// BIN: print numbers in binary form. StandardOutput & bin(StandardOutput & os); -// OCT: print numbers in octal form. StandardOutput & oct(StandardOutput & os); -// DEC: print numbers in decimal form. StandardOutput & dec(StandardOutput & os); -// HEX: print numbers in hexadecimal form. StandardOutput & hex(StandardOutput & os); -// FLUSH: flush StandardOutput buffer StandardOutput & flush(StandardOutput & os); -// TERM: zero-termination StandardOutput & term(StandardOutput & os); extern StandardOutput kout; diff --git a/include/arch/esp8266/driver/uptime.h b/include/arch/esp8266/driver/uptime.h index 44dde43..f3e2f23 100644 --- a/include/arch/esp8266/driver/uptime.h +++ b/include/arch/esp8266/driver/uptime.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef UPTIME_H #define UPTIME_H diff --git a/include/arch/esp8266/user_config.h b/include/arch/esp8266/user_config.h index 529fb46..bbd7001 100644 --- a/include/arch/esp8266/user_config.h +++ b/include/arch/esp8266/user_config.h @@ -1,4 +1,9 @@ /* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: CC0-1.0 + */ +/* * required by ESP8266 SDK's osapi.h * * Intentionally left blank. diff --git a/include/arch/msp430fr5969lp/driver/adc.h b/include/arch/msp430fr5969lp/driver/adc.h index d93aed4..e1db0b5 100644 --- a/include/arch/msp430fr5969lp/driver/adc.h +++ b/include/arch/msp430fr5969lp/driver/adc.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef ADC_H #define ADC_H diff --git a/include/arch/msp430fr5969lp/driver/counter.h b/include/arch/msp430fr5969lp/driver/counter.h index 0d7e140..ebb3045 100644 --- a/include/arch/msp430fr5969lp/driver/counter.h +++ b/include/arch/msp430fr5969lp/driver/counter.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef COUNTER_H #define COUNTER_H diff --git a/include/arch/msp430fr5969lp/driver/gpio.h b/include/arch/msp430fr5969lp/driver/gpio.h index 65b5567..0b8058b 100644 --- a/include/arch/msp430fr5969lp/driver/gpio.h +++ b/include/arch/msp430fr5969lp/driver/gpio.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef GPIO_H #define GPIO_H diff --git a/include/arch/msp430fr5969lp/driver/i2c.h b/include/arch/msp430fr5969lp/driver/i2c.h index 6d6ea66..7c1dcc2 100644 --- a/include/arch/msp430fr5969lp/driver/i2c.h +++ b/include/arch/msp430fr5969lp/driver/i2c.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef I2C_H #define I2C_H diff --git a/include/arch/msp430fr5969lp/driver/spi.h b/include/arch/msp430fr5969lp/driver/spi.h index 4be7346..32b9f94 100644 --- a/include/arch/msp430fr5969lp/driver/spi.h +++ b/include/arch/msp430fr5969lp/driver/spi.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef SPI_H #define SPI_H diff --git a/include/arch/msp430fr5969lp/driver/stdin.h b/include/arch/msp430fr5969lp/driver/stdin.h index 6462e0c..1085111 100644 --- a/include/arch/msp430fr5969lp/driver/stdin.h +++ b/include/arch/msp430fr5969lp/driver/stdin.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDINPUT_H #define STANDARDINPUT_H diff --git a/include/arch/msp430fr5969lp/driver/stdout.h b/include/arch/msp430fr5969lp/driver/stdout.h index 2eb669d..eaf7eac 100644 --- a/include/arch/msp430fr5969lp/driver/stdout.h +++ b/include/arch/msp430fr5969lp/driver/stdout.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDOUTPUT_H #define STANDARDOUTPUT_H diff --git a/include/arch/msp430fr5969lp/driver/timer.h b/include/arch/msp430fr5969lp/driver/timer.h index cb37da2..c07ae4e 100644 --- a/include/arch/msp430fr5969lp/driver/timer.h +++ b/include/arch/msp430fr5969lp/driver/timer.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #include <msp430.h> #include <stdint.h> diff --git a/include/arch/msp430fr5969lp/driver/uptime.h b/include/arch/msp430fr5969lp/driver/uptime.h index 3a52840..de51970 100644 --- a/include/arch/msp430fr5969lp/driver/uptime.h +++ b/include/arch/msp430fr5969lp/driver/uptime.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef UPTIME_H #define UPTIME_H diff --git a/include/arch/msp430fr5994lp/driver/adc.h b/include/arch/msp430fr5994lp/driver/adc.h index d93aed4..e1db0b5 100644 --- a/include/arch/msp430fr5994lp/driver/adc.h +++ b/include/arch/msp430fr5994lp/driver/adc.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef ADC_H #define ADC_H diff --git a/include/arch/msp430fr5994lp/driver/counter.h b/include/arch/msp430fr5994lp/driver/counter.h index 429de39..20eae62 100644 --- a/include/arch/msp430fr5994lp/driver/counter.h +++ b/include/arch/msp430fr5994lp/driver/counter.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef COUNTER_H #define COUNTER_H diff --git a/include/arch/msp430fr5994lp/driver/gpio.h b/include/arch/msp430fr5994lp/driver/gpio.h index d42dace..d972174 100644 --- a/include/arch/msp430fr5994lp/driver/gpio.h +++ b/include/arch/msp430fr5994lp/driver/gpio.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef GPIO_H #define GPIO_H diff --git a/include/arch/msp430fr5994lp/driver/i2c.h b/include/arch/msp430fr5994lp/driver/i2c.h index 6d6ea66..7c1dcc2 100644 --- a/include/arch/msp430fr5994lp/driver/i2c.h +++ b/include/arch/msp430fr5994lp/driver/i2c.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef I2C_H #define I2C_H diff --git a/include/arch/msp430fr5994lp/driver/spi.h b/include/arch/msp430fr5994lp/driver/spi.h index 4be7346..32b9f94 100644 --- a/include/arch/msp430fr5994lp/driver/spi.h +++ b/include/arch/msp430fr5994lp/driver/spi.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef SPI_H #define SPI_H diff --git a/include/arch/msp430fr5994lp/driver/spi_a1.h b/include/arch/msp430fr5994lp/driver/spi_a1.h index 8c593ee..2738312 100644 --- a/include/arch/msp430fr5994lp/driver/spi_a1.h +++ b/include/arch/msp430fr5994lp/driver/spi_a1.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef SPI_H #define SPI_H diff --git a/include/arch/msp430fr5994lp/driver/stdin.h b/include/arch/msp430fr5994lp/driver/stdin.h index 6462e0c..1085111 100644 --- a/include/arch/msp430fr5994lp/driver/stdin.h +++ b/include/arch/msp430fr5994lp/driver/stdin.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDINPUT_H #define STANDARDINPUT_H diff --git a/include/arch/msp430fr5994lp/driver/stdout.h b/include/arch/msp430fr5994lp/driver/stdout.h index 2eb669d..eaf7eac 100644 --- a/include/arch/msp430fr5994lp/driver/stdout.h +++ b/include/arch/msp430fr5994lp/driver/stdout.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDOUTPUT_H #define STANDARDOUTPUT_H diff --git a/include/arch/msp430fr5994lp/driver/timed_resistive_load.h b/include/arch/msp430fr5994lp/driver/timed_resistive_load.h index 6e7996c..f5704d8 100644 --- a/include/arch/msp430fr5994lp/driver/timed_resistive_load.h +++ b/include/arch/msp430fr5994lp/driver/timed_resistive_load.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef TIMED_RESISTIVE_LOAD_H #define TIMED_RESISTIVE_LOAD_H diff --git a/include/arch/msp430fr5994lp/driver/timer.h b/include/arch/msp430fr5994lp/driver/timer.h index cb37da2..c07ae4e 100644 --- a/include/arch/msp430fr5994lp/driver/timer.h +++ b/include/arch/msp430fr5994lp/driver/timer.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #include <msp430.h> #include <stdint.h> diff --git a/include/arch/msp430fr5994lp/driver/uptime.h b/include/arch/msp430fr5994lp/driver/uptime.h index 3a52840..de51970 100644 --- a/include/arch/msp430fr5994lp/driver/uptime.h +++ b/include/arch/msp430fr5994lp/driver/uptime.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef UPTIME_H #define UPTIME_H diff --git a/include/arch/msp430fr5994lp/int20.h b/include/arch/msp430fr5994lp/int20.h index d648f5c..dc5af30 100644 --- a/include/arch/msp430fr5994lp/int20.h +++ b/include/arch/msp430fr5994lp/int20.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifdef __acweaving #define __int20 long #endif diff --git a/include/arch/posix/driver/counter.h b/include/arch/posix/driver/counter.h index eeb6da4..e37bfd7 100644 --- a/include/arch/posix/driver/counter.h +++ b/include/arch/posix/driver/counter.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef COUNTER_H #define COUNTER_H diff --git a/include/arch/posix/driver/gpio.h b/include/arch/posix/driver/gpio.h index 12e9121..c630b46 100644 --- a/include/arch/posix/driver/gpio.h +++ b/include/arch/posix/driver/gpio.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef GPIO_H #define GPIO_H diff --git a/include/arch/posix/driver/stdout.h b/include/arch/posix/driver/stdout.h index b21ad56..032a878 100644 --- a/include/arch/posix/driver/stdout.h +++ b/include/arch/posix/driver/stdout.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDOUTPUT_H #define STANDARDOUTPUT_H diff --git a/include/arch/posix/driver/uptime.h b/include/arch/posix/driver/uptime.h index 39da445..d2193e3 100644 --- a/include/arch/posix/driver/uptime.h +++ b/include/arch/posix/driver/uptime.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef UPTIME_H #define UPTIME_H diff --git a/include/arch/stm32f446re-nucleo/driver/counter.h b/include/arch/stm32f446re-nucleo/driver/counter.h index 6cb329e..f7d1e09 100644 --- a/include/arch/stm32f446re-nucleo/driver/counter.h +++ b/include/arch/stm32f446re-nucleo/driver/counter.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef COUNTER_H #define COUNTER_H diff --git a/include/arch/stm32f446re-nucleo/driver/gpio.h b/include/arch/stm32f446re-nucleo/driver/gpio.h index b98078d..d2fb40a 100644 --- a/include/arch/stm32f446re-nucleo/driver/gpio.h +++ b/include/arch/stm32f446re-nucleo/driver/gpio.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef GPIO_H #define GPIO_H diff --git a/include/arch/stm32f446re-nucleo/driver/stdout.h b/include/arch/stm32f446re-nucleo/driver/stdout.h index 2eb669d..eaf7eac 100644 --- a/include/arch/stm32f446re-nucleo/driver/stdout.h +++ b/include/arch/stm32f446re-nucleo/driver/stdout.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STANDARDOUTPUT_H #define STANDARDOUTPUT_H diff --git a/include/arch/stm32f446re-nucleo/driver/uptime.h b/include/arch/stm32f446re-nucleo/driver/uptime.h index adace98..96d107b 100644 --- a/include/arch/stm32f446re-nucleo/driver/uptime.h +++ b/include/arch/stm32f446re-nucleo/driver/uptime.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef UPTIME_H #define UPTIME_H diff --git a/include/driver/aemr_transition_sync.h b/include/driver/aemr_transition_sync.h index e805025..4dce17c 100644 --- a/include/driver/aemr_transition_sync.h +++ b/include/driver/aemr_transition_sync.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef AEMR_TRANSITION_SYNC_H #define AEMR_TRANSITION_SYNC_H diff --git a/include/driver/am2320.h b/include/driver/am2320.h index 39c5f7e..606bbd5 100644 --- a/include/driver/am2320.h +++ b/include/driver/am2320.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef AM2320_H #define AM2320_H diff --git a/include/driver/bme280.h b/include/driver/bme280.h index 584ddee..b588eae 100644 --- a/include/driver/bme280.h +++ b/include/driver/bme280.h @@ -1,6 +1,8 @@ /**
* Copyright (C) 2018 - 2019 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme280_defs.h b/include/driver/bme280_defs.h index 4e897e1..e224803 100644 --- a/include/driver/bme280_defs.h +++ b/include/driver/bme280_defs.h @@ -1,6 +1,8 @@ /**
* Copyright (C) 2018 - 2019 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme680.h b/include/driver/bme680.h index acf6059..054cf13 100644 --- a/include/driver/bme680.h +++ b/include/driver/bme680.h @@ -1,6 +1,8 @@ /**
* Copyright (C) 2017 - 2018 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme680_defs.h b/include/driver/bme680_defs.h index ed44899..6ee5d43 100644 --- a/include/driver/bme680_defs.h +++ b/include/driver/bme680_defs.h @@ -1,6 +1,8 @@ /**
* Copyright (C) 2017 - 2018 Bosch Sensortec GmbH
*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
diff --git a/include/driver/bme680_util.h b/include/driver/bme680_util.h index c56983b..cf7b5a1 100644 --- a/include/driver/bme680_util.h +++ b/include/driver/bme680_util.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #include <stdint.h> void bme680_delay_ms(uint32_t const period); diff --git a/include/driver/ccs811.h b/include/driver/ccs811.h index 27d7e41..aab1e35 100644 --- a/include/driver/ccs811.h +++ b/include/driver/ccs811.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef CCS811_H #define CCS811_H diff --git a/include/driver/eeprom24lc64.h b/include/driver/eeprom24lc64.h index 66e7666..3be9d14 100644 --- a/include/driver/eeprom24lc64.h +++ b/include/driver/eeprom24lc64.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef EEPROM24LC64_H #define EEPROM24LC64_H diff --git a/include/driver/hdc1080.h b/include/driver/hdc1080.h index 6a510a0..83a99cb 100644 --- a/include/driver/hdc1080.h +++ b/include/driver/hdc1080.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef HDC1080_H #define HDC1080_H diff --git a/include/driver/lm75.h b/include/driver/lm75.h index 693578a..357be71 100644 --- a/include/driver/lm75.h +++ b/include/driver/lm75.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef LM75_H #define LM75_H diff --git a/include/driver/max44009.h b/include/driver/max44009.h index 6bedd3c..cca142f 100644 --- a/include/driver/max44009.h +++ b/include/driver/max44009.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef MAX44009_H #define MAX44009_H diff --git a/include/driver/mmsimple.h b/include/driver/mmsimple.h index 42b0f5d..8f2f1a6 100644 --- a/include/driver/mmsimple.h +++ b/include/driver/mmsimple.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef MMSIMPLE_H #define MMSIMPLE_H diff --git a/include/driver/mmsubstate.h b/include/driver/mmsubstate.h index 3338dbc..857d735 100644 --- a/include/driver/mmsubstate.h +++ b/include/driver/mmsubstate.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef MMSUBSTATE_H #define MMSUBSTATE_H diff --git a/include/driver/mpu9250.h b/include/driver/mpu9250.h index e106205..bc0a11f 100644 --- a/include/driver/mpu9250.h +++ b/include/driver/mpu9250.h @@ -5,6 +5,8 @@ Copyright (c) 2016 SparkFun Electronics, Inc. Copyright (c) 2019 Daniel Friesel +SPDX-License-Identifier: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. diff --git a/include/driver/nrf24l01.h b/include/driver/nrf24l01.h index 3a1f145..b5470e9 100644 --- a/include/driver/nrf24l01.h +++ b/include/driver/nrf24l01.h @@ -1,3 +1,11 @@ +/* + * Based on https://github.com/nRF24/RF24 + * + * Copyright (C) 2011 J. Coliz <maniacbug@ymail.com> + * Copyright (C) 2019 Daniel Friesel + * + * SPDX-License-Identifier: GPL-2.0-only + */ #ifndef NRF24L01_H #define NRF24L01_H diff --git a/include/driver/nrf24l01/registers.h b/include/driver/nrf24l01/registers.h index 51ab310..f3c351a 100644 --- a/include/driver/nrf24l01/registers.h +++ b/include/driver/nrf24l01/registers.h @@ -1,6 +1,8 @@ /* Copyright (c) 2007 Stefan Engelke <mbox@stefanengelke.de> - Portions Copyright (C) 2011 Greg Copeland + Portions Copyright (C) 2011 Greg Copeland + + SPDX-License-Identifier: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/include/driver/resistive_load.h b/include/driver/resistive_load.h index 74725ac..2475148 100644 --- a/include/driver/resistive_load.h +++ b/include/driver/resistive_load.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef RESISTIVE_LOAD_H #define RESISTIVE_LOAD_H diff --git a/include/driver/s5851a.h b/include/driver/s5851a.h index 8acdeea..fd37158 100644 --- a/include/driver/s5851a.h +++ b/include/driver/s5851a.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef S5851A_H #define S5851A_H diff --git a/include/driver/sharp96.h b/include/driver/sharp96.h index cd99ad7..1106df1 100644 --- a/include/driver/sharp96.h +++ b/include/driver/sharp96.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef SHARP96_H #define SHARP96_H diff --git a/include/driver/soft_i2c.h b/include/driver/soft_i2c.h index 7960df2..05fbce6 100644 --- a/include/driver/soft_i2c.h +++ b/include/driver/soft_i2c.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef SOFTI2C_H #define SOFTI2C_H diff --git a/include/object/outputstream.h b/include/object/outputstream.h index c6b503f..97887e9 100644 --- a/include/object/outputstream.h +++ b/include/object/outputstream.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef OUTPUTSTREAM_H #define OUTPUTSTREAM_H @@ -52,25 +57,18 @@ class OutputStream { }; -// ENDL: new line character (and flush) OutputStream & endl(OutputStream & os); -// BIN: print numbers in binary form. OutputStream & bin(OutputStream & os); -// OCT: print numbers in octal form. OutputStream & oct(OutputStream & os); -// DEC: print numbers in decimal form. OutputStream & dec(OutputStream & os); -// HEX: print numbers in hexadecimal form. OutputStream & hex(OutputStream & os); -// FLUSH: flush OutputStream buffer OutputStream & flush(OutputStream & os); -// TERM: zero-termination OutputStream & term(OutputStream & os); #endif //OUTPUTSTREAM_H diff --git a/include/object/ptalog.h b/include/object/ptalog.h index 6394474..9d070ab 100644 --- a/include/object/ptalog.h +++ b/include/object/ptalog.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef PTALOG_H #define PTALOG_H diff --git a/include/object/stdbuf.h b/include/object/stdbuf.h index 271c3ea..3e669d9 100644 --- a/include/object/stdbuf.h +++ b/include/object/stdbuf.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef STDBUF_H #define STDBUF_H diff --git a/include/object/xdr16input.h b/include/object/xdr16input.h index 66b2c56..478be48 100644 --- a/include/object/xdr16input.h +++ b/include/object/xdr16input.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef XDRINPUT_H #define XDRINPUT_H diff --git a/include/object/xdr16stream.h b/include/object/xdr16stream.h index 7cec1b1..c53bea5 100644 --- a/include/object/xdr16stream.h +++ b/include/object/xdr16stream.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef XDRSTREAM_H #define XDRSTREAM_H @@ -35,10 +40,8 @@ class XDRStream { }; -// FLUSH: flush XDRStream buffer XDRStream & flush(XDRStream & os); -// TERM: zero-termination XDRStream & term(XDRStream & os); template<int TSize> @@ -47,4 +50,4 @@ XDRStream & opaque(XDRStream & os); XDRStream & fixed(XDRStream & os); XDRStream & variable(XDRStream & os); -#endif //OUTPUTSTREAM_H +#endif diff --git a/include/object/xdrinput.h b/include/object/xdrinput.h index 5f99169..b3f999e 100644 --- a/include/object/xdrinput.h +++ b/include/object/xdrinput.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef XDRINPUT_H #define XDRINPUT_H diff --git a/include/object/xdrstream.h b/include/object/xdrstream.h index e8d4ddc..e2ccc34 100644 --- a/include/object/xdrstream.h +++ b/include/object/xdrstream.h @@ -1,3 +1,8 @@ +/* + * Copyright 2020 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ #ifndef XDRSTREAM_H #define XDRSTREAM_H @@ -35,10 +40,8 @@ class XDRStream { }; -// FLUSH: flush XDRStream buffer XDRStream & flush(XDRStream & os); -// TERM: zero-termination XDRStream & term(XDRStream & os); template<int TSize> @@ -47,4 +50,4 @@ XDRStream & opaque(XDRStream & os); XDRStream & fixed(XDRStream & os); XDRStream & variable(XDRStream & os); -#endif //OUTPUTSTREAM_H +#endif |