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

536 lines
11 KiB
JSON

{
"adc_inputs": {
"adcs": [
{
"name": "MAIN",
"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_28CYCLES"
},
{
"name": "EXT",
"adc": "ADC1",
"dma": null,
"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",
"inverted": true
},
{
"name": "RV",
"type": "STICK",
"adc": "MAIN",
"gpio": "GPIOA",
"pin": "LL_GPIO_PIN_1",
"channel": "LL_ADC_CHANNEL_1"
},
{
"name": "RH",
"type": "STICK",
"adc": "MAIN",
"gpio": "GPIOA",
"pin": "LL_GPIO_PIN_0",
"channel": "LL_ADC_CHANNEL_0",
"inverted": true
},
{
"name": "P1",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_1",
"channel": "LL_ADC_CHANNEL_11",
"inverted": true,
"label": "S1",
"short_label": "1",
"default": "POT_CENTER"
},
{
"name": "P2",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_0",
"channel": "LL_ADC_CHANNEL_10",
"label": "S2",
"short_label": "2",
"default": "POT_CENTER"
},
{
"name": "SL1",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_3",
"channel": "LL_ADC_CHANNEL_13",
"inverted": true,
"label": "S3",
"short_label": "3",
"default": "SLIDER"
},
{
"name": "SL2",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOC",
"pin": "LL_GPIO_PIN_2",
"channel": "LL_ADC_CHANNEL_12",
"inverted": true,
"label": "S4",
"short_label": "4",
"default": "SLIDER"
},
{
"name": "SL3",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_5",
"channel": "LL_ADC_CHANNEL_15",
"inverted": true,
"label": "SL",
"short_label": "L",
"default": "SLIDER"
},
{
"name": "SL4",
"type": "FLEX",
"adc": "MAIN",
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_3",
"channel": "LL_ADC_CHANNEL_9",
"inverted": true,
"label": "SR",
"short_label": "R",
"default": "SLIDER"
},
{
"name": "VBAT",
"type": "VBAT",
"adc": "MAIN",
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_4",
"channel": "LL_ADC_CHANNEL_14"
},
{
"name": "RTC_BAT",
"type": "RTC_BAT",
"adc": "EXT",
"gpio": null,
"pin": null,
"channel": "LL_ADC_CHANNEL_VBAT"
}
]
},
"switches": [
{
"name": "SA",
"type": "2POS",
"flags": 0,
"inverted": true,
"default": "2POS",
"display": [
0,
0
],
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_0",
"is_cfs": false
},
{
"name": "SB",
"type": "2POS",
"flags": 0,
"inverted": true,
"default": "2POS",
"display": [
1,
0
],
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_2",
"is_cfs": false
},
{
"name": "SC",
"type": "3POS",
"flags": 0,
"inverted": false,
"default": "3POS",
"display": [
0,
1
],
"gpio_high": "GPIOD",
"pin_high": "LL_GPIO_PIN_1",
"gpio_low": "GPIOD",
"pin_low": "LL_GPIO_PIN_2",
"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_0",
"is_cfs": false
},
{
"name": "SE",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": [
0,
2
],
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_3",
"is_cfs": false
},
{
"name": "SF",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": [
1,
2
],
"gpio": "GPIOB",
"pin": "LL_GPIO_PIN_5",
"is_cfs": false
},
{
"name": "SG",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "TOGGLE",
"display": [
0,
3
],
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_15",
"is_cfs": false
},
{
"name": "SH",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "TOGGLE",
"display": [
1,
3
],
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_0",
"is_cfs": false
},
{
"name": "SI",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "TOGGLE",
"display": [
0,
4
],
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_11",
"is_cfs": false
},
{
"name": "SJ",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "TOGGLE",
"display": [
1,
4
],
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_14",
"is_cfs": false
},
{
"name": "SW1",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": null,
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_10",
"is_cfs": true,
"cfs_idx": 0
},
{
"name": "SW2",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": null,
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_8",
"is_cfs": true,
"cfs_idx": 1
},
{
"name": "SW3",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": null,
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_12",
"is_cfs": true,
"cfs_idx": 2
},
{
"name": "SW4",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": null,
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_13",
"is_cfs": true,
"cfs_idx": 3
},
{
"name": "SW5",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": null,
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_14",
"is_cfs": true,
"cfs_idx": 4
},
{
"name": "SW6",
"type": "2POS",
"flags": 0,
"inverted": false,
"default": "2POS",
"display": null,
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_15",
"is_cfs": true,
"cfs_idx": 5
}
],
"keys": [
{
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_10",
"active_low": true,
"key": "KEY_MENU",
"name": "MENU",
"label": "MENU"
},
{
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_12",
"active_low": true,
"key": "KEY_EXIT",
"name": "EXIT",
"label": "EXIT"
},
{
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_7",
"active_low": true,
"key": "KEY_ENTER",
"name": "ENTER",
"label": "Enter"
},
{
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_11",
"active_low": true,
"key": "KEY_PAGEDN",
"name": "PAGEDN",
"label": "</>"
}
],
"trims": [
{
"name": "T1",
"dec": {
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_13",
"active_low": true
},
"inc": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_2",
"active_low": true
},
"active_low": true
},
{
"name": "T2",
"dec": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_3",
"active_low": true
},
"inc": {
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_14",
"active_low": true
},
"active_low": true
},
{
"name": "T3",
"dec": {
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_2",
"active_low": true
},
"inc": {
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_6",
"active_low": true
},
"active_low": true
},
{
"name": "T4",
"dec": {
"gpio": "GPIOE",
"pin": "LL_GPIO_PIN_5",
"active_low": true
},
"inc": {
"gpio": "GPIOF",
"pin": "LL_GPIO_PIN_1",
"active_low": true
},
"active_low": true
},
{
"name": "T5",
"dec": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_9",
"active_low": true
},
"inc": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_10",
"active_low": true
},
"active_low": true
},
{
"name": "T6",
"dec": {
"gpio": "GPIOD",
"pin": "LL_GPIO_PIN_7",
"active_low": true
},
"inc": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_12",
"active_low": true
},
"active_low": true
},
{
"name": "T7",
"dec": {
"gpio": "GPIOB",
"pin": "LL_GPIO_PIN_3",
"active_low": true
},
"inc": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_15",
"active_low": true
},
"active_low": true
},
{
"name": "T8",
"dec": {
"gpio": "GPIOG",
"pin": "LL_GPIO_PIN_13",
"active_low": true
},
"inc": {
"gpio": "GPIOB",
"pin": "LL_GPIO_PIN_4",
"active_low": true
},
"active_low": true
}
],
"display": {
"w": 128,
"h": 64,
"phys_w": 128,
"phys_h": 64,
"depth": 1,
"color": 0,
"oled": 1,
"backlight_color": 0
},
"custom_switches": {
"rgb_led": 0,
"groups": 3
},
"hardware": {
"has_audio_mute": 1,
"has_bling_leds": 0,
"has_ext_module_support": 1,
"has_int_module_support": 1,
"sport_max_baudrate": 400000,
"surface": 0,
"cpu": "STM32F407xE",
"cpu_type": "STM32F4"
}
}