diff --git a/platform/exp5438/clock.c b/platform/exp5438/clock.c index f701af9b7..4d0896ba9 100644 --- a/platform/exp5438/clock.c +++ b/platform/exp5438/clock.c @@ -201,7 +201,7 @@ clock_delay(unsigned int i) /*---------------------------------------------------------------------------*/ #ifdef __GNUC__ void -__delay_cycles(int c) +__delay_cycles(unsigned long c) { c /= 4; asm("add #-1, r15"); diff --git a/platform/exp5438/hal_lcd.c b/platform/exp5438/hal_lcd.c index e2475010f..fdaf32203 100644 --- a/platform/exp5438/hal_lcd.c +++ b/platform/exp5438/hal_lcd.c @@ -381,7 +381,12 @@ void halLcdActive(void) // Wait a minimum of 25ms after issuing "start oscillation" // command (to accomodate for MCLK up to 25MHz) - __delay_cycles(250000); + { + int i; + for(i = 0; i < 5; ++i) { + __delay_cycles(50000); + } + } LcdInitMacro[3 * 6 + 5] |= BIT3; LcdInitMacro[3 * 6 + 5] &= ~BIT0;