diff options
| author | Selene ToyKeeper | 2023-04-17 00:08:32 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-04-17 00:08:32 -0600 |
| commit | 583854e37efde7f461e073e735a1736b02d28c70 (patch) | |
| tree | 48ed76e428e3ddb126f88f8b0028f39391d84d9f /hw | |
| parent | reduced ROM by ~600 bytes by moving all eeprom config values to a "cfg" struct (diff) | |
| download | anduril-583854e37efde7f461e073e735a1736b02d28c70.tar.gz anduril-583854e37efde7f461e073e735a1736b02d28c70.tar.bz2 anduril-583854e37efde7f461e073e735a1736b02d28c70.zip | |
switched the rest of FSM + Anduril to use SPDX license headers
instead of full GPL headers (or all too often, nothing at all)
There are a few "FIXME" entries where I'm not sure about the correct copyright.
Diffstat (limited to '')
39 files changed, 216 insertions, 223 deletions
diff --git a/hwdef-BLF_GT.h b/hwdef-BLF_GT.h index 51b391d..94d510c 100644 --- a/hwdef-BLF_GT.h +++ b/hwdef-BLF_GT.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_BLF_GT_H -#define HWDEF_BLF_GT_H +// BLF GT driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF GT driver layout +/* * ---- * Reset -|1 8|- VCC (unused) * eswitch -|2 7|- Voltage divider @@ -57,4 +59,3 @@ #define LAYOUT_DEFINED -#endif diff --git a/hwdef-BLF_GT_Mini.h b/hwdef-BLF_GT_Mini.h index 43f74f3..1706749 100644 --- a/hwdef-BLF_GT_Mini.h +++ b/hwdef-BLF_GT_Mini.h @@ -1,8 +1,8 @@ -#ifndef HWDEF_BLF_GT_MINI_H -#define HWDEF_BLF_GT_MINI_H +// BLF/Lumintop GT Mini driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF/Lumintop GT Mini driver layout - */ // exactly the same as a D1S, but with a lighted button #include "hwdef-Emisar_D1S.h" @@ -11,4 +11,3 @@ #define AUXLED_PIN PB4 // pin 3 #endif -#endif diff --git a/hwdef-BLF_LT1-t1616.h b/hwdef-BLF_LT1-t1616.h index 8e5c58b..3e1d946 100644 --- a/hwdef-BLF_LT1-t1616.h +++ b/hwdef-BLF_LT1-t1616.h @@ -1,16 +1,16 @@ -#ifndef HWDEF_BLF_LANTERN_T1616_H -#define HWDEF_BLF_LANTERN_T1616_H +// BLF LT1 driver layout using the Attiny1616 +// Copyright (C) 2021-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF LT1 driver layout using the Attiny1616 - -Driver pinout: +/* + * Driver pinout: * eSwitch: PA5 * Aux LED: PB5 * PWM FET: PB0 (TCA0 WO0) * PWM 1x7135: PB1 (TCA0 WO1) * Voltage: VCC - -*/ + */ #define LAYOUT_DEFINED @@ -103,5 +103,3 @@ inline void hwdef_setup() { TCA0.SINGLE.CTRLA = TCA_SINGLE_CLKSEL_DIV1_gc | TCA_SINGLE_ENABLE_bm; } - -#endif diff --git a/hwdef-BLF_LT1.h b/hwdef-BLF_LT1.h index 4e81c42..e7c4791 100644 --- a/hwdef-BLF_LT1.h +++ b/hwdef-BLF_LT1.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_BLF_LT1_H -#define HWDEF_BLF_LT1_H +// BLF LT1 driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF LT1 driver layout +/* * ---- * Reset -|1 8|- VCC * eswitch -|2 7|- (unused) @@ -54,5 +56,3 @@ uint16_t PWM1_LVL; #define LAYOUT_DEFINED - -#endif diff --git a/hwdef-BLF_Q8-T1616.h b/hwdef-BLF_Q8-T1616.h index d6ad760..25734ba 100644 --- a/hwdef-BLF_Q8-T1616.h +++ b/hwdef-BLF_Q8-T1616.h @@ -1,15 +1,15 @@ -#ifndef HWDEF_BLF_Q8_T1616_H -#define HWDEF_BLF_Q8_T1616_H +// BLF Q8 driver layout using the Attiny1616 +// Copyright (C) 2021-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF Q8 driver layout using the Attiny1616 - -Driver pinout: +/* + * Driver pinout: * eSwitch: PA5 * Aux LED: PB5 * PWM FET: PB0 (TCA0 WO0) * PWM 1x7135: PB1 (TCA0 WO1) * Voltage: VCC - */ @@ -103,5 +103,3 @@ inline void hwdef_setup() { TCA0.SINGLE.CTRLA = TCA_SINGLE_CLKSEL_DIV1_gc | TCA_SINGLE_ENABLE_bm; } - -#endif diff --git a/hwdef-BLF_Q8.h b/hwdef-BLF_Q8.h index 5dac5d2..da55bd4 100644 --- a/hwdef-BLF_Q8.h +++ b/hwdef-BLF_Q8.h @@ -1,9 +1,9 @@ -#ifndef HWDEF_BLF_Q8_H -#define HWDEF_BLF_Q8_H +// BLF Q8 driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF Q8 driver layout - * Q8 driver is the same as a D4, basically - */ +// Q8 driver is the same as a D4, basically // ... except the Q8 has a lighted button #ifndef AUXLED_PIN @@ -18,4 +18,3 @@ // Q8 driver is the same as a D4, basically #include "hwdef-Emisar_D4.h" -#endif diff --git a/hwdef-Emisar_D1.h b/hwdef-Emisar_D1.h index caf1d4e..bf3a224 100644 --- a/hwdef-Emisar_D1.h +++ b/hwdef-Emisar_D1.h @@ -1,9 +1,8 @@ -#ifndef HWDEF_EMISAR_D1_H -#define HWDEF_EMISAR_D1_H +// Emisar D1 driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Emisar D1 driver layout - */ // D1 driver is exactly the same as a D4 #include "hwdef-Emisar_D4.h" -#endif diff --git a/hwdef-Emisar_D18.h b/hwdef-Emisar_D18.h index 3a238eb..b9f5b2e 100644 --- a/hwdef-Emisar_D18.h +++ b/hwdef-Emisar_D18.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_EMISAR_D18_H -#define HWDEF_EMISAR_D18_H +// Emisar D18 (FET+13+1) driver layout +// Copyright (C) 2019-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Emisar D18 (FET+13+1) driver layout +/* * ---- * Reset -|1 8|- VCC * eswitch -|2 7|- aux LED? @@ -45,4 +47,3 @@ #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Emisar_D1S.h b/hwdef-Emisar_D1S.h index 2e9fffa..15cbedb 100644 --- a/hwdef-Emisar_D1S.h +++ b/hwdef-Emisar_D1S.h @@ -1,9 +1,8 @@ -#ifndef HWDEF_EMISAR_D1S_H -#define HWDEF_EMISAR_D1S_H +// Emisar D1S driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Emisar D1S driver layout - */ // D1S driver is exactly the same as a D4 #include "hwdef-Emisar_D4.h" -#endif diff --git a/hwdef-Emisar_D4.h b/hwdef-Emisar_D4.h index d062d6f..fdb42a1 100644 --- a/hwdef-Emisar_D4.h +++ b/hwdef-Emisar_D4.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_EMISAR_D4_H -#define HWDEF_EMISAR_D4_H +// Emisar D4 driver layout +// Copyright (C) 2017-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Emisar D4 driver layout +/* * ---- * Reset -|1 8|- VCC * eswitch -|2 7|- @@ -44,4 +46,3 @@ #define FAST 0xA3 // fast PWM both channels #define PHASE 0xA1 // phase-correct PWM both channels -#endif diff --git a/hwdef-Emisar_D4S.h b/hwdef-Emisar_D4S.h index 05a60f9..97d8529 100644 --- a/hwdef-Emisar_D4S.h +++ b/hwdef-Emisar_D4S.h @@ -1,8 +1,8 @@ -#ifndef HWDEF_EMISAR_D4S_H -#define HWDEF_EMISAR_D4S_H +// Emisar D4S driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Emisar D4S driver layout - */ // same as a D4, basically #include "hwdef-Emisar_D4.h" @@ -11,4 +11,3 @@ #define AUXLED_PIN PB4 // pin 3 #endif -#endif diff --git a/hwdef-Emisar_D4Sv2-tintramp.h b/hwdef-Emisar_D4Sv2-tintramp.h index 0f4a77a..2709bc4 100644 --- a/hwdef-Emisar_D4Sv2-tintramp.h +++ b/hwdef-Emisar_D4Sv2-tintramp.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_D4SV2_TINTRAMP_H -#define HWDEF_D4SV2_TINTRAMP_H +// Emisar D4Sv2 w/ tint ramping +// Copyright (C) 2021-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Emisar D4Sv2 w/ tint ramping +/* * (based on the Noctigon K9.3 driver layout (attiny1634)) * * Pin / Name / Function @@ -185,4 +187,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Emisar_D4Sv2.h b/hwdef-Emisar_D4Sv2.h index d68b7ac..bd63649 100644 --- a/hwdef-Emisar_D4Sv2.h +++ b/hwdef-Emisar_D4Sv2.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_EMISAR_D4SV2_H -#define HWDEF_EMISAR_D4SV2_H +// Emisar D4Sv2 driver layout (attiny1634) +// Copyright (C) 2019-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Emisar D4Sv2 driver layout (attiny1634) +/* * (same layout as D4v2, except it's a FET+3+1 instead of FET+1) * * Pin / Name / Function @@ -119,4 +121,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Emisar_D4v2.h b/hwdef-Emisar_D4v2.h index 51e30f8..2864cd4 100644 --- a/hwdef-Emisar_D4v2.h +++ b/hwdef-Emisar_D4v2.h @@ -1,9 +1,9 @@ +// hwdef for Emisar D4v2 (attiny1634) +// Copyright (C) 2018 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later #pragma once -/* hwdef for Emisar D4v2 (attiny1634) - * Copyright (C) 2019 Selene ToyKeeper - * SPDX-License-Identifier: GPL-3.0-or-later - * +/* * Pin / Name / Function * 1 PA6 FET PWM (PWM1B) * 2 PA5 red aux LED (PWM0B) diff --git a/hwdef-FF_PL47.h b/hwdef-FF_PL47.h index 5cd9684..0171d15 100644 --- a/hwdef-FF_PL47.h +++ b/hwdef-FF_PL47.h @@ -1,9 +1,9 @@ -#ifndef HWDEF_FF_PL47_H -#define HWDEF_FF_PL47_H +// Fireflies PL47 driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Fireflies PL47 driver layout - * same as a D4S, basically, except ... - */ +// same as a D4S, basically, except ... // ... the PL47 has aux LEDs on pin 7 #ifndef AUXLED_PIN @@ -24,4 +24,3 @@ #undef FSM_EMISAR_D4S_DRIVER #undef FSM_EMISAR_D4_DRIVER -#endif diff --git a/hwdef-FF_ROT66.h b/hwdef-FF_ROT66.h index 7348ab2..e84b565 100644 --- a/hwdef-FF_ROT66.h +++ b/hwdef-FF_ROT66.h @@ -1,9 +1,9 @@ -#ifndef HWDEF_FF_ROT66_H -#define HWDEF_FF_ROT66_H +// Fireflies ROT66 driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Fireflies ROT66 driver layout - * same as a FW3A, basically, except ... - */ +// same as a FW3A, basically, except ... // ... except the ROT66 has a lighted button #ifndef AUXLED_PIN @@ -22,4 +22,3 @@ #undef VISION_PIN #endif -#endif diff --git a/hwdef-FW3A.h b/hwdef-FW3A.h index e8875d7..f2b5c8d 100644 --- a/hwdef-FW3A.h +++ b/hwdef-FW3A.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_FW3A_H -#define HWDEF_FW3A_H +// BLF/TLF FW3A driver layout +// Copyright (C) 2018-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF/TLF FW3A driver layout +/* * ---- * Reset -|1 8|- VCC * eswitch -|2 7|- optic nerve @@ -47,4 +49,3 @@ #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Mateminco_MF01-Mini.h b/hwdef-Mateminco_MF01-Mini.h index c0de533..557e641 100644 --- a/hwdef-Mateminco_MF01-Mini.h +++ b/hwdef-Mateminco_MF01-Mini.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_MF01_MINI_H -#define HWDEF_MF01_MINI_H +// MF01-Mini driver layout +// Copyright (C) 2019-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* MF01-Mini driver layout +/* * ---- * Reset -|1 8|- VCC * eswitch -|2 7|- aux LEDs @@ -46,4 +48,3 @@ #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Mateminco_MF01S.h b/hwdef-Mateminco_MF01S.h index 78a64a6..0ae30a6 100644 --- a/hwdef-Mateminco_MF01S.h +++ b/hwdef-Mateminco_MF01S.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_MF01S_H -#define HWDEF_MF01S_H +// MF01S driver layout +// Copyright (C) 2019-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* MF01S driver layout +/* * ---- * Reset -|1 8|- VCC (unused) * eswitch -|2 7|- Voltage divider (2S) @@ -57,4 +59,3 @@ #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Mateminco_MT35-Mini.h b/hwdef-Mateminco_MT35-Mini.h index 344f658..995a514 100644 --- a/hwdef-Mateminco_MT35-Mini.h +++ b/hwdef-Mateminco_MT35-Mini.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_MT35_MINI_H -#define HWDEF_MT35_MINI_H +// Mateminco MT35-Mini / Astrolux FT03 +// Copyright (C) 2022-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Mateminco MT35-Mini / Astrolux FT03 +/* * ---- * Reset -|1 8|- VCC * eswitch -|2 7|- Aux LED @@ -44,4 +46,3 @@ #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_DM11-12V.h b/hwdef-Noctigon_DM11-12V.h index a0d9715..104b6ae 100644 --- a/hwdef-Noctigon_DM11-12V.h +++ b/hwdef-Noctigon_DM11-12V.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_NOCTIGON_DM11_12V_H -#define HWDEF_NOCTIGON_DM11_12V_H +// Noctigon DM11 (12V) driver layout (attiny1634) +// Copyright (C) 2021-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon DM11 (12V) driver layout (attiny1634) +/* * (based on Noctigon K1) * * Pin / Name / Function @@ -162,4 +164,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_DM11-SBT90.h b/hwdef-Noctigon_DM11-SBT90.h index 8d7aa3d..c56b8ce 100644 --- a/hwdef-Noctigon_DM11-SBT90.h +++ b/hwdef-Noctigon_DM11-SBT90.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_NOCTIGON_DM11SBT90_H -#define HWDEF_NOCTIGON_DM11SBT90_H +// Noctigon DM11-SBT90.2 driver layout (attiny1634) +// Copyright (C) 2021-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon DM11-SBT90.2 driver layout (attiny1634) +/* * (based on Noctigon K1 and DM11) * * Pin / Name / Function @@ -154,4 +156,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_DM11.h b/hwdef-Noctigon_DM11.h index ea51432..619e12d 100644 --- a/hwdef-Noctigon_DM11.h +++ b/hwdef-Noctigon_DM11.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_NOCTIGON_DM11_H -#define HWDEF_NOCTIGON_DM11_H +// Noctigon DM11 driver layout (attiny1634) +// Copyright (C) 2021-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon DM11 driver layout (attiny1634) +/* * (based on Noctigon K1) * * Pin / Name / Function @@ -153,4 +155,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_K1-12V.h b/hwdef-Noctigon_K1-12V.h index b17aad0..33ed34d 100644 --- a/hwdef-Noctigon_K1-12V.h +++ b/hwdef-Noctigon_K1-12V.h @@ -1,9 +1,9 @@ -#ifndef HWDEF_NOCTIGON_K1_12V_H -#define HWDEF_NOCTIGON_K1_12V_H +// Noctigon K1 12V driver layout (attiny1634) +// Copyright (C) 2019-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon K1 driver layout (attiny1634) - * (originally known as Emisar D1S V2) - * +/* * Pin / Name / Function * 1 PA6 (none) (PWM1B) (reserved for DD drivers) * 2 PA5 R: red aux LED (PWM0B) @@ -135,4 +135,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_K1-SBT90.h b/hwdef-Noctigon_K1-SBT90.h index c19a4a6..9d91c1c 100644 --- a/hwdef-Noctigon_K1-SBT90.h +++ b/hwdef-Noctigon_K1-SBT90.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_NOCTIGON_K1SBT90_H -#define HWDEF_NOCTIGON_K1SBT90_H +// Noctigon K1-SBT90.2 driver layout (attiny1634) +// Copyright (C) 2019-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon K1-SBT90.2 driver layout (attiny1634) +/* * (mostly the same as KR4 driver) * * Pin / Name / Function @@ -140,4 +142,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_K1.h b/hwdef-Noctigon_K1.h index 4c0ce05..2e44e23 100644 --- a/hwdef-Noctigon_K1.h +++ b/hwdef-Noctigon_K1.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_NOCTIGON_K1_H -#define HWDEF_NOCTIGON_K1_H +// Noctigon K1 driver layout (attiny1634) +// Copyright (C) 2019-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon K1 driver layout (attiny1634) +/* * (originally known as Emisar D1S V2) * * Pin / Name / Function @@ -131,4 +133,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_K9.3.h b/hwdef-Noctigon_K9.3.h index 6032b4c..2f1ffe0 100644 --- a/hwdef-Noctigon_K9.3.h +++ b/hwdef-Noctigon_K9.3.h @@ -1,8 +1,9 @@ -#ifndef HWDEF_NOCTIGON_K93_H -#define HWDEF_NOCTIGON_K93_H +// Noctigon K9.3 driver layout (attiny1634) +// Copyright (C) 2020-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon K9.3 driver layout (attiny1634) - * +/* * Pin / Name / Function * 1 PA6 2nd LED PWM (linear) (PWM1B) * 2 PA5 R: red aux LED (PWM0B) @@ -161,4 +162,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_KR4-12V.h b/hwdef-Noctigon_KR4-12V.h index e6cf18a..57d39f2 100644 --- a/hwdef-Noctigon_KR4-12V.h +++ b/hwdef-Noctigon_KR4-12V.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_NOCTIGON_KR4_12V_H -#define HWDEF_NOCTIGON_KR4_12V_H +// Noctigon KR4 (12V) driver layout (attiny1634) +// Copyright (C) 2020-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon KR4 (12V) driver layout (attiny1634) +/* * (based on Noctigon DM11-12V and KR4) * * Pin / Name / Function @@ -154,4 +156,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Noctigon_KR4-tintramp.h b/hwdef-Noctigon_KR4-tintramp.h index 3bd57fe..78a4d6b 100644 --- a/hwdef-Noctigon_KR4-tintramp.h +++ b/hwdef-Noctigon_KR4-tintramp.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_KR4_TINTRAMP_H -#define HWDEF_KR4_TINTRAMP_H +// Noctigon KR4 w/ tint ramping +// Copyright (C) 2021-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon KR4 w/ tint ramping +/* * (same driver as D4Sv2-tintramp, but with the switch on a different pin) * * Pin / Name / Function @@ -43,4 +45,3 @@ // the rest of the config is the same as D4Sv2-tintramp #include "hwdef-Emisar_D4Sv2-tintramp.h" -#endif diff --git a/hwdef-Noctigon_KR4.h b/hwdef-Noctigon_KR4.h index 487d3ac..1c863cb 100644 --- a/hwdef-Noctigon_KR4.h +++ b/hwdef-Noctigon_KR4.h @@ -1,8 +1,9 @@ -#ifndef HWDEF_NOCTIGON_KR4_H -#define HWDEF_NOCTIGON_KR4_H +// Noctigon KR4 / D4V2.5 driver layout (attiny1634) +// Copyright (C) 2020-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Noctigon KR4 / D4V2.5 driver layout (attiny1634) - * +/* * Pin / Name / Function * 1 PA6 FET PWM (direct drive) (PWM1B) * 2 PA5 R: red aux LED (PWM0B) @@ -158,4 +159,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Sofirn_LT1S-Pro.c b/hwdef-Sofirn_LT1S-Pro.c index f617933..8e2163f 100644 --- a/hwdef-Sofirn_LT1S-Pro.c +++ b/hwdef-Sofirn_LT1S-Pro.c @@ -1,7 +1,6 @@ // BLF LT1S Pro hwdef functions // Copyright (C) 2023 Selene ToyKeeper // SPDX-License-Identifier: GPL-3.0-or-later - #pragma once diff --git a/hwdef-Sofirn_LT1S-Pro.h b/hwdef-Sofirn_LT1S-Pro.h index b50ccc7..4ee466b 100644 --- a/hwdef-Sofirn_LT1S-Pro.h +++ b/hwdef-Sofirn_LT1S-Pro.h @@ -1,17 +1,17 @@ -/* BLF LT1S Pro driver layout using the Attiny1616 +// BLF LT1S Pro driver layout using the Attiny1616 +// Copyright (C) 2022-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -Driver pinout: +/* + * Driver pinout: * eSwitch: PA5 * Aux LED: PB5 * WW PWM: PB0 (TCA0 WO0) * CW PWM: PB1 (TCA0 WO1) * Red PWM: PB2 (TCA0 WO2) * Voltage: VCC - -*/ - -#pragma once - + */ #define HWDEF_C_FILE hwdef-Sofirn_LT1S-Pro.c diff --git a/hwdef-Sofirn_SP10-Pro.h b/hwdef-Sofirn_SP10-Pro.h index d7c2081..6bc26ea 100644 --- a/hwdef-Sofirn_SP10-Pro.h +++ b/hwdef-Sofirn_SP10-Pro.h @@ -1,16 +1,16 @@ -#ifndef HWDEF_SOFIRN_SP10_H -#define HWDEF_SOFIRN_SP10_H +// Sofirn SP10 Pro pinout +// Copyright (C) 2022-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* Sofirn SP10 Pro pinout - -ATTINY1616 Mapping: -PB5 : PWM small channel (TCA0 - WO2 Alternate MUX) -PB3 : eSwitch -PB0 : PWM big channel (TCA0 - WO0) -PB4 : Voltage divider (ADC0 - AIN9) -PA1 : Boost Enable - -*/ +/* + * ATTINY1616 Mapping: + * PB5 : PWM small channel (TCA0 - WO2 Alternate MUX) + * PB3 : eSwitch + * PB0 : PWM big channel (TCA0 - WO0) + * PB4 : Voltage divider (ADC0 - AIN9) + * PA1 : Boost Enable + */ #define LAYOUT_DEFINED @@ -140,5 +140,3 @@ FUSES = { .BOOTEND = FUSE_BOOTEND_DEFAULT, // Boot Section End }; - -#endif diff --git a/hwdef-TK_Saber.h b/hwdef-TK_Saber.h index e6476b8..8ef58d6 100644 --- a/hwdef-TK_Saber.h +++ b/hwdef-TK_Saber.h @@ -1,7 +1,9 @@ -#ifndef HWDEF_TK_SABER_H -#define HWDEF_TK_SABER_H +// TK 4-color lightsaber driver layout +// Copyright (C) 2017-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* TK 4-color lightsaber driver layout +/* * ---- * Reset -|1 8|- VCC * PWM 4 (A) -|2 7|- e-switch @@ -33,4 +35,3 @@ #define LAYOUT_DEFINED -#endif diff --git a/hwdef-Wurkkos_TS10.h b/hwdef-Wurkkos_TS10.h index 6cfe050..1d138be 100644 --- a/hwdef-Wurkkos_TS10.h +++ b/hwdef-Wurkkos_TS10.h @@ -1,17 +1,17 @@ -#ifndef HWDEF_BLF_Q8_T1616_H -#define HWDEF_BLF_Q8_T1616_H - -/* BLF Q8 driver layout using the Attiny1616 - -Driver pinout: +// Wurkkos TS10 driver layout +// Copyright (C) 2022-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +/* + * (based on BLF Q8-t1616 driver layout) + * Driver pinout: * eSwitch: PA5 * Aux LED: PB5 * PWM FET: PB0 (TCA0 WO0) * PWM 1x7135: PB1 (TCA0 WO1) * Voltage: VCC - -*/ - + */ #define LAYOUT_DEFINED @@ -113,5 +113,3 @@ inline void hwdef_setup() { TCA0.SINGLE.CTRLA = TCA_SINGLE_CLKSEL_DIV1_gc | TCA_SINGLE_ENABLE_bm; } - -#endif diff --git a/hwdef-Wurkkos_TS25.h b/hwdef-Wurkkos_TS25.h index cadd366..cf34754 100644 --- a/hwdef-Wurkkos_TS25.h +++ b/hwdef-Wurkkos_TS25.h @@ -1,9 +1,10 @@ -#ifndef HWDEF_WURKKOS_TS25_T1616_H -#define HWDEF_WURKKOS_TS25_T1616_H +// Wurkkos TS25 driver layout +// Copyright (C) 2022-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once -/* BLF Q8 driver layout using the Attiny1616 - -Driver pinout: +/* + * Driver pinout: * eSwitch: PA5 * PWM FET: PB0 (TCA0 WO0) * PWM 1x7135: PB1 (TCA0 WO1) @@ -11,9 +12,7 @@ Driver pinout: * Aux Blue: PC1 * Aux Red: PC2 * Aux Green: PC3 - -*/ - + */ #define LAYOUT_DEFINED @@ -115,5 +114,3 @@ inline void hwdef_setup() { TCA0.SINGLE.CTRLA = TCA_SINGLE_CLKSEL_DIV1_gc | TCA_SINGLE_ENABLE_bm; } - -#endif diff --git a/hwdef-fw3x-lume1.h b/hwdef-fw3x-lume1.h index 09c5bfe..f2e9141 100644 --- a/hwdef-fw3x-lume1.h +++ b/hwdef-fw3x-lume1.h @@ -1,5 +1,7 @@ -#ifndef HWDEF_FW3X_LUME1_H -#define HWDEF_FW3X_LUME1_H +// lume1 Driver Rev B for FW3x driver layout (attiny1634) +// Copyright (C) 2020-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once /* lume1 Driver Rev B for FW3x driver layout (attiny1634) * www.loneoceans.com/labs/ for more information @@ -166,4 +168,3 @@ inline void hwdef_setup() { #define LAYOUT_DEFINED -#endif diff --git a/hwdef-gchart-fet1-t1616.h b/hwdef-gchart-fet1-t1616.h index 2435b99..9625738 100644 --- a/hwdef-gchart-fet1-t1616.h +++ b/hwdef-gchart-fet1-t1616.h @@ -1,14 +1,14 @@ -#ifndef HWDEF_GCH_FET1_T1616_H -#define HWDEF_GCH_FET1_T1616_H - -/* gChart's custom FET+1 driver layout - -PB0 - PWM for FET (TCA - WO0) -PB1 - PWM for 7135 (TCA - WO1) -PB2 - Switch pin, internal pullup -PB3 - Aux LED with 4700 Ohm series resistor -Read voltage from VCC pin, has diode with ~0.4v drop - +// gChart's custom FET+1 driver layout +// Copyright (C) 2020-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +/* + * PB0 - PWM for FET (TCA - WO0) + * PB1 - PWM for 7135 (TCA - WO1) + * PB2 - Switch pin, internal pullup + * PB3 - Aux LED with 4700 Ohm series resistor + * Read voltage from VCC pin, has diode with ~0.4v drop */ @@ -102,5 +102,3 @@ inline void hwdef_setup() { TCA0.SINGLE.CTRLA = TCA_SINGLE_CLKSEL_DIV1_gc | TCA_SINGLE_ENABLE_bm; } - -#endif diff --git a/hwdef-thefreeman-lin16dac.h b/hwdef-thefreeman-lin16dac.h index 9d6b145..36e3929 100644 --- a/hwdef-thefreeman-lin16dac.h +++ b/hwdef-thefreeman-lin16dac.h @@ -1,17 +1,16 @@ -#ifndef HWDEF_THEFREEMAN_LIN18_H -#define HWDEF_THEFREEMAN_LIN18_H - -/* thefreeman's Linear 16 driver using DAC control - -PA6 - DAC for LED brightness control -PA7 - Op-amp enable pin -PB5 - Aux LED -PB4 - Switch pin, internal pullup -PB3 - HDR control, set High to enable the high power channel, set Low for low power -Read voltage from VCC pin, has PFET so no drop - -*/ - +// thefreeman's Linear 16 driver using DAC control +// Copyright (C) 2021-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +/* + * PA6 - DAC for LED brightness control + * PA7 - Op-amp enable pin + * PB5 - Aux LED + * PB4 - Switch pin, internal pullup + * PB3 - HDR control, set High to enable the high power channel, set Low for low power + * Read voltage from VCC pin, has PFET so no drop + */ #define LAYOUT_DEFINED @@ -105,5 +104,3 @@ inline void hwdef_setup() { } - -#endif |
