Uncommented transmission
This commit is contained in:
@@ -383,17 +383,17 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
|
|||||||
}
|
}
|
||||||
else if (htim->Instance == TIM3)
|
else if (htim->Instance == TIM3)
|
||||||
{
|
{
|
||||||
if (TIM3_Clock % 3 == 0)
|
if (TIM3_Clock % 10 == 0)
|
||||||
{
|
{
|
||||||
//transmitCanPacketFromQueue(can1_transmit_queue, &can1_transmit_queue_size, &hcan1);
|
CAN_TransmitRTR(0x500, 8, &hcan2);
|
||||||
|
}
|
||||||
|
else if (TIM3_Clock % 3 == 0)
|
||||||
|
{
|
||||||
|
transmitCanPacketFromQueue(can1_transmit_queue, &can1_transmit_queue_size, &hcan1);
|
||||||
}
|
}
|
||||||
else if (TIM3_Clock % 3 == 1)
|
else if (TIM3_Clock % 3 == 1)
|
||||||
{
|
{
|
||||||
//transmitCanPacketFromQueue(can2_transmit_queue, &can2_transmit_queue_size, &hcan2);
|
transmitCanPacketFromQueue(can2_transmit_queue, &can2_transmit_queue_size, &hcan2);
|
||||||
}
|
|
||||||
else if (TIM3_Clock % 10 == 0)
|
|
||||||
{
|
|
||||||
CAN_TransmitRTR(0x500, 8, &hcan2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TIM3_Clock++;
|
TIM3_Clock++;
|
||||||
|
|||||||
Reference in New Issue
Block a user