F.A.Q. » F.A.Q. » ISR in Ti TMS320, DSP/BIOS, TI Code Composer


ISR in Ti TMS320, DSP/BIOS, TI Code Composer

3981 Betrachtungen
Seite: 1
MichaelKamsties
avatar
Administrator
75 Beiträge

ISR in Ti TMS320, DSP/BIOS, TI Code Composer

How can I use an ISR in Ti TMS320, DSP/BIOS, TI Code Composer?

MichaelKamsties
avatar
Administrator
75 Beiträge

Re: ISR in Ti TMS320, DSP/BIOS, TI Code Composer

The solution is the using of a Stereotype which is added to the operation.

This toolchain needs the following

interrupt void MY_ISR( void ); in .H file

interrupt void MY_ISR( void ) in .C file {

...

}

This stereotype should set the properties:

  • C_CG::Operation::Me = (empty)
  • C_CG::Operation::MeDeclType = void
  • C_CG::Type::ReturnType = interrupt void

the last step is to add the interrupt and the operation to the .tcf file

for example:
Interrupt "<ínterrupt name>" and function "MY_ISR"

place the following line in the .tcf file
bios.PIE.instance("<interrupt name>").fxn = prog.extern("MY_ISR");

Seite: 1

Currently Online:

There is nobody online.

Welcome to our latest member: lammils