solarix Posted February 28, 2006 Report Posted February 28, 2006 What is the syntax for MIOS_Delay(); from within sdcc? Every iteration I try fails.Thanks,Jerry Quote
TK. Posted February 28, 2006 Report 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
solarix Posted March 7, 2006 Author Report 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
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.