ISR in Ti TMS320, DSP/BIOS, TI Code Composer
3981 Betrachtungen
Seite:
1
ISR in Ti TMS320, DSP/BIOS, TI Code Composer
30.09.2008 14:26
How can I use an ISR in Ti TMS320, DSP/BIOS, TI Code Composer?
Re: ISR in Ti TMS320, DSP/BIOS, TI Code Composer
30.09.2008 14:43
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");
