
#ifndef _WINDOWS
	#include "r2d/uwire.h"
#endif


void r2d_lcd_power_on(void)
{
}

void r2d_lcd_power_off(void)
{
}

void r2d_refresh(void)
{
	UINT16 i,j;

    UINT32 v;

	
	UINT32 *p;
	


  	
    //rvf_send_trace("R2D REFRESH",strlen("R2D REFRESH"), NULL_PARAM, 
	//		   RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX );

	p=r2d_g_framebuffer->p_memory_words;

	// First word out of refresh buffer


   
	lcd_set_pos(0,0);
    
	i=0;
	while(i<R2D_HEIGHT)
	{
	  j=0;
	  while(j<R2D_MWWIDTH)
	  {
            // If can read a new word from framebuffer
		    // and write it to refresh buffer
		    //if (r2d_p_refresh_state[i]+4<=R2D_MWHEIGHT*4)
		
             //r2d_p_refresh_state[i]+=4;

		  
			v=*p++;
		  

			 
		     lcd_transmit_data((v) & 0xFFFFFFFF);

             j++;
      }
	  i++;
    } 
	
    r2d_reinit_update_region();
#ifdef _WINDOWS
	lcd_refresh();
#endif
}



