How to used interrupt flexCAN?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to used interrupt flexCAN?

702 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

416 次查看
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 项奖励
回复

416 次查看
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 项奖励
回复