Mixed arm and thumb code
Posted by mpthompson on
URL: http://elua-development.15.s1.nabble.com/Mixed-arm-and-thumb-code-tp2537643.html
I'm starting to work with the Periodic Interval Timer on the AT91SAM7S and I believe I need to have the interrupt handlers be compiled as 32bit Arm instructions rather than 16bit Thumb instructions. I'm not familiar with scons, but is there an easy way that I can pass custom options to specific C files to control whether the -mthumb option is passed? Or, is the 'irqHandler' in the board_cstartup.s capable of calling the interrupt handler as thumb code? As best I can tell this is not the case and any C code called from the 'irqHandler' must be 32 bit Arm code.
Thanks,
Mike