Timer interrupt S-function for Arduino due
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi!
I am trying to implement a S-function which uses one of the built-in timers of the Arduino Due to produce an ISR which outputs a function-call to a connected block.
I have tried making both non-inlined and inlined s-functions both I can't figure out how to define the interrupt handler function.
If I put it directly in my s-function .c-file I want to use the "ssCallSystemWithTid(S,0,tid)" command although since the handler function needs to be a void-void function I can't supply the "S" and "tid" input parameters and therefore I am unable to run the command.
If I try to put the handler function in the .TLC file instead I found the "LibBlockExecuteFcnCall(block, 0)" but that doesn't seem to work either, I actually succeded in building the model but nothing happens at the Arduino...
Anyone that can point me in the right direction here? I feel kind of lost...
Don't know how to include the code in the best way so I attached it as .txt files...
Regards, Max
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!