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);