Files
edgetx-gx12/radio/src/boards/hw_defs/x9e.json
T

574 lines
12 KiB
JSON

{
"adc_inputs": {
"adcs": [
{
"name": "MAIN",
"adc": "ADC1",
"dma": "DMA2",
"dma_channel": "LL_DMA_CHANNEL_0",
"dma_stream": "LL_DMA_STREAM_4",
"dma_stream_irq": "DMA2_Stream4_IRQn",
"dma_stream_irq_handler": "DMA2_Stream4_IRQHandler",
"sample_time": "LL_ADC_SAMPLINGTIME_28CYCLES"
},
{
"name": "EXT",
"adc": "ADC3",
"dma": "DMA2",
"dma_channel": "LL_DMA_CHANNEL_2",
"dma_stream": "LL_DMA_STREAM_0",
"dma_stream_irq": "DMA2_Stream0_IRQn",
"dma_stream_irq_handler": "DMA2_Stream0_IRQHandler",
"sample_time": "LL_ADC_SAMPLINGTIME_56CYCLES"
}
],
"inputs": [
{
"name": "LH",
"type": "STICK",
"adc": "MAIN",
"gpio": "GPIOA",
"pin": "LL_GPIO_PIN_2",
"channel": "LL_ADC_CHANNEL_2"
},
{
"name": "LV",
"type": "STICK",
"adc": "MAIN",
"gpio": "GPIOA",
"pin": "LL_GPIO_PIN_3",
"channel": "LL_ADC_CHANNEL_3"
},
{
"name": "RV",
"type": "STICK",
"adc": "MAIN",
"gpio": "GPIOA",
"pin": "LL_GPIO_PIN_0",
"channel": "LL_ADC_CHANNEL_0",
"inverted": true
},
{
"name": "RH",
"type": "STICK",
"adc": "MAIN",
"gpio": "GPIOA",
"pin": "LL_GPIO_PIN_1",
"channel": "LL_ADC_CHANNEL_1",
"inverted": true
},
{
"name": "P1",
"type": "FLEX",
"adc": "EXT",
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_8",
"channel": "LL_ADC_CHANNEL_6",
"inverted": true,
"label": "F1",
"short_label": "F1",
"default": "POT_CENTER"
},
{
"name": "P2",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOB",
"pin": "LL_GPIO_PIN_0",
"channel": "LL_ADC_CHANNEL_8",
"inverted": true,
"label": "F2",
"short_label": "F2",
"default": "POT_CENTER"
},
{
"name": "P3",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_5",
"channel": "LL_ADC_CHANNEL_15",
"inverted": true,
"label": "F3",
"short_label": "F3",
"default": "NONE"
},
{
"name": "P4",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_4",
"channel": "LL_ADC_CHANNEL_14",
"label": "F4",
"short_label": "F4",
"default": "NONE"
},
{
"name": "SL1",
"type": "FLEX",
"adc": "EXT",
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_10",
"channel": "LL_ADC_CHANNEL_8",
"inverted": true,
"label": "S1",
"short_label": "S1",
"default": "SLIDER"
},
{
"name": "SL2",
"type": "FLEX",
"adc": "EXT",
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_9",
"channel": "LL_ADC_CHANNEL_7",
"label": "S2",
"short_label": "S2",
"default": "SLIDER"
},
{
"name": "SL3",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOA",
"pin": "LL_GPIO_PIN_6",
"channel": "LL_ADC_CHANNEL_6",
"label": "LS",
"short_label": "L",
"default": "SLIDER"
},
{
"name": "SL4",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOB",
"pin": "LL_GPIO_PIN_1",
"channel": "LL_ADC_CHANNEL_9",
"inverted": true,
"label": "RS",
"short_label": "R",
"default": "SLIDER"
},
{
"name": "VBAT",
"type": "VBAT",
"adc": "MAIN",
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_0",
"channel": "LL_ADC_CHANNEL_10"
},
{
"name": "RTC_BAT",
"type": "RTC_BAT",
"adc": "MAIN",
"gpio": null,
"pin": null,
"channel": "LL_ADC_CHANNEL_VBAT"
}
]
},
"switches": [
{
"name": "SA",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "3POS",
"display": [
0,
0
],
"gpio_high": "GPIOD",
"pin_high": "LL_GPIO_PIN_10",
"gpio_low": "GPIOD",
"pin_low": "LL_GPIO_PIN_14",
"is_cfs": false
},
{
"name": "SB",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "3POS",
"display": [
0,
1
],
"gpio_high": "GPIOG",
"pin_high": "LL_GPIO_PIN_11",
"gpio_low": "GPIOG",
"pin_low": "LL_GPIO_PIN_10",
"is_cfs": false
},
{
"name": "SC",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "3POS",
"display": [
1,
0
],
"gpio_high": "GPIOF",
"pin_high": "LL_GPIO_PIN_13",
"gpio_low": "GPIOF",
"pin_low": "LL_GPIO_PIN_14",
"is_cfs": false
},
{
"name": "SD",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "3POS",
"display": [
1,
1
],
"gpio_high": "GPIOE",
"pin_high": "LL_GPIO_PIN_1",
"gpio_low": "GPIOE",
"pin_low": "LL_GPIO_PIN_2",
"is_cfs": false
},
{
"name": "SE",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "3POS",
"display": [
0,
2
],
"gpio_high": "GPIOE",
"pin_high": "LL_GPIO_PIN_7",
"gpio_low": "GPIOE",
"pin_low": "LL_GPIO_PIN_13",
"is_cfs": false
},
{
"name": "SF",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": [
0,
3
],
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_11",
"is_cfs": false
},
{
"name": "SG",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "TOGGLE",
"display": [
1,
3
],
"gpio_high": "GPIOF",
"pin_high": "LL_GPIO_PIN_3",
"gpio_low": "GPIOF",
"pin_low": "LL_GPIO_PIN_4",
"is_cfs": false
},
{
"name": "SH",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "3POS",
"display": [
1,
2
],
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_1",
"is_cfs": false
},
{
"name": "SI",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
0,
4
],
"gpio_high": "GPIOF",
"pin_high": "LL_GPIO_PIN_15",
"gpio_low": "GPIOE",
"pin_low": "LL_GPIO_PIN_14",
"is_cfs": false
},
{
"name": "SJ",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
1,
4
],
"gpio_high": "GPIOG",
"pin_high": "LL_GPIO_PIN_7",
"gpio_low": "GPIOG",
"pin_low": "LL_GPIO_PIN_8",
"is_cfs": false
},
{
"name": "SK",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
0,
5
],
"gpio_high": "GPIOG",
"pin_high": "LL_GPIO_PIN_13",
"gpio_low": "GPIOG",
"pin_low": "LL_GPIO_PIN_12",
"is_cfs": false
},
{
"name": "SL",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
1,
5
],
"gpio_high": "GPIOE",
"pin_high": "LL_GPIO_PIN_9",
"gpio_low": "GPIOE",
"pin_low": "LL_GPIO_PIN_8",
"is_cfs": false
},
{
"name": "SM",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
0,
6
],
"gpio_high": "GPIOE",
"pin_high": "LL_GPIO_PIN_15",
"gpio_low": "GPIOA",
"pin_low": "LL_GPIO_PIN_5",
"is_cfs": false
},
{
"name": "SN",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
1,
6
],
"gpio_high": "GPIOB",
"pin_high": "LL_GPIO_PIN_3",
"gpio_low": "GPIOB",
"pin_low": "LL_GPIO_PIN_4",
"is_cfs": false
},
{
"name": "SO",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
0,
7
],
"gpio_high": "GPIOF",
"pin_high": "LL_GPIO_PIN_7",
"gpio_low": "GPIOE",
"pin_low": "LL_GPIO_PIN_10",
"is_cfs": false
},
{
"name": "SP",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
1,
7
],
"gpio_high": "GPIOF",
"pin_high": "LL_GPIO_PIN_11",
"gpio_low": "GPIOF",
"pin_low": "LL_GPIO_PIN_12",
"is_cfs": false
},
{
"name": "SQ",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
0,
8
],
"gpio_high": "GPIOF",
"pin_high": "LL_GPIO_PIN_5",
"gpio_low": "GPIOF",
"pin_low": "LL_GPIO_PIN_6",
"is_cfs": false
},
{
"name": "SR",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "NONE",
"display": [
1,
8
],
"gpio_high": "GPIOB",
"pin_high": "LL_GPIO_PIN_5",
"gpio_low": "GPIOE",
"pin_low": "LL_GPIO_PIN_0",
"is_cfs": false
}
],
"keys": [
{
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_7",
"active_low": true,
"key": "KEY_MENU",
"name": "MENU",
"label": "MENU"
},
{
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_2",
"active_low": true,
"key": "KEY_EXIT",
"name": "EXIT",
"label": "EXIT"
},
{
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_0",
"active_low": true,
"key": "KEY_ENTER",
"name": "ENTER",
"label": "Enter"
},
{
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_3",
"active_low": true,
"key": "KEY_PAGEDN",
"name": "PAGEDN",
"label": "PAGE"
}
],
"trims": [
{
"name": "T1",
"dec": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_1",
"active_low": true
},
"inc": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_0",
"active_low": true
},
"active_low": true
},
{
"name": "T2",
"dec": {
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_4",
"active_low": true
},
"inc": {
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_3",
"active_low": true
},
"active_low": true
},
{
"name": "T3",
"dec": {
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_3",
"active_low": true
},
"inc": {
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_2",
"active_low": true
},
"active_low": true
},
{
"name": "T4",
"dec": {
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_1",
"active_low": true
},
"inc": {
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_13",
"active_low": true
},
"active_low": true
}
],
"display": {
"w": 212,
"h": 64,
"phys_w": 212,
"phys_h": 64,
"depth": 4,
"color": 0,
"oled": 0,
"backlight_color": 1
},
"custom_switches": {
"rgb_led": 0,
"groups": 0
},
"hardware": {
"has_audio_mute": 0,
"has_bling_leds": 0,
"has_ext_module_support": 1,
"has_int_module_support": 0,
"sport_max_baudrate": 400000,
"surface": 0,
"cpu": "STM32F407xE",
"cpu_type": "STM32F4"
}
}