FreeCalypso > hg > fc-magnetite
view src/cs/drivers/drv_app/r2d/lcds/Horizontal/r2d_task_i.c @ 607:030ce1ddd4f7
targets/gtm900.{conf,h}: temporary test build as Leonardo
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 17 Jun 2019 20:22:53 +0000 |
parents | 945cf7f506b2 |
children |
line wrap: on
line source
#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 }