Обновление платы на V2

This commit is contained in:
cfif 2026-05-14 10:48:13 +03:00
parent 6854977f26
commit 844d8fd604
1 changed files with 12 additions and 12 deletions

24
Pwms.c
View File

@ -118,7 +118,7 @@ void Pwms_Init(tLoggerInterface *logger) {
&env->pwmFront, &env->pwmFront,
true, true,
PERIOD_TICKS, PERIOD_TICKS,
PERIOD_TICKS * 5 / 100, PERIOD_TICKS * 10 / 100,
4U, 4U,
0xFF, 0xFF,
Bsp_Tpu_PwmFrontCallback, Bsp_Tpu_PwmFrontCallback,
@ -139,7 +139,7 @@ void Pwms_Init(tLoggerInterface *logger) {
3U, 3U,
0xFF, 0xFF,
Bsp_Tpu_PwmFrontCaptureCallback, Bsp_Tpu_PwmFrontCaptureCallback,
Bsp_Tpu_PwmFrontCapture_OverflowCallBack NULL
); );
env->pwmFrontCaptureIO = vPwmCaptureGetIo(&env->pwmFrontCapture); env->pwmFrontCaptureIO = vPwmCaptureGetIo(&env->pwmFrontCapture);
@ -161,11 +161,11 @@ void Pwms_Init(tLoggerInterface *logger) {
&env->pwmRear, &env->pwmRear,
false, false,
PERIOD_TICKS, PERIOD_TICKS,
PERIOD_TICKS * 5 / 100, PERIOD_TICKS * 10 / 100,
27U, 27U,
0xFF, 0xFF,
Bsp_Tpu_PwmRearCallback, Bsp_Tpu_PwmRearCallback,
Bsp_Tpu_PwmRearOverflowCallBack NULL
); );
env->pwmRearIo = vPwmGetIo(&env->pwmRear); env->pwmRearIo = vPwmGetIo(&env->pwmRear);
@ -182,7 +182,7 @@ void Pwms_Init(tLoggerInterface *logger) {
17U, 17U,
0xFF, 0xFF,
Bsp_Tpu_PwmRearCaptureCallback, Bsp_Tpu_PwmRearCaptureCallback,
Bsp_Tpu_PwmRearCapture_OverflowCallBack NULL
); );
@ -205,11 +205,11 @@ void Pwms_Init(tLoggerInterface *logger) {
&env->pwmFrontReserved, &env->pwmFrontReserved,
false, false,
PERIOD_TICKS, PERIOD_TICKS,
PERIOD_TICKS * 5 / 100, PERIOD_TICKS * 10 / 100,
15U, 15U,
0xFF, 0xFF,
Bsp_Tpu_PwmFrontReserveCallback, Bsp_Tpu_PwmFrontReserveCallback,
Bsp_Tpu_PwmFrontReserveOverflowCallBack NULL
); );
env->pwmFrontReservedIo = vPwmGetIo(&env->pwmFrontReserved); env->pwmFrontReservedIo = vPwmGetIo(&env->pwmFrontReserved);
@ -226,7 +226,7 @@ void Pwms_Init(tLoggerInterface *logger) {
14U, 14U,
0xFF, 0xFF,
Bsp_Tpu_PwmFrontReserveCaptureCallback, Bsp_Tpu_PwmFrontReserveCaptureCallback,
Bsp_Tpu_PwmFrontReserveCapture_OverflowCallBack NULL
); );
env->pwmFrontReservedCaptureIO = vPwmCaptureGetIo(&env->pwmFrontReservedCapture); env->pwmFrontReservedCaptureIO = vPwmCaptureGetIo(&env->pwmFrontReservedCapture);
@ -248,11 +248,11 @@ void Pwms_Init(tLoggerInterface *logger) {
&env->pwmRearReserved, &env->pwmRearReserved,
false, false,
PERIOD_TICKS, PERIOD_TICKS,
PERIOD_TICKS * 5 / 100, PERIOD_TICKS * 10 / 100,
23U, 23U,
0xFF, 0xFF,
Bsp_Tpu_PwmRearReserveCallback, Bsp_Tpu_PwmRearReserveCallback,
Bsp_Tpu_PwmRearReserveOverflowCallBack NULL
); );
env->pwmRearReservedIo = vPwmGetIo(&env->pwmRearReserved); env->pwmRearReservedIo = vPwmGetIo(&env->pwmRearReserved);
@ -261,7 +261,7 @@ void Pwms_Init(tLoggerInterface *logger) {
// TPU_CH21: PortD 29: ALT6 // TPU_CH21: PortD 29: ALT6
tInitStruct.u32PortPins = PORT_PIN_29; tInitStruct.u32PortPins = PORT_PIN_29;
tInitStruct.uPortPinMux.u32PortPinMode = PORT_ALT6_FUNC_MODE; tInitStruct.uPortPinMux.u32PortPinMode = PORT_ALT6_FUNC_MODE;
PORT_InitPins(PORT_C, &tInitStruct); PORT_InitPins(PORT_D, &tInitStruct);
PWM_Capture_Initial( PWM_Capture_Initial(
&env->pwmRearReservedCapture, &env->pwmRearReservedCapture,
@ -269,7 +269,7 @@ void Pwms_Init(tLoggerInterface *logger) {
21U, 21U,
0xFF, 0xFF,
Bsp_Tpu_PwmRearReserveCaptureCallback, Bsp_Tpu_PwmRearReserveCaptureCallback,
Bsp_Tpu_PwmRearReserveCapture_OverflowCallBack NULL
); );
env->pwmRearReservedCaptureIO = vPwmCaptureGetIo(&env->pwmRearReservedCapture); env->pwmRearReservedCaptureIO = vPwmCaptureGetIo(&env->pwmRearReservedCapture);