Jump to content

Recommended Posts

Posted

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.

Posted

TK,

Thanks. This was for a debug operation I needed to perform, I figured a delay would cause a buffer overrun.

Thanks you!

Jerry

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...