[Core] Adjust PWM hardware audio driver for RP2040 (#17723)
This commit is contained in:
parent
efe520645e
commit
19145704e4
22 changed files with 94 additions and 145 deletions
|
@ -27,7 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define AUDIO_PWM_DRIVER PWMD2
|
||||
#define AUDIO_PWM_CHANNEL 3
|
||||
#define AUDIO_PWM_PAL_MODE 1
|
||||
#define AUDIO_STATE_TIMER GPTD1
|
||||
|
||||
#define AUDIO_CLICKY
|
||||
#define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
|
||||
|
|
|
@ -23,6 +23,5 @@
|
|||
#pragma once
|
||||
|
||||
#define HAL_USE_PWM TRUE
|
||||
#define HAL_USE_GPT TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
|
|
|
@ -23,8 +23,5 @@
|
|||
#undef STM32_PWM_USE_TIM4
|
||||
#define STM32_PWM_USE_TIM4 TRUE
|
||||
|
||||
#undef STM32_GPT_USE_TIM1
|
||||
#define STM32_GPT_USE_TIM1 TRUE
|
||||
|
||||
#undef STM32_ST_USE_TIMER
|
||||
#define STM32_ST_USE_TIMER 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue