From 844d8fd6047355ab5f47f7ef357e87583f9be96b Mon Sep 17 00:00:00 2001 From: cfif Date: Thu, 14 May 2026 10:48:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BB=D0=B0=D1=82=D1=8B=20=D0=BD?= =?UTF-8?q?=D0=B0=20V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pwms.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Pwms.c b/Pwms.c index 3ee1a3d..30a7b25 100644 --- a/Pwms.c +++ b/Pwms.c @@ -118,7 +118,7 @@ void Pwms_Init(tLoggerInterface *logger) { &env->pwmFront, true, PERIOD_TICKS, - PERIOD_TICKS * 5 / 100, + PERIOD_TICKS * 10 / 100, 4U, 0xFF, Bsp_Tpu_PwmFrontCallback, @@ -139,7 +139,7 @@ void Pwms_Init(tLoggerInterface *logger) { 3U, 0xFF, Bsp_Tpu_PwmFrontCaptureCallback, - Bsp_Tpu_PwmFrontCapture_OverflowCallBack + NULL ); env->pwmFrontCaptureIO = vPwmCaptureGetIo(&env->pwmFrontCapture); @@ -161,11 +161,11 @@ void Pwms_Init(tLoggerInterface *logger) { &env->pwmRear, false, PERIOD_TICKS, - PERIOD_TICKS * 5 / 100, + PERIOD_TICKS * 10 / 100, 27U, 0xFF, Bsp_Tpu_PwmRearCallback, - Bsp_Tpu_PwmRearOverflowCallBack + NULL ); env->pwmRearIo = vPwmGetIo(&env->pwmRear); @@ -182,7 +182,7 @@ void Pwms_Init(tLoggerInterface *logger) { 17U, 0xFF, Bsp_Tpu_PwmRearCaptureCallback, - Bsp_Tpu_PwmRearCapture_OverflowCallBack + NULL ); @@ -205,11 +205,11 @@ void Pwms_Init(tLoggerInterface *logger) { &env->pwmFrontReserved, false, PERIOD_TICKS, - PERIOD_TICKS * 5 / 100, + PERIOD_TICKS * 10 / 100, 15U, 0xFF, Bsp_Tpu_PwmFrontReserveCallback, - Bsp_Tpu_PwmFrontReserveOverflowCallBack + NULL ); env->pwmFrontReservedIo = vPwmGetIo(&env->pwmFrontReserved); @@ -226,7 +226,7 @@ void Pwms_Init(tLoggerInterface *logger) { 14U, 0xFF, Bsp_Tpu_PwmFrontReserveCaptureCallback, - Bsp_Tpu_PwmFrontReserveCapture_OverflowCallBack + NULL ); env->pwmFrontReservedCaptureIO = vPwmCaptureGetIo(&env->pwmFrontReservedCapture); @@ -248,11 +248,11 @@ void Pwms_Init(tLoggerInterface *logger) { &env->pwmRearReserved, false, PERIOD_TICKS, - PERIOD_TICKS * 5 / 100, + PERIOD_TICKS * 10 / 100, 23U, 0xFF, Bsp_Tpu_PwmRearReserveCallback, - Bsp_Tpu_PwmRearReserveOverflowCallBack + NULL ); env->pwmRearReservedIo = vPwmGetIo(&env->pwmRearReserved); @@ -261,7 +261,7 @@ void Pwms_Init(tLoggerInterface *logger) { // TPU_CH21: PortD 29: ALT6 tInitStruct.u32PortPins = PORT_PIN_29; tInitStruct.uPortPinMux.u32PortPinMode = PORT_ALT6_FUNC_MODE; - PORT_InitPins(PORT_C, &tInitStruct); + PORT_InitPins(PORT_D, &tInitStruct); PWM_Capture_Initial( &env->pwmRearReservedCapture, @@ -269,7 +269,7 @@ void Pwms_Init(tLoggerInterface *logger) { 21U, 0xFF, Bsp_Tpu_PwmRearReserveCaptureCallback, - Bsp_Tpu_PwmRearReserveCapture_OverflowCallBack + NULL ); env->pwmRearReservedCaptureIO = vPwmCaptureGetIo(&env->pwmRearReservedCapture);