canbus: Call can_notify_rx() at startup so low-level code does not need to

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2021-02-09 18:37:44 -05:00
parent 5c4cf54557
commit 8666a724db
2 changed files with 1 additions and 3 deletions

View File

@@ -290,9 +290,6 @@ can_init(void)
canbus_set_filter(CANBUS_ID_SET);
/*##-3- Configure Interrupts #################################*/
SOC_CAN->IER = CAN_IER_FMPIE0; // RX mailbox IRQ
armcm_enable_irq(CAN_IRQHandler, CAN_RX0_IRQn, 0);
if (CAN_RX0_IRQn != CAN_RX1_IRQn)
armcm_enable_irq(CAN_IRQHandler, CAN_RX1_IRQn, 0);