From c798ab3e78d4ca857c9aa6dc283176df1769becd Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 3 Nov 2023 10:53:34 -0600 Subject: moved ATTINY and MODEL_NUMBER into $target/arch and $target/model, and updated other scripts and files accordingly --- hw/hank/noctigon-dm11/anduril.h | 2 -- hw/hank/noctigon-dm11/arch | 1 + hw/hank/noctigon-dm11/boost/anduril.h | 2 -- hw/hank/noctigon-dm11/boost/hwdef.h | 1 - hw/hank/noctigon-dm11/boost/model | 1 + hw/hank/noctigon-dm11/hwdef.h | 1 - hw/hank/noctigon-dm11/model | 1 + hw/hank/noctigon-dm11/nofet/anduril.h | 3 --- hw/hank/noctigon-dm11/nofet/model | 1 + hw/hank/noctigon-dm11/sbt90/anduril.h | 3 --- hw/hank/noctigon-dm11/sbt90/model | 1 + 11 files changed, 5 insertions(+), 12 deletions(-) create mode 100644 hw/hank/noctigon-dm11/arch create mode 100644 hw/hank/noctigon-dm11/boost/model create mode 100644 hw/hank/noctigon-dm11/model create mode 100644 hw/hank/noctigon-dm11/nofet/model create mode 100644 hw/hank/noctigon-dm11/sbt90/model (limited to 'hw/hank/noctigon-dm11') diff --git a/hw/hank/noctigon-dm11/anduril.h b/hw/hank/noctigon-dm11/anduril.h index f588b03..3524f03 100644 --- a/hw/hank/noctigon-dm11/anduril.h +++ b/hw/hank/noctigon-dm11/anduril.h @@ -3,10 +3,8 @@ // SPDX-License-Identifier: GPL-3.0-or-later #pragma once -#define MODEL_NUMBER "0271" #include "hank/noctigon-dm11/hwdef.h" #include "hank/anduril.h" -// ATTINY: 1634 // this light has three aux LED channels: R, G, B #define USE_AUX_RGB_LEDS diff --git a/hw/hank/noctigon-dm11/arch b/hw/hank/noctigon-dm11/arch new file mode 100644 index 0000000..5d99bab --- /dev/null +++ b/hw/hank/noctigon-dm11/arch @@ -0,0 +1 @@ +attiny1634 diff --git a/hw/hank/noctigon-dm11/boost/anduril.h b/hw/hank/noctigon-dm11/boost/anduril.h index 7b62173..a12c158 100644 --- a/hw/hank/noctigon-dm11/boost/anduril.h +++ b/hw/hank/noctigon-dm11/boost/anduril.h @@ -3,10 +3,8 @@ // SPDX-License-Identifier: GPL-3.0-or-later #pragma once -#define MODEL_NUMBER "0273" #include "hank/noctigon-dm11/boost/hwdef.h" #include "hank/anduril.h" -// ATTINY: 1634 #define RAMP_SIZE 150 diff --git a/hw/hank/noctigon-dm11/boost/hwdef.h b/hw/hank/noctigon-dm11/boost/hwdef.h index 513d32f..5ac2daf 100644 --- a/hw/hank/noctigon-dm11/boost/hwdef.h +++ b/hw/hank/noctigon-dm11/boost/hwdef.h @@ -36,7 +36,6 @@ * not to change brightness. */ -#define ATTINY 1634 #include #define HWDEF_C_FILE hank/noctigon-dm11/boost/hwdef.c diff --git a/hw/hank/noctigon-dm11/boost/model b/hw/hank/noctigon-dm11/boost/model new file mode 100644 index 0000000..451ce28 --- /dev/null +++ b/hw/hank/noctigon-dm11/boost/model @@ -0,0 +1 @@ +0273 diff --git a/hw/hank/noctigon-dm11/hwdef.h b/hw/hank/noctigon-dm11/hwdef.h index 9ce5629..cd21eae 100644 --- a/hw/hank/noctigon-dm11/hwdef.h +++ b/hw/hank/noctigon-dm11/hwdef.h @@ -37,7 +37,6 @@ * Some models also have a direct-drive FET for turbo. */ -#define ATTINY 1634 #include #ifndef HWDEF_C_FILE diff --git a/hw/hank/noctigon-dm11/model b/hw/hank/noctigon-dm11/model new file mode 100644 index 0000000..31171cd --- /dev/null +++ b/hw/hank/noctigon-dm11/model @@ -0,0 +1 @@ +0271 diff --git a/hw/hank/noctigon-dm11/nofet/anduril.h b/hw/hank/noctigon-dm11/nofet/anduril.h index 6d6af70..12336f1 100644 --- a/hw/hank/noctigon-dm11/nofet/anduril.h +++ b/hw/hank/noctigon-dm11/nofet/anduril.h @@ -6,9 +6,6 @@ // same support functions as a KR4 #define HWDEF_C_FILE hank/noctigon-kr4/nofet/hwdef.c #include "hank/noctigon-dm11/anduril.h" -#undef MODEL_NUMBER -#define MODEL_NUMBER "0272" -// ATTINY: 1634 // turn off the DD FET #undef PWM_CHANNELS diff --git a/hw/hank/noctigon-dm11/nofet/model b/hw/hank/noctigon-dm11/nofet/model new file mode 100644 index 0000000..f394182 --- /dev/null +++ b/hw/hank/noctigon-dm11/nofet/model @@ -0,0 +1 @@ +0272 diff --git a/hw/hank/noctigon-dm11/sbt90/anduril.h b/hw/hank/noctigon-dm11/sbt90/anduril.h index 8c0d1de..4fe58bf 100644 --- a/hw/hank/noctigon-dm11/sbt90/anduril.h +++ b/hw/hank/noctigon-dm11/sbt90/anduril.h @@ -4,9 +4,6 @@ #pragma once #include "hank/noctigon-kr4/anduril.h" -#undef MODEL_NUMBER -#define MODEL_NUMBER "0274" -// ATTINY: 1634 // this light has three aux LED channels: R, G, B #define USE_AUX_RGB_LEDS diff --git a/hw/hank/noctigon-dm11/sbt90/model b/hw/hank/noctigon-dm11/sbt90/model new file mode 100644 index 0000000..1eadd7f --- /dev/null +++ b/hw/hank/noctigon-dm11/sbt90/model @@ -0,0 +1 @@ +0274 -- cgit v1.2.3