~ruther/qmk_firmware

4d6fab1cfa4c16831cbd9727efddec654ca0460e — Ryan 2 years ago 64b1ed4
onekey: Enable ADC for STM32F072 Discovery (#18592)

M keyboards/handwired/onekey/stm32f0_disco/halconf.h => keyboards/handwired/onekey/stm32f0_disco/halconf.h +2 -0
@@ 21,6 21,8 @@

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_PWM TRUE

#include_next <halconf.h>

M keyboards/handwired/onekey/stm32f0_disco/mcuconf.h => keyboards/handwired/onekey/stm32f0_disco/mcuconf.h +3 -0
@@ 23,5 23,8 @@

#include_next <mcuconf.h>

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_PWM_USE_TIM3
#define STM32_PWM_USE_TIM3 TRUE

M platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h => platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h +1 -0
@@ 80,6 80,7 @@
#define STM32_ADC_ADC1_DMA_PRIORITY 2
#define STM32_ADC_IRQ_PRIORITY 2
#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2
#define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(1, 1)

/*
 * GPT driver system settings.