diff --git a/application.c b/application.c
index a0cd100..f137ec2 100644
--- a/application.c
+++ b/application.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** STM32F1 application example
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
*/
diff --git a/bootloader.c b/bootloader.c
index bf5ca13..7a081a8 100644
--- a/bootloader.c
+++ b/bootloader.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** USB DFU bootloader
- * @file bootloader.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2019
*/
/* standard libraries */
diff --git a/global.c b/global.c
index 585bead..04f7049 100644
--- a/global.c
+++ b/global.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-/** global definitions and methods (code)
+/** global definitions and methods
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
*/
/* standard libraries */
diff --git a/global.h b/global.h
index 7b4e181..38e6129 100644
--- a/global.h
+++ b/global.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-/** global definitions and methods (API)
+/** global definitions and methods
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
*/
#pragma once
diff --git a/lib/flash_internal.c b/lib/flash_internal.c
index f6234ce..ddb34f2 100644
--- a/lib/flash_internal.c
+++ b/lib/flash_internal.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to read/write internal flash
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: none
*/
diff --git a/lib/flash_internal.h b/lib/flash_internal.h
index e9d47d2..14596a5 100644
--- a/lib/flash_internal.h
+++ b/lib/flash_internal.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to read/write internal flash
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: none
*/
diff --git a/lib/flash_sdcard.c b/lib/flash_sdcard.c
index 839c47e..824d7b8 100644
--- a/lib/flash_sdcard.c
+++ b/lib/flash_sdcard.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate with an SD card flash memory using the SPI mode (code)
- * @file flash_sdcard.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017
* @note peripherals used: SPI @ref flash_sdcard_spi
* @warning all calls are blocking
diff --git a/lib/flash_sdcard.h b/lib/flash_sdcard.h
index 7b3c718..ed7d66e 100644
--- a/lib/flash_sdcard.h
+++ b/lib/flash_sdcard.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-/** library to communicate with an SD card flash memory using the SPI mode (API)
- * @file flash_sdcard.h
+/** library to communicate with an SD card flash memory using the SPI mode
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017
* @note peripherals used: SPI @ref flash_sdcard_spi
* @warning all calls are blocking
diff --git a/lib/i2c_master.c b/lib/i2c_master.c
index 5172cfe..e3ce338 100644
--- a/lib/i2c_master.c
+++ b/lib/i2c_master.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate using I²C as master (code)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: I2C
*/
diff --git a/lib/i2c_master.h b/lib/i2c_master.h
index ce89859..9067741 100644
--- a/lib/i2c_master.h
+++ b/lib/i2c_master.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-/** library to communicate using I²C as master (API)
+/** library to communicate using I²C as master
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: I2C
*/
diff --git a/lib/interrupt.c b/lib/interrupt.c
index 244f9a4..3e2aa86 100644
--- a/lib/interrupt.c
+++ b/lib/interrupt.c
@@ -1,19 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
/** BusVoodoo runtime interrupt table
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018
*/
#include "interrupt.h" // own definitions
diff --git a/lib/interrupt.h b/lib/interrupt.h
index c3c40bf..1a5df9a 100644
--- a/lib/interrupt.h
+++ b/lib/interrupt.h
@@ -1,19 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
/** BusVoodoo runtime interrupt table
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018
*/
#pragma once
diff --git a/lib/ir_nec.c b/lib/ir_nec.c
index 9f5883c..93de983 100644
--- a/lib/ir_nec.c
+++ b/lib/ir_nec.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to decode InfraRed NEC code
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018-2020
* @note peripherals used: timer channel @ref ir_nec_timer
*/
diff --git a/lib/ir_nec.h b/lib/ir_nec.h
index 8e09096..41ec31a 100644
--- a/lib/ir_nec.h
+++ b/lib/ir_nec.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to decode InfraRed NEC code
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018-2020
* @note peripherals used: timer channel @ref ir_nec_timer
*/
diff --git a/lib/lcd_hd44780.c b/lib/lcd_hd44780.c
index 46665d8..90d301e 100644
--- a/lib/lcd_hd44780.c
+++ b/lib/lcd_hd44780.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communication with Hitacho HD44780 LCD controller
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2019-2020
* @note peripherals used: GPIO @ref lcd_hd44780_gpio
*/
diff --git a/lib/lcd_hd44780.h b/lib/lcd_hd44780.h
index fc2f9b6..97eaa60 100644
--- a/lib/lcd_hd44780.h
+++ b/lib/lcd_hd44780.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communication with Hitacho HD44780 LCD controller
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2019-2020
* @note peripherals used: GPIO @ref lcd_hd44780_gpio, I²C @ref lcd_hd44780_i2c
*/
diff --git a/lib/led_max7219.c b/lib/led_max7219.c
index a61d852..80eceea 100644
--- a/lib/led_max7219.c
+++ b/lib/led_max7219.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate with a Titan Micro MAX7219 IC attached to a 4-digit 7-segment (code)
- * @file led_max7219.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017
* @note peripherals used: GPIO @ref led_max7219_gpio, timer @ref led_tm1637_timer
* @warning all calls are blocking
diff --git a/lib/led_max7219.h b/lib/led_max7219.h
index 8a1207e..91d987f 100644
--- a/lib/led_max7219.h
+++ b/lib/led_max7219.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-/** library to communicate with a Maxim MAX7219 IC attached to a 8-digit 7-segment (API)
- * @file led_max7219.h
+/** library to communicate with a Maxim MAX7219 IC attached to a 8-digit 7-segment
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017
* @note peripherals used: GPIO @ref led_max7219_gpio, SPI @ref led_max7219_spi
* @warning all calls are blocking
diff --git a/lib/led_tm1637.c b/lib/led_tm1637.c
index 7fcf0fb..44e7b08 100644
--- a/lib/led_tm1637.c
+++ b/lib/led_tm1637.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate with a Titan Micro TM1637 IC attached to a 4-digit 7-segment
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: GPIO @ref led_tm1637_gpio, timer @ref led_tm1637_timer
* @note the protocol is very similar to I2C but incompatible for the following reasons: the capacitance is too large for open-drain type output with weak pull-up resistors (push-pull needs to be used, preventing to get ACKs since no indication of the ACK timing is provided); the devices doesn't use addresses; the STM32 I2C will switch to receiver mode when the first sent byte (the I2C address) has last bit set to 1 (such as for address commands with B7=1 where B7 is transmitted last), preventing to send further bytes (the data byte after the address)
diff --git a/lib/led_tm1637.h b/lib/led_tm1637.h
index 9a14b16..57d0246 100644
--- a/lib/led_tm1637.h
+++ b/lib/led_tm1637.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate with a Titan Micro TM1637 IC attached to a 4-digit 7-segment
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: GPIO @ref led_tm1637_gpio, timer @ref led_tm1637_timer
* @warning all calls are blocking
diff --git a/lib/led_ws2812b.c b/lib/led_ws2812b.c
index 7615437..f80e7cf 100644
--- a/lib/led_ws2812b.c
+++ b/lib/led_ws2812b.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to drive a WS2812B LED chain
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: SPI @ref led_ws2812b_spi, DMA
*/
diff --git a/lib/led_ws2812b.h b/lib/led_ws2812b.h
index 3817ee5..67426c1 100644
--- a/lib/led_ws2812b.h
+++ b/lib/led_ws2812b.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to drive a WS2812B LED chain
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: SPI @ref led_ws2812b_spi, DMA
*/
diff --git a/lib/menu.c b/lib/menu.c
index 6db298d..788bce1 100644
--- a/lib/menu.c
+++ b/lib/menu.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** definitions to build menus (code)
- * @file menu.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018
*/
/* standard libraries */
diff --git a/lib/menu.h b/lib/menu.h
index b7aaa1e..f9ce8b8 100644
--- a/lib/menu.h
+++ b/lib/menu.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-/** definitions to build menus (API)
- * @file menu.h
+/** definitions to build menus
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018
*/
#pragma once
diff --git a/lib/microwire_master.c b/lib/microwire_master.c
index d7da14e..350ab93 100644
--- a/lib/microwire_master.c
+++ b/lib/microwire_master.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate using microwore as master
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: GPIO @ref microwire_master_gpio, timer @ref microwire_master_timer
* microwire is a 3-Wire half-duplex synchronous bus. It is very similar to SPI without fixed length messages (bit-wised).
diff --git a/lib/microwire_master.h b/lib/microwire_master.h
index 63c84d3..d895de4 100644
--- a/lib/microwire_master.h
+++ b/lib/microwire_master.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate using microwore as master
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: GPIO @ref microwire_master_gpio, timer @ref microwire_master_timer
* microwire is a 3-Wire half-duplex synchronous bus. It is very similar to SPI without fixed length messages (bit-wised).
diff --git a/lib/oled_ssd1306.c b/lib/oled_ssd1306.c
index 331460d..5c59cf4 100644
--- a/lib/oled_ssd1306.c
+++ b/lib/oled_ssd1306.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** SSD1306 OLED library (code)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018-2019
* @note peripherals used: I2C @ref oled_ssd1306_i2c
*/
diff --git a/lib/oled_ssd1306.h b/lib/oled_ssd1306.h
index 238c771..b0b0fe2 100644
--- a/lib/oled_ssd1306.h
+++ b/lib/oled_ssd1306.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** SSD1306 OLED library (API)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018-2019
* @note peripherals used: I2C @ref oled_ssd1306_i2c
*/
diff --git a/lib/onewire_master.c b/lib/onewire_master.c
index 20ccfd9..b00d5e1 100644
--- a/lib/onewire_master.c
+++ b/lib/onewire_master.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for 1-wire protocol as master
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: timer @ref onewire_master_timer, GPIO @ref onewire_master_gpio
* @note overdrive mode is not provided
diff --git a/lib/onewire_master.h b/lib/onewire_master.h
index f827dda..fe18c62 100644
--- a/lib/onewire_master.h
+++ b/lib/onewire_master.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for 1-wire protocol as master
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: timer @ref onewire_master_timer, GPIO @ref onewire_master_gpio
* @note overdrive mode is not provided
diff --git a/lib/onewire_slave.c b/lib/onewire_slave.c
index 8cd872d..edf87ce 100644
--- a/lib/onewire_slave.c
+++ b/lib/onewire_slave.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for 1-wire protocol as master
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: GPIO and timer @ref onewire_slave_timer, GPIO @ref onewire_slave_gpio
* @note overdrive mode is not supported
diff --git a/lib/onewire_slave.h b/lib/onewire_slave.h
index 94450cd..9a152aa 100644
--- a/lib/onewire_slave.h
+++ b/lib/onewire_slave.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for 1-wire protocol as slave
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: timer @ref onewire_slave_timer, GPIO @ref onewire_slave_gpio
* @note overdrive mode is not supported
diff --git a/lib/print.c b/lib/print.c
index a5f6749..ad30eea 100644
--- a/lib/print.c
+++ b/lib/print.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** printing utilities to replace the large printf from the standard library (code)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2019
*/
/* standard libraries */
diff --git a/lib/print.h b/lib/print.h
index 1fe5677..825f5f2 100644
--- a/lib/print.h
+++ b/lib/print.h
@@ -1,17 +1,3 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** printing utilities to replace the large printf from the standard library (API)
* @note use % as format specifier prefix, followed by + to enforce sign or 0x prefix, 0 followed by n for padding or forcing integer part of floating point number, . followed by n for number for fractional precision of floating point numbers, and format specifier
* format specifier supported are:
@@ -30,6 +16,7 @@
* - B for uint64_t bits
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2019
*/
#pragma once
diff --git a/lib/radio_esp8266.c b/lib/radio_esp8266.c
index bd66c23..ba65719 100644
--- a/lib/radio_esp8266.c
+++ b/lib/radio_esp8266.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to send data using ESP8266 WiFi SoC (code)
- * @file radio_esp8266.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016
* @note peripherals used: USART @ref radio_esp8266_usart
*/
diff --git a/lib/radio_esp8266.h b/lib/radio_esp8266.h
index 193db70..ab99beb 100644
--- a/lib/radio_esp8266.h
+++ b/lib/radio_esp8266.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to send data using ESP8266 WiFi SoC (API)
- * @file radio_esp8266.h
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016
* @note peripherals used: USART @ref radio_esp8266_usart
*/
diff --git a/lib/rtc_dcf77.c b/lib/rtc_dcf77.c
index f81cd3b..29ecbb9 100644
--- a/lib/rtc_dcf77.c
+++ b/lib/rtc_dcf77.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to get time from a DCF77 module
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: GPIO @ref rtc_dcf77_gpio, timer @ref rtc_dcf77_timer
*/
diff --git a/lib/rtc_dcf77.h b/lib/rtc_dcf77.h
index c12fe80..3d37844 100644
--- a/lib/rtc_dcf77.h
+++ b/lib/rtc_dcf77.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to get time from a DCF77 module
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: GPIO @ref rtc_dcf77_gpio, timer @ref rtc_dcf77_timer
*/
diff --git a/lib/rtc_ds1307.c b/lib/rtc_ds1307.c
index 4fe5f24..97b3fcb 100644
--- a/lib/rtc_ds1307.c
+++ b/lib/rtc_ds1307.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate with the Maxim DS1307 I2C RTC IC (code)
- * @file rtc_ds1307.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2017
* @note peripherals used: I²C
*/
diff --git a/lib/rtc_ds1307.h b/lib/rtc_ds1307.h
index 2c77c27..9eebdc2 100644
--- a/lib/rtc_ds1307.h
+++ b/lib/rtc_ds1307.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communicate with the Maxim DS1307 I2C RTC IC (API)
- * @file rtc_ds1307.h
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2017
* @note peripherals used: I²C
*/
diff --git a/lib/sensor_as3935.c b/lib/sensor_as3935.c
index 92c7e84..cbf8c06 100644
--- a/lib/sensor_as3935.c
+++ b/lib/sensor_as3935.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communication with ams AS3935 Franklin lightning sensor IC using SPI
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2019
* @note peripherals used: SPI @ref sensor_as3935_spi, GPIO @ref sensor_as3935_gpio
*/
diff --git a/lib/sensor_as3935.h b/lib/sensor_as3935.h
index 0a496d3..73cebc4 100644
--- a/lib/sensor_as3935.h
+++ b/lib/sensor_as3935.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to communication with ams AS3935 Franklin lightning sensor IC using SPI
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2019
* @note peripherals used: SPI @ref sensor_as3935_spi, GPIO @ref sensor_as3935_gpio
*/
diff --git a/lib/sensor_dht11.c b/lib/sensor_dht11.c
index 22b2890..20364d8 100644
--- a/lib/sensor_dht11.c
+++ b/lib/sensor_dht11.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from Aosong DHT11 temperature and relative humidity sensor
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: timer channel @ref sensor_dht11_timer
*/
diff --git a/lib/sensor_dht11.h b/lib/sensor_dht11.h
index e5be68d..78a1924 100644
--- a/lib/sensor_dht11.h
+++ b/lib/sensor_dht11.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from Aosong DHT11 temperature and relative humidity sensor
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: timer channel @ref sensor_dht11_timer (add external pull-up resistor)
*/
diff --git a/lib/sensor_dht22.c b/lib/sensor_dht22.c
index 03138c2..bacb100 100644
--- a/lib/sensor_dht22.c
+++ b/lib/sensor_dht22.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from Aosong DHT22 temperature and relative humidity sensor
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: GPIO and timer @ref sensor_dht22_timer
* @note the DHT22 protocol is very similar but nit completely compatible with the DHT22 protocol: only 1 ms initial host pull low is required (vs. 18 ms), the data is encoded as int16_t (vs. uint8_t), and the signal has more jitter
diff --git a/lib/sensor_dht22.h b/lib/sensor_dht22.h
index 9596476..41bd8ba 100644
--- a/lib/sensor_dht22.h
+++ b/lib/sensor_dht22.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from Aosong DHT22 (aka. AM2302) temperature and relative humidity sensor
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
* @note peripherals used: timer channel @ref sensor_dht22_timer (add external pull-up resistor)
*/
diff --git a/lib/sensor_ds18b20.c b/lib/sensor_ds18b20.c
index 5cef2be..4ba90ef 100644
--- a/lib/sensor_ds18b20.c
+++ b/lib/sensor_ds18b20.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for Maxim DS18B20 digital temperature sensor (using 1-Wire protocol) (code)
- * @file sensor_ds18b20.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017
* @note peripherals used: 1-Wire (timer @ref onewire_master_timer, GPIO @ref onewire_master_gpio)
* @warning this library does not support parasite power mode and alarms
diff --git a/lib/sensor_ds18b20.h b/lib/sensor_ds18b20.h
index 046b7aa..b2a5abe 100644
--- a/lib/sensor_ds18b20.h
+++ b/lib/sensor_ds18b20.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for Maxim DS18B20 digital temperature sensor (using 1-Wire protocol) (API)
- * @file sensor_ds18b20.h
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017
* @note peripherals used: 1-Wire (timer @ref onewire_master_timer, GPIO @ref onewire_master_gpio)
* @warning this library does not support parasite power mode and alarms
diff --git a/lib/sensor_pzem.c b/lib/sensor_pzem.c
index f5ce861..30f34a4 100644
--- a/lib/sensor_pzem.c
+++ b/lib/sensor_pzem.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from peacefair PZEM-004 and PZEM-004T electricity meter
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: USART @ref sensor_pzem_usart, timer @ref sensor_pzem_timer
*/
diff --git a/lib/sensor_pzem.h b/lib/sensor_pzem.h
index 8488ac7..1562a4e 100644
--- a/lib/sensor_pzem.h
+++ b/lib/sensor_pzem.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from peacefair PZEM-004 and PZEM-004T electricity meter
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: USART @ref sensor_pzem_usart, timer @ref sensor_pzem_timer
*/
diff --git a/lib/sensor_sdm120.c b/lib/sensor_sdm120.c
index ba9b058..de591f0 100644
--- a/lib/sensor_sdm120.c
+++ b/lib/sensor_sdm120.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from eastron SDM120-ModBus electricity meter
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: USART @ref sensor_sdm120_usart , GPIO @ref sensor_sdm120_gpio , timer @ref sensor_sdm120_timer
*/
diff --git a/lib/sensor_sdm120.h b/lib/sensor_sdm120.h
index df7899d..e537813 100644
--- a/lib/sensor_sdm120.h
+++ b/lib/sensor_sdm120.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to query measurements from eastron SDM120-ModBus electricity meter
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: USART @ref sensor_sdm120_usart , GPIO @ref sensor_sdm120_gpio , timer @ref sensor_sdm120_timer
*/
diff --git a/lib/terminal.c b/lib/terminal.c
index 7885039..3362ca5 100644
--- a/lib/terminal.c
+++ b/lib/terminal.c
@@ -1,21 +1,8 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** terminal prompt interface (code)
* @note allows line editing and supports some ANSI escape codes
- * @file terminal.c
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018-2019
*/
/* standard libraries */
diff --git a/lib/terminal.h b/lib/terminal.h
index 1b7fcb3..4cec2d8 100644
--- a/lib/terminal.h
+++ b/lib/terminal.h
@@ -1,21 +1,8 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** terminal prompt interface (API)
* @note allows line editing and supports some ANSI escape codes
- * @file terminal.h
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018
*/
diff --git a/lib/uart.c b/lib/uart.c
index 60254ec..4e2e15c 100644
--- a/lib/uart.c
+++ b/lib/uart.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for UART communication
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: USART @ref uart
*/
diff --git a/lib/uart.h b/lib/uart.h
index 3e4f5ce..6416628 100644
--- a/lib/uart.h
+++ b/lib/uart.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for UART communication
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: USART @ref uart
*/
diff --git a/lib/uart_soft.c b/lib/uart_soft.c
index b5cd180..acf82be 100644
--- a/lib/uart_soft.c
+++ b/lib/uart_soft.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to control up to 4 independent receive and transmit software UART ports
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: GPIO @ref uart_soft_gpio, timer @ref uart_soft_timer
*/
diff --git a/lib/uart_soft.h b/lib/uart_soft.h
index cc394e5..497f8b9 100644
--- a/lib/uart_soft.h
+++ b/lib/uart_soft.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to control up to 4 independent receive and transmit software UART ports
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: GPIO @ref uart_soft_gpio, timer @ref uart_soft_timer
*/
diff --git a/lib/usart_enhanced.c b/lib/usart_enhanced.c
index 9ca9b47..d77f1c9 100644
--- a/lib/usart_enhanced.c
+++ b/lib/usart_enhanced.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for enhanced USART communication (code)
* @file usart_enhanced.c
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018
* @details the USART peripherals only support 8 or 9-bit word and even or odd parity (included in the data bits). The library adds support for 5 to 8-bit words, none/even/odd/mark/space parity (on top of the data bits)
* @note since parity is handled in software, the parity error (PE) flag is unused and should be replaced by the value return by usart_enhanced_parity_error
diff --git a/lib/usart_enhanced.h b/lib/usart_enhanced.h
index 85bd363..4cf147e 100644
--- a/lib/usart_enhanced.h
+++ b/lib/usart_enhanced.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for enhanced USART communication (API)
- * @file usart_enhanced.h
+ * @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2018
* @details the USART peripherals only support 8 or 9-bit word and even or odd parity (included in the data bits). The library adds support for 5 to 8-bit words, none/even/odd/mark/space parity (on top of the data bits)
* @note since parity is handled in software, the parity error (PE) flag is unused and should be replaced by the value return by usart_enhanced_parity_error
diff --git a/lib/usb_cdcacm.c b/lib/usb_cdcacm.c
index 8c6f707..4dca758 100644
--- a/lib/usb_cdcacm.c
+++ b/lib/usb_cdcacm.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for USB CDC ACM communication (code)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2019
*/
diff --git a/lib/usb_cdcacm.h b/lib/usb_cdcacm.h
index 767bb4e..92177cf 100644
--- a/lib/usb_cdcacm.h
+++ b/lib/usb_cdcacm.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for USB CDC ACM communication (API)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2019
*/
#pragma once
diff --git a/lib/usb_dfu.c b/lib/usb_dfu.c
index 62f707c..024936e 100644
--- a/lib/usb_dfu.c
+++ b/lib/usb_dfu.c
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for USB DFU to write on internal flash (code)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2020
*/
diff --git a/lib/usb_dfu.h b/lib/usb_dfu.h
index ab7f487..6db9b63 100644
--- a/lib/usb_dfu.h
+++ b/lib/usb_dfu.h
@@ -1,20 +1,7 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library for USB DFU to write on internal flash (API)
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2017-2019
*/
#pragma once
diff --git a/lib/vfd_hv518.c b/lib/vfd_hv518.c
index 4d1cfc9..bbe8a28 100644
--- a/lib/vfd_hv518.c
+++ b/lib/vfd_hv518.c
@@ -1,21 +1,8 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to drive vacuum fluorescent display using supertex HV518 shift register VFD drivers
* @details the current configuration is for a VFD extracted from a Samsung SER-6500 cash register
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: SPI @ref vfd_hv518_spi , GPIO @ref vfd_hv518_gpio , timer @ref vfd_hv518_timer
*/
diff --git a/lib/vfd_hv518.h b/lib/vfd_hv518.h
index 44f0059..f61de15 100644
--- a/lib/vfd_hv518.h
+++ b/lib/vfd_hv518.h
@@ -1,21 +1,8 @@
-/* This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
/** library to drive vacuum fluorescent display using supertex HV518 shift register VFD drivers
* @details the current configuration is for a VFD extracted from a Samsung SER-6500 cash register
* @file
* @author King Kévin
+ * @copyright SPDX-License-Identifier: GPL-3.0-or-later
* @date 2016-2020
* @note peripherals used: SPI @ref vfd_hv518_spi , GPIO @ref vfd_hv518_gpio , timer @ref vfd_hv518_timer
*/