Hello! I have a question concerning assembler commands in custom C-code that I want to integrate in an simulink s-function block for code generation by Real Time Workshop afterwards. Speaking more detailed: I wanted to implement an own SCI-Protocol, specified by my University department, in a Simulink block, so I can easily use it in a model for transforming it into C-Code that will run on my TI 2808 DSP. For the SCI and GPIO initialization, I will need assembler commands like "EALLOW" etc. to be able to write certain registers. The problem is, that the lcc compiler does not accept the command "asm(…)", resulting in an error that the symbol asm is undefined. Does anyone have an answer that would solve my problem or lead me closer to the goal? Any help is appreciated! Thanks so far!
MATLAB: Assembler commands in C-code for S-Functions
real time workshops-functionsti280x dsp
Best Answer