How to used interrupt flexCAN?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to used interrupt flexCAN?

543 Views
profprogrammer
Contributor III

hello.

i used FLexCAN + KSDK 1.3

i want use flexCAN interupt.

 

void canCom1_MbHandler(void) {     FLEXCAN_DRV_IRQHandler(canCom1_IDX); }

 

When I send data it is interruption works.

when I obtain data this interruption works.

 

*how to define that this interruption from transmission or from reception?

in this function.

* How to desable Tx interrupt

Labels (1)
0 Kudos
2 Replies

257 Views
DavidS
NXP Employee
NXP Employee

Hi Prof,

KSDK_1.3 has FlexCAN examples for the TWR-K64F120M development board that can be reviewed:

C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\driver_examples\flexcan\flexcan_loopback

OR

C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\driver_examples\flexcan\flexcan_network

Also each Kinetis device with a FlexCAN module has an associated reference manual for the FlexCAN with specific section called "Receive process" that should be reviewed.

Regards,

David

0 Kudos

257 Views
profprogrammer
Contributor III

Examples of kinetis don't suit me.

I want to obtain data from mailBox in interruption, but not in separate process.

how in interruption to define, what there was a transmission or reception?

0 Kudos