Обновление
This commit is contained in:
parent
28a87268f1
commit
2519f4815f
6
Pwms.c
6
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);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue