What is the syntax for MIOS_Delay(); from within sdcc? Every iteration I try fails.
Thanks,
Jerry
What is the syntax for MIOS_Delay(); from within sdcc? Every iteration I try fails.
Thanks,
Jerry
Hi Jerry,
I just have noticed, that this is an error in the cmios.h file - replace “extern void MIOS_Delay(void) __wparam;” by “extern void MIOS_Delay(unsigned char delay) __wparam;” and it should work
Be careful with MIOS_Delay(), because it will block the MIDI parser for incoming events. Once the user task is delayed by more than 20 mS, a buffer overrun could occur. Normaly I don’t use MIOS_Delay at all (only for debugging), and prefer the use of a timer
Best Regards, Thorsten.
TK,
Thanks. This was for a debug operation I needed to perform, I figured a delay would cause a buffer overrun.
Thanks you!
Jerry