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/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/anduril.h | 2 -- hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/arch | 1 + hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h | 1 - hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/model | 1 + hw/thefreeman/boost21-mp3431-hdr-dac-argb/anduril.h | 2 -- hw/thefreeman/boost21-mp3431-hdr-dac-argb/arch | 1 + hw/thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.h | 1 - hw/thefreeman/boost21-mp3431-hdr-dac-argb/model | 1 + hw/thefreeman/lin16dac/anduril.h | 2 -- hw/thefreeman/lin16dac/arch | 1 + hw/thefreeman/lin16dac/hwdef.h | 1 - hw/thefreeman/lin16dac/model | 1 + 12 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/arch create mode 100644 hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/model create mode 100644 hw/thefreeman/boost21-mp3431-hdr-dac-argb/arch create mode 100644 hw/thefreeman/boost21-mp3431-hdr-dac-argb/model create mode 100644 hw/thefreeman/lin16dac/arch create mode 100644 hw/thefreeman/lin16dac/model (limited to 'hw/thefreeman') diff --git a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/anduril.h b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/anduril.h index e30a218..eea8887 100644 --- a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/anduril.h +++ b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/anduril.h @@ -3,9 +3,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later #pragma once -#define MODEL_NUMBER "1632" #include "thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h" -// ATTINY: 1616 // HPRsense : 4.2+0.3+20 = 24.5mR (DMN1004UFDF+trace resistance+20mR) // R1=165k Vsense=49.02 Iout=2001mA diff --git a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/arch b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/arch new file mode 100644 index 0000000..cda1996 --- /dev/null +++ b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/arch @@ -0,0 +1 @@ +attiny1616 diff --git a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h index 91fca72..cd883fa 100644 --- a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h +++ b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/hwdef.h @@ -36,7 +36,6 @@ * IN- NFET : pull up after BST enable to eliminate startup flash, pull down otherwise */ -#define ATTINY 1616 #include #define HWDEF_C_FILE thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.c diff --git a/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/model b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/model new file mode 100644 index 0000000..a3845ee --- /dev/null +++ b/hw/thefreeman/boost-fwaa-mp3432-hdr-dac-rgb/model @@ -0,0 +1 @@ +1632 diff --git a/hw/thefreeman/boost21-mp3431-hdr-dac-argb/anduril.h b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/anduril.h index 2ed8fae..64da638 100644 --- a/hw/thefreeman/boost21-mp3431-hdr-dac-argb/anduril.h +++ b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/anduril.h @@ -3,9 +3,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later #pragma once -#define MODEL_NUMBER "1631" #include "thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.h" -// ATTINY: 1616 // HPRsense : 1.7+0.3+5 = 7mR (DMN22M5UFG+trace resistance+5mR) // Vsense=42.46mV, R1= 191k diff --git a/hw/thefreeman/boost21-mp3431-hdr-dac-argb/arch b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/arch new file mode 100644 index 0000000..cda1996 --- /dev/null +++ b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/arch @@ -0,0 +1 @@ +attiny1616 diff --git a/hw/thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.h b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.h index 1ca4a14..3f64287 100644 --- a/hw/thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.h +++ b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.h @@ -37,7 +37,6 @@ * IN- NFET : pull up after BST enable to eliminate startup flash, pull down otherwise */ -#define ATTINY 1616 #include #define HWDEF_C_FILE thefreeman/boost21-mp3431-hdr-dac-argb/hwdef.c diff --git a/hw/thefreeman/boost21-mp3431-hdr-dac-argb/model b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/model new file mode 100644 index 0000000..1008433 --- /dev/null +++ b/hw/thefreeman/boost21-mp3431-hdr-dac-argb/model @@ -0,0 +1 @@ +1631 diff --git a/hw/thefreeman/lin16dac/anduril.h b/hw/thefreeman/lin16dac/anduril.h index 62230e8..8ca8b9f 100644 --- a/hw/thefreeman/lin16dac/anduril.h +++ b/hw/thefreeman/lin16dac/anduril.h @@ -3,9 +3,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later #pragma once -#define MODEL_NUMBER "1630" #include "thefreeman/lin16dac/hwdef.h" -// ATTINY: 1616 // the button lights up #define USE_INDICATOR_LED diff --git a/hw/thefreeman/lin16dac/arch b/hw/thefreeman/lin16dac/arch new file mode 100644 index 0000000..cda1996 --- /dev/null +++ b/hw/thefreeman/lin16dac/arch @@ -0,0 +1 @@ +attiny1616 diff --git a/hw/thefreeman/lin16dac/hwdef.h b/hw/thefreeman/lin16dac/hwdef.h index 79f8382..2066d04 100644 --- a/hw/thefreeman/lin16dac/hwdef.h +++ b/hw/thefreeman/lin16dac/hwdef.h @@ -12,7 +12,6 @@ * Read voltage from VCC pin, has PFET so no drop */ -#define ATTINY 1616 #include #define HWDEF_C_FILE thefreeman/lin16dac/hwdef.c diff --git a/hw/thefreeman/lin16dac/model b/hw/thefreeman/lin16dac/model new file mode 100644 index 0000000..86868c5 --- /dev/null +++ b/hw/thefreeman/lin16dac/model @@ -0,0 +1 @@ +1630 -- cgit v1.2.3