Обновление
This commit is contained in:
parent
fee0985b9f
commit
6854977f26
35
Pwms.c
35
Pwms.c
|
|
@ -277,41 +277,6 @@ void Pwms_Init(tLoggerInterface *logger) {
|
|||
//конец--------------------------PwmRearReserve-------------------------------------------------
|
||||
//конец--------------------------PwmRearReserve-------------------------------------------------
|
||||
|
||||
/*
|
||||
// TPU_CH0: PortB 8: ALT5
|
||||
tInitStruct.u32PortPins = PORT_PIN_8;
|
||||
tInitStruct.uPortPinMux.u32PortPinMode = PORT_ALT5_FUNC_MODE;
|
||||
PORT_InitPins(PORT_B, &tInitStruct);
|
||||
|
||||
PWM_Initial(
|
||||
&env->pwm,
|
||||
true,
|
||||
PERIOD_TICKS,
|
||||
PERIOD_TICKS * 5 / 100,
|
||||
0U,
|
||||
0xFF,
|
||||
Bsp_Tpu_PwmCallback,
|
||||
Bsp_Tpu_OverflowCallBack
|
||||
);
|
||||
|
||||
env->pwmIo = vPwmGetIo(&env->pwm);
|
||||
|
||||
|
||||
// TPU_CH1: PortA 0: ALT5
|
||||
tInitStruct.u32PortPins = PORT_PIN_0;
|
||||
tInitStruct.uPortPinMux.u32PortPinMode = PORT_ALT5_FUNC_MODE;
|
||||
PORT_InitPins(PORT_A, &tInitStruct);
|
||||
|
||||
PWM_Capture_Initial(
|
||||
&env->pwmCapture,
|
||||
false,
|
||||
1U,
|
||||
0xFF,
|
||||
Bsp_Tpu_PwmCaptureCallback,
|
||||
Bsp_Tpu_Capture_OverflowCallBack
|
||||
);
|
||||
*/
|
||||
|
||||
|
||||
LoggerInfoStatic(LOGGER, LOG_SIGN, "Initialization PWM - OK")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue