Skip to content

Commit

Permalink
can.h always has CAN3
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed May 23, 2019
1 parent 1f97c21 commit 3cf8db9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions board/drivers/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,6 @@ void can_rx(uint8_t can_number) {
}
}

#ifndef CUSTOM_CAN_INTERRUPTS

void CAN1_TX_IRQHandler() { process_can(0); }
void CAN1_RX0_IRQHandler() { can_rx(0); }
void CAN1_SCE_IRQHandler() { can_sce(CAN1); }
Expand All @@ -414,13 +412,9 @@ void CAN2_TX_IRQHandler() { process_can(1); }
void CAN2_RX0_IRQHandler() { can_rx(1); }
void CAN2_SCE_IRQHandler() { can_sce(CAN2); }

#ifdef CAN3
void CAN3_TX_IRQHandler() { process_can(2); }
void CAN3_RX0_IRQHandler() { can_rx(2); }
void CAN3_SCE_IRQHandler() { can_sce(CAN3); }
#endif

#endif

void can_send(CAN_FIFOMailBox_TypeDef *to_push, uint8_t bus_number) {
if (safety_tx_hook(to_push) && !can_autobaud_enabled[bus_number]) {
Expand Down

0 comments on commit 3cf8db9

Please sign in to comment.