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:
parent
5c4cf54557
commit
8666a724db
|
@ -213,6 +213,7 @@ void
|
||||||
canbus_set_uuid(void *uuid)
|
canbus_set_uuid(void *uuid)
|
||||||
{
|
{
|
||||||
memcpy(canbus_uuid, uuid, sizeof(canbus_uuid));
|
memcpy(canbus_uuid, uuid, sizeof(canbus_uuid));
|
||||||
|
canbus_notify_rx();
|
||||||
|
|
||||||
// Send initial message
|
// Send initial message
|
||||||
can_process_uuid(0, 0, NULL);
|
can_process_uuid(0, 0, NULL);
|
||||||
|
|
|
@ -290,9 +290,6 @@ can_init(void)
|
||||||
canbus_set_filter(CANBUS_ID_SET);
|
canbus_set_filter(CANBUS_ID_SET);
|
||||||
|
|
||||||
/*##-3- Configure Interrupts #################################*/
|
/*##-3- Configure Interrupts #################################*/
|
||||||
|
|
||||||
SOC_CAN->IER = CAN_IER_FMPIE0; // RX mailbox IRQ
|
|
||||||
|
|
||||||
armcm_enable_irq(CAN_IRQHandler, CAN_RX0_IRQn, 0);
|
armcm_enable_irq(CAN_IRQHandler, CAN_RX0_IRQn, 0);
|
||||||
if (CAN_RX0_IRQn != CAN_RX1_IRQn)
|
if (CAN_RX0_IRQn != CAN_RX1_IRQn)
|
||||||
armcm_enable_irq(CAN_IRQHandler, CAN_RX1_IRQn, 0);
|
armcm_enable_irq(CAN_IRQHandler, CAN_RX1_IRQn, 0);
|
||||||
|
|
Loading…
Reference in New Issue