This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
qmk_firmware
mirror of
https://github.com/qmk/qmk_firmware/
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1.6k
Wiki
Activity
Browse Source
onekey: Enable ADC for STM32F072 Discovery (
#18592
)
pull/18601/head
Ryan
1 year ago
committed by
GitHub
parent
64b1ed4550
commit
4d6fab1cfa
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
3 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
keyboards/handwired/onekey/stm32f0_disco/halconf.h
+3
-0
keyboards/handwired/onekey/stm32f0_disco/mcuconf.h
+1
-0
platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h
+ 2
- 0
keyboards/handwired/onekey/stm32f0_disco/halconf.h
View File
@ -21,6 +21,8 @@
#
pragma once
#
define HAL_USE_ADC TRUE
#
define HAL_USE_PWM TRUE
#
include
_next <halconf.h>
+ 3
- 0
keyboards/handwired/onekey/stm32f0_disco/mcuconf.h
View File
@ -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
+ 1
- 0
platforms/chibios/boards/GENERIC_STM32_F072XB/configs/mcuconf.h
View File
@ -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
.
Write
Preview
Loading…
Cancel
Save