Skip to content

Commit

Permalink
onekey: Enable ADC for STM32F072 Discovery (#18592)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Oct 5, 2022
1 parent 64b1ed4 commit 4d6fab1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/stm32f0_disco/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/stm32f0_disco/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4d6fab1

Please sign in to comment.