Clean up namings

This commit is contained in:
Richard Li
2025-01-24 19:00:12 +01:00
committed by Malte Langermann
parent 6db25b324b
commit c5e7729a33
5 changed files with 10 additions and 42 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ add_library(board OBJECT EXCLUDE_FROM_ALL
set(FIRMWARE_SRC ${FIRMWARE_SRC} $<TARGET_OBJECTS:board>)
if(PCBREV STREQUAL NB4P)
target_sources(board PRIVATE ${TARGET_SRC_DIR}/switch_driver.cpp)
target_sources(board PRIVATE ${TARGET_SRC_DIR}/nb4p_switch_driver.cpp)
endif()
set(FIRMWARE_SRC
+8 -8
View File
@@ -53,14 +53,14 @@
#if defined(RADIO_NB4P)
// Trims
#define TRIMS_GPIO_REG_LHL
#define TRIMS_GPIO_PIN_LHL
#define TRIMS_GPIO_REG_LHR
#define TRIMS_GPIO_PIN_LHR
#define TRIMS_GPIO_REG_LVD
#define TRIMS_GPIO_PIN_LVD
#define TRIMS_GPIO_REG_LVU
#define TRIMS_GPIO_PIN_LVU
#define TRIMS_GPIO_REG_T1L
#define TRIMS_GPIO_PIN_T1L
#define TRIMS_GPIO_REG_T1R
#define TRIMS_GPIO_PIN_T1R
#define TRIMS_GPIO_REG_T2L
#define TRIMS_GPIO_PIN_T2L
#define TRIMS_GPIO_REG_T2R
#define TRIMS_GPIO_PIN_T2R
// Switches
#define SWITCHES_GPIO_REG_A
-28
View File
@@ -707,34 +707,6 @@ LEGACY_NAMES = [
"label": "VR1R",
"short_label": "2",
"description": "Potentiometer 2"
},
"EXT1": {
"yaml": "EXT1",
"lua": "ext1",
"label": "EXT1",
"short_label": "E1",
"description": "Ext 1"
},
"EXT2": {
"yaml": "EXT2",
"lua": "ext2",
"label": "EXT2",
"short_label": "E2",
"description": "Ext 2"
},
"EXT3": {
"yaml": "EXT3",
"lua": "ext3",
"label": "EXT3",
"short_label": "E3",
"description": "Ext 3"
},
"EXT4": {
"yaml": "EXT4",
"lua": "ext4",
"label": "EXT4",
"short_label": "E4",
"description": "Ext 4"
}
}
},
+1 -5
View File
@@ -41,11 +41,7 @@ POT_CONFIG = {
},
"nb4p": {
"P1": {"default": "POT"},
"P2": {"default": "POT"},
"EXT1": {"default": "MULTIPOS"},
"EXT2": {"default": "MULTIPOS"},
"EXT3": {"default": "MULTIPOS"},
"EXT4": {"default": "MULTIPOS"}
"P2": {"default": "POT"}
},
"v12": {
"P1": {"default": "POT_CENTER"},