view src/cs/drivers/drv_app/r2d/lcd_functions.h @ 303:f76436d19a7a default tip

!GPRS config: fix long-standing AT+COPS chance hanging bug There has been a long-standing bug in FreeCalypso going back years: sometimes in the AT command bring-up sequence of an ACI-only MS, the AT+COPS command would produce only a power scan followed by cessation of protocol stack activity (only L1 ADC traces), instead of the expected network search sequence. This behaviour was seen in different FC firmware versions going back to Citrine, and seemed to follow some law of chance, not reliably repeatable. This bug has been tracked down and found to be specific to !GPRS configuration, stemming from our TCS2/TCS3 hybrid and reconstruction of !GPRS support that was bitrotten in TCS3.2/LoCosto version. ACI module psa_mms.c, needed only for !GPRS, was missing in the TCS3 version and had to be pulled from TCS2 - but as it turns out, there is a new field in the MMR_REG_REQ primitive that needs to be set correctly, and that psa_mms.c module is the place where this initialization needed to be added.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Jun 2023 08:23:37 +0000
parents 4e78acac3d88
children
line wrap: on
line source

/************************************************************************************
* lcd_functions.h :            contains low level function for the lcd				*
*																					*	
*																					*
*	Author: Davide Carpegna															*
*																					*
*	version: 1.0																	*
*																					*
*	Date: 13/11/2000																*
*   (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved		*
*                                                                                   *
* --------------------------------------------------------------------------------- *
*                                                                                   *
*   History:                                                                        *
*                                                                                   *
*   10/18/2001 - Updated for R2D by Christophe Favergeon		                    * 
*                                                                                   *		
************************************************************************************/
#ifndef __LCD_FUNCTIONS_H_
#define __LCD_FUNCTIONS_H_

#include "rv/rv_general.h"
#include "rvf/rvf_api.h"
#include "rv/general.h"
#include "r2d/uwire.h" 
#include "r2d/r2d_config.h"

/**********     VIDEO MODE definition     *********/

typedef enum {
				NORMAL, 
				INVERSE
			}T_VIDEO_MODE;

//LCD physical configuration:
//LCD_MODE->1 reversed LCD (origin in the bottom right corner)
//LCD_MODE->0 normal positioned LCD (origin in the top left corner)
#ifndef _WINDOWS
	#define LCD_MODE				1
#else
	#define LCD_MODE				0
#endif

/* display dimensions. */
#define DISP_PIXELWIDTH      R2D_WIDTH
#define DISP_PIXELHEIGHT     R2D_HEIGHT
#define DISP_PAGEHEIGHT      (R2D_HEIGHT >> 3)

//display center 	
#define X_CENTER			(R2D_WIDTH>>1)
#define Y_CENTER			((DISP_PAGEHEIGHT>>1)-1)

//functions prototype
void LCD_Clear_ll (void);
void LCD_Init_ll(void);
void LCD_Write_String(UINT8 row, UINT8 column, char *string, T_VIDEO_MODE mode);
void LCD_Write_Center( char *string);

/******* ICONS DEFINITION **********/

#define LCD_BATTERY_ICON_0  (0)        
#define LCD_BATTERY_ICON_1  (1)    
#define LCD_BATTERY_ICON_2  (2)    
#define LCD_BATTERY_ICON_3  (3)    
#define LCD_BATTERY_ICON_4  (4)
#define LCD_ENVELOP_ICON    (5)
#define LCD_RECORD_ICON     (6)
#define LCD_ONLINE_ICON     (7)
#define LCD_ANTENNA_ICON_0  (8)
#define LCD_ANTENNA_ICON_1  (9)
#define LCD_ANTENNA_ICON_2  (10)
#define LCD_ANTENNA_ICON_3  (11)
#define LCD_ANTENNA_ICON_4  (12)
#define LCD_CLEAR_ICON      (13)



#endif /*__LCD_FUNCTIONS_H_*/