~ruther/qmk_firmware

e0115caab92167b23ff9dd9d1f68cd03c830bfec — Ryan 2 years ago def966c
onekey: enable ADC for Bluepill and Blackpill (#18545)

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

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE

M keyboards/handwired/onekey/blackpill_f401/mcuconf.h => keyboards/handwired/onekey/blackpill_f401/mcuconf.h +3 -0
@@ 18,6 18,9 @@

#include_next "mcuconf.h"

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE


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

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE

M keyboards/handwired/onekey/blackpill_f411/mcuconf.h => keyboards/handwired/onekey/blackpill_f411/mcuconf.h +3 -0
@@ 18,6 18,9 @@

#include_next "mcuconf.h"

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE


M keyboards/handwired/onekey/blackpill_f411_tinyuf2/halconf.h => keyboards/handwired/onekey/blackpill_f411_tinyuf2/halconf.h +3 -0
@@ 16,7 16,10 @@

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE

#include_next <halconf.h>

M keyboards/handwired/onekey/blackpill_f411_tinyuf2/mcuconf.h => keyboards/handwired/onekey/blackpill_f411_tinyuf2/mcuconf.h +3 -0
@@ 18,6 18,9 @@

#include_next "mcuconf.h"

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE


M keyboards/handwired/onekey/bluepill/halconf.h => keyboards/handwired/onekey/bluepill/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/bluepill/mcuconf.h => keyboards/handwired/onekey/bluepill/mcuconf.h +3 -0
@@ 23,6 23,9 @@

#include_next <mcuconf.h>

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE


M keyboards/handwired/onekey/bluepill_f103c6/halconf.h => keyboards/handwired/onekey/bluepill_f103c6/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/bluepill_f103c6/mcuconf.h => keyboards/handwired/onekey/bluepill_f103c6/mcuconf.h +3 -0
@@ 23,6 23,9 @@

#include_next <mcuconf.h>

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE

#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE