From 2300f447f93d80c8f1f6e459cad77f98b9afccd8 Mon Sep 17 00:00:00 2001 From: KLASSENTS Date: Mon, 3 Feb 2025 09:54:19 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=8B=D0=BA=D0=BB=D1=8E=D1=87=D0=B8?= =?UTF-8?q?=D0=BB=D0=B0=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8E=20=D0=B2=D0=BE=D0=BB=D0=BD=D0=BE=D0=B2=D0=BE=D0=B9=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D1=8B,=20=D0=B8=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B5=20=D0=BD=D0=B0=20=D0=BD=D0=BE=D0=B3=D0=B5=20=D0=B2=D1=8B?= =?UTF-8?q?=D1=85=D0=BE=D0=B4=D0=B0=20=D1=82=D0=B0=D0=B9=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=201=20=D0=B1=D1=8B=D0=BB=20=D0=BC=D0=B5=D0=B0=D0=BD?= =?UTF-8?q?=D0=B4=D1=80,=20=D0=BA=D0=BE=D0=B3=D0=B4=D0=B0=20=D0=B2=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B0=D0=BB=D0=B8=20tone()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/arduino/Tone.cpp | 2 +- .../arduino/mik32/hal/peripherals/Include/mik32_hal_timer16.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cores/arduino/Tone.cpp b/cores/arduino/Tone.cpp index 8dba4e1..6c9f04d 100644 --- a/cores/arduino/Tone.cpp +++ b/cores/arduino/Tone.cpp @@ -45,7 +45,7 @@ static void Timer16_Init(uint8_t prescaler) htimer16_1.Trigger.TimeOut = TIMER16_TIMEOUT_DISABLE; htimer16_1.Filter.ExternalClock = TIMER16_FILTER_NONE; htimer16_1.Filter.Trigger = TIMER16_FILTER_NONE; - htimer16_1.Waveform.Enable = TIMER16_WAVEFORM_GENERATION_ENABLE; + htimer16_1.Waveform.Enable = TIMER16_WAVEFORM_GENERATION_DISABLE; htimer16_1.Waveform.Polarity = TIMER16_WAVEFORM_POLARITY_NONINVERTED; htimer16_1.EncoderMode = TIMER16_ENCODER_DISABLE; HAL_Timer16_Init(&htimer16_1); diff --git a/cores/arduino/mik32/hal/peripherals/Include/mik32_hal_timer16.h b/cores/arduino/mik32/hal/peripherals/Include/mik32_hal_timer16.h index 60dcc2c..5798938 100644 --- a/cores/arduino/mik32/hal/peripherals/Include/mik32_hal_timer16.h +++ b/cores/arduino/mik32/hal/peripherals/Include/mik32_hal_timer16.h @@ -144,8 +144,8 @@ typedef enum __HAL_Timer16_EncoderTypeDef */ typedef enum __HAL_Timer16_WaveformGenTypeDef { - TIMER16_WAVEFORM_GENERATION_ENABLE = 0, /**< Выключить генерацию волновой формы. */ - TIMER16_WAVEFORM_GENERATION_DISABLE = 1 /**< Включить генерацию волновой формы. */ + TIMER16_WAVEFORM_GENERATION_ENABLE = 0, /**< Включить генерацию волновой формы. */ + TIMER16_WAVEFORM_GENERATION_DISABLE = 1 /**< Выключить генерацию волновой формы. */ } HAL_Timer16_WaveformGenTypeDef; /**