after pin set PTC2-rxd,PTC3-txd,and lin stack --LIn_cfg set,
and code blow:
l_sys_init();
l_ifc_init(LI0);
lin_trcv_init();
l_ifc_wake_up(LI0);
l_sys_irq_restore(LI0);
ld_init(LI0);
the question is I can not enter rx interrupt! why ? please help me to point the error,thank you。
Solved! Go to Solution.
Hello Katrinal wang,
The l_ifc_init already sets the IRQ and the callback is used in the implementation of the stack. If you want to use the interruption you will need use the driver baremetal.
If you want to check where the interrupt is handled check the CallbackHandler in the lin.c file.
Best Regards,
Alexis Andalon
Hello Katrinal wang,
The l_ifc_init already sets the IRQ and the callback is used in the implementation of the stack. If you want to use the interruption you will need use the driver baremetal.
If you want to check where the interrupt is handled check the CallbackHandler in the lin.c file.
Best Regards,
Alexis Andalon