view src/cs/drivers/drv_app/r2d/r2d_refresh.c @ 629:3231dd9b38c1

armio.c: make GPIOs 8 & 13 outputs driving 1 on all "classic" targets Calypso GPIOs 8 & 13 are pinmuxed with MCUEN1 & MCUEN2, respectively, and on powerup these pins are MCUEN, i.e., outputs driving 1. TI's code for C-Sample and earlier turns them into GPIOs configured as outputs also driving 1 - so far, so good - but TI's code for BOARD 41 (which covers D-Sample, Leonardo and all real world Calypso devices derived from the latter) switches them from MCUEN to GPIOs, but then leaves them as inputs. Given that the hardware powerup state of these two pins is outputs driving 1, every Calypso board design MUST be compatible with such driving; typically these GPIO signals will be either unused and unconnected or connected as outputs driving some peripheral. Turning these pins into GPIO inputs will result in floating inputs on every reasonably-wired board, thus I am convinced that this configuration is nothing but a bug on the part of whoever wrote this code at TI. This floating input bug had already been fixed earlier for GTA modem and FCDEV3B targets; the present change makes the fix unconditional for all "classic" targets. The newly affected targets are D-Sample, Leonardo, Tango and GTM900.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Jan 2020 05:38:26 +0000
parents ea4daae6e1ce
children 41c03ea90403
line wrap: on
line source

/**
                                                                          
	@file:	r2d_refresh.c
	
	@author Christophe Favergeon                              
                                                                          
    @version 0.5	

    Purpose: Includes LCDs depend definitions for the refresh task
	         (Second part of LCD APIs)
	
*/

/*
																			
 	Date       	Modification												
  ------------------------------------									
    06/02/2001	Create		
	10/18/2001  Version 0.5 for first integration with Riviera database
																											    
																			
 (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved
*/




#include "rv/general.h"
#include "rvf/rvf_api.h"
#include "r2d/r2d_messages.h"
#include "r2d/r2d_env.h"
#include "r2d/lcd_messages_ti.h"
#include "r2d/lcd_messages.h"
#include "r2d/r2d_config.h"
#include "r2d/r2d.h"
#include "r2d/r2d_i.h"
#ifdef _WINDOWS
#include <Windows.h>
#endif
#include "r2d/uwire.h"


extern T_RVF_MB_ID r2d_mb_id;

INT16 r2d_update_ul_x,r2d_update_ul_y,r2d_update_br_x,r2d_update_br_y;


#if (R2D_REFRESH == R2D_VERTICAL)
  UINT32 r2d_lcd_memory_words[(((R2D_WIDTH*R2D_MWHEIGHT)+1))];
#else
  UINT32 r2d_lcd_memory_words[(((R2D_MWWIDTH*R2D_HEIGHT)+1))];
#endif

void r2d_reinit_update_region(void)
{
	rvf_lock_mutex(r2d_g_global_mutex);
	//r2d_update_ul_x=0;
	//r2d_update_ul_y=0;
	//r2d_update_br_x=R2D_WIDTH-1;
	//r2d_update_br_y=R2D_HEIGHT-1;
	r2d_update_ul_x=R2D_WIDTH;
	r2d_update_ul_y=R2D_HEIGHT;
	r2d_update_br_x=-1;
	r2d_update_br_y=-1;
	rvf_unlock_mutex(r2d_g_global_mutex);
}

#if (R2D_EMBEDDED_LCD == R2D_PC_COLOR_LCD)
#include "lcds/ColorPC/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_PC_CSAMPLE)
#include "lcds/PC_CSAMPLE/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_PC_DSAMPLE)
#include "lcds/PC_DSAMPLE/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_SIMPLE_LCD) 
#include "lcds/Simple/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_MIRRORED_LCD) 
  #ifdef CONFIG_TARGET_C139
    #include "lcds/c139/r2d_task_i.c"
  #else
    #include "lcds/Simple/r2d_task_i.c"
  #endif
#endif

#if (R2D_EMBEDDED_LCD == R2D_CUSTOMER_LCD) 
#include "lcds/Customer/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_HORIZONTAL_LCD) 
#include "lcds/Horizontal/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_BOARD_COLOR_LCD) 
#include "lcds/ColorBoard/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_BOARD_DSAMPLE)
#include "lcds/D_Sample/r2d_task_i.c"
#endif

#if (R2D_EMBEDDED_LCD == R2D_BOARD_BW_DSAMPLE)
#include "lcds/BW_D_Sample/r2d_task_i.c"
#endif