Skip to content

Commit

Permalink
onekey: enable ADC for Bluepill and Blackpill (qmk#18545)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and ramonimbao committed Nov 28, 2022
1 parent 36f76a2 commit ba197d7
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/blackpill_f401/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/blackpill_f401/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/blackpill_f411/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/blackpill_f411/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/blackpill_f411_tinyuf2/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/blackpill_f411_tinyuf2/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/bluepill/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_PWM TRUE

#include_next <halconf.h>
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/bluepill/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/bluepill_f103c6/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#pragma once

#define HAL_USE_ADC TRUE

#define HAL_USE_PWM TRUE

#include_next <halconf.h>
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/bluepill_f103c6/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ba197d7

Please sign in to comment.