solarix Posted February 28, 2006 Report Share Posted February 28, 2006 What is the syntax for MIOS_Delay(); from within sdcc? Every iteration I try fails.Thanks,Jerry Quote Link to comment Share on other sites More sharing options...
TK. Posted February 28, 2006 Report Share Posted February 28, 2006 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 workBe 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 timerBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
solarix Posted March 7, 2006 Author Report Share Posted March 7, 2006 TK,Thanks. This was for a debug operation I needed to perform, I figured a delay would cause a buffer overrun.Thanks you!Jerry Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.