How to used interrupt flexCAN?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to used interrupt flexCAN?

738件の閲覧回数
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 返答(返信)

452件の閲覧回数
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 件の賞賛
返信

452件の閲覧回数
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 件の賞賛
返信