From 2519f4815fc658efe43cd1b2b19c6c3439685e04 Mon Sep 17 00:00:00 2001 From: cfif Date: Thu, 5 Feb 2026 10:59:40 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pwms.c | 6 +++++- Pwms.h | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Pwms.c b/Pwms.c index d1889d9..ae358e8 100644 --- a/Pwms.c +++ b/Pwms.c @@ -5,6 +5,8 @@ #include "fc7xxx_driver_port.h" #include "Pwms.h" +#define LOG_SIGN "INIT" +#define LOGGER logger tPwms PWMS; @@ -24,7 +26,7 @@ void Bsp_Tpu_Capture_OverflowCallBack(void) { asm("nop"); } -void Pwms_Init() { +void Pwms_Init(tLoggerInterface *logger) { tPwms *env = &PWMS; PORT_InitType tInitStruct = {0}; @@ -76,6 +78,8 @@ void Pwms_Init() { Bsp_Tpu_Capture_OverflowCallBack ); + LoggerInfoStatic(LOGGER, LOG_SIGN, "Initialization PWM - OK") + env->pwmCaptureIO = vPwmCaptureGetIo(&env->pwmCapture); } diff --git a/Pwms.h b/Pwms.h index fe1913f..bdd9278 100644 --- a/Pwms.h +++ b/Pwms.h @@ -7,6 +7,7 @@ #include "PwmFlagchip.h" #include "PwmCaptureFlagchip.h" +#include "LoggerInterface.h" typedef struct { tPwmFlagchip pwm; @@ -19,6 +20,6 @@ typedef struct { extern tPwms PWMS; -void Pwms_Init(); +void Pwms_Init(tLoggerInterface *logger); #endif //FLAG_PWMS_H