chore: use settings from radio JSON files instead of hal.h (#7411)
Co-authored-by: 3djc <3djc@gh.com>
This commit is contained in:
@@ -333,27 +333,66 @@
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"w": 128,
|
||||
"h": 64,
|
||||
"phys_w": 128,
|
||||
"phys_h": 64,
|
||||
"depth": 1,
|
||||
"color": 0,
|
||||
"oled": 1,
|
||||
"backlight_color": 0
|
||||
"lcd_w": 128,
|
||||
"lcd_h": 64,
|
||||
"lcd_phys_w": 128,
|
||||
"lcd_phys_h": 64,
|
||||
"lcd_depth": 1,
|
||||
"oled_screen": true,
|
||||
"lcd_horizontal_invert": true
|
||||
},
|
||||
"custom_switches": {
|
||||
"rgb_led": 0,
|
||||
"groups": 0
|
||||
"backlight": {
|
||||
"backlight_bdtr": "TIM_BDTR_MOE"
|
||||
},
|
||||
"leds": {
|
||||
"led_strip_length": 38,
|
||||
"bling_led_strip_start": 6,
|
||||
"bling_led_strip_length": 32,
|
||||
"led_strip_gpio": "GPIO_PIN(GPIOA, 10)",
|
||||
"led_strip_gpio_af": "LL_GPIO_AF_1",
|
||||
"led_strip_timer": "TIM1",
|
||||
"led_strip_timer_freq": "(PERI2_FREQUENCY * TIMER_MULT_APB2)",
|
||||
"led_strip_timer_channel": "LL_TIM_CHANNEL_CH3",
|
||||
"led_strip_timer_dma": "DMA2",
|
||||
"led_strip_timer_dma_channel": "LL_DMA_CHANNEL_6",
|
||||
"led_strip_timer_dma_stream": "LL_DMA_STREAM_5",
|
||||
"led_strip_timer_dma_irqn": "DMA2_Stream5_IRQn",
|
||||
"led_strip_timer_dma_irqhandler": "DMA2_Stream5_IRQHandler",
|
||||
"led_strip_refresh_period": 50,
|
||||
"status_leds": true,
|
||||
"led_red_gpio": "GPIO_PIN(GPIOE, 13)",
|
||||
"led_green_gpio": "GPIO_PIN(GPIOE, 14)",
|
||||
"led_blue_gpio": "GPIO_PIN(GPIOE, 2)"
|
||||
},
|
||||
"hardware": {
|
||||
"has_audio_mute": 0,
|
||||
"has_bling_leds": 32,
|
||||
"has_ext_module_support": 1,
|
||||
"has_int_module_support": 1,
|
||||
"has_ext_module_support": true,
|
||||
"has_int_module_support": true,
|
||||
"sport_max_baudrate": 400000,
|
||||
"surface": 0,
|
||||
"cpu": "STM32F407xG",
|
||||
"cpu_type": "STM32F4"
|
||||
},
|
||||
"timers": {
|
||||
"cpu_freq": 168000000,
|
||||
"peri1_frequency": 42000000,
|
||||
"peri2_frequency": 84000000,
|
||||
"timer_mult_apb1": 2,
|
||||
"timer_mult_apb2": 2,
|
||||
"ms_timer": "TIM14",
|
||||
"ms_timer_irqn": "TIM8_TRG_COM_TIM14_IRQn",
|
||||
"ms_timer_irqhandler": "TIM8_TRG_COM_TIM14_IRQHandler",
|
||||
"mixer_scheduler_timer": "TIM12",
|
||||
"mixer_scheduler_timer_freq": "(PERI1_FREQUENCY * TIMER_MULT_APB1)",
|
||||
"mixer_scheduler_timer_irqn": "TIM8_BRK_TIM12_IRQn",
|
||||
"mixer_scheduler_timer_irqhandler": "TIM8_BRK_TIM12_IRQHandler"
|
||||
},
|
||||
"haptic": {
|
||||
"haptic_pwm": true,
|
||||
"haptic_gpio": "GPIO_PIN(GPIOB, 3)",
|
||||
"haptic_gpio_af": "GPIO_AF1",
|
||||
"haptic_timer": "TIM2",
|
||||
"haptic_timer_freq": "(PERI1_FREQUENCY * TIMER_MULT_APB1)",
|
||||
"haptic_counter_register": "HAPTIC_TIMER->CCR2",
|
||||
"haptic_ccmr1": "TIM_CCMR1_OC2M_1 | TIM_CCMR1_OC2M_2",
|
||||
"haptic_ccer": "TIM_CCER_CC2E"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user