Hello
I am trying to add a C-code from an Arduino IDE program.
It is a micros() function.
I have problem, as this function calls a cli() --( macro) that executes an assembler macro to disable interrupt.
Any help will be great.
C-code->how to add micros() function?
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: C-code->how to add micros() function?
Hello,
Looks like you can simply use the Timer component available under data->storage to do a similar thing and get the time in microseconds. Then no C code nessisary
Looks like you can simply use the Timer component available under data->storage to do a similar thing and get the time in microseconds. Then no C code nessisary
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 343
- Joined: Fri Jan 26, 2018 12:30 pm
- Location: South Australia
- Has thanked: 44 times
- Been thanked: 60 times
- Contact:
Re: C-code->how to add micros() function?
Well... It is one way to do it.
Another way is to use C-code..
Thanks Ben
Another way is to use C-code..
Thanks Ben