FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/r2d/r2d_refresh.c @ 0:4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 16 Oct 2020 06:23:26 +0000 |
| parents | |
| children | 1821e301a65b |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4e78acac3d88 |
|---|---|
| 1 /** | |
| 2 | |
| 3 @file: r2d_refresh.c | |
| 4 | |
| 5 @author Christophe Favergeon | |
| 6 | |
| 7 @version 0.5 | |
| 8 | |
| 9 Purpose: Includes LCDs depend definitions for the refresh task | |
| 10 (Second part of LCD APIs) | |
| 11 | |
| 12 */ | |
| 13 | |
| 14 /* | |
| 15 | |
| 16 Date Modification | |
| 17 ------------------------------------ | |
| 18 06/02/2001 Create | |
| 19 10/18/2001 Version 0.5 for first integration with Riviera database | |
| 20 | |
| 21 | |
| 22 (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved | |
| 23 */ | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 #include "rv/general.h" | |
| 29 #include "rvf/rvf_api.h" | |
| 30 #include "r2d/r2d_messages.h" | |
| 31 #include "r2d/r2d_env.h" | |
| 32 #include "r2d/lcd_messages_ti.h" | |
| 33 #include "r2d/lcd_messages.h" | |
| 34 #include "r2d/r2d_config.h" | |
| 35 #include "r2d/r2d.h" | |
| 36 #include "r2d/r2d_i.h" | |
| 37 #ifdef _WINDOWS | |
| 38 #include <Windows.h> | |
| 39 #endif | |
| 40 #include "r2d/uwire.h" | |
| 41 | |
| 42 | |
| 43 extern T_RVF_MB_ID r2d_mb_id; | |
| 44 | |
| 45 INT16 r2d_update_ul_x,r2d_update_ul_y,r2d_update_br_x,r2d_update_br_y; | |
| 46 | |
| 47 | |
| 48 #if (R2D_REFRESH == R2D_VERTICAL) | |
| 49 UINT32 r2d_lcd_memory_words[(((R2D_WIDTH*R2D_MWHEIGHT)+1))]; | |
| 50 #else | |
| 51 UINT32 r2d_lcd_memory_words[(((R2D_MWWIDTH*R2D_HEIGHT)+1))]; | |
| 52 #endif | |
| 53 | |
| 54 void r2d_reinit_update_region(void) | |
| 55 { | |
| 56 rvf_lock_mutex(r2d_g_global_mutex); | |
| 57 //r2d_update_ul_x=0; | |
| 58 //r2d_update_ul_y=0; | |
| 59 //r2d_update_br_x=R2D_WIDTH-1; | |
| 60 //r2d_update_br_y=R2D_HEIGHT-1; | |
| 61 r2d_update_ul_x=R2D_WIDTH; | |
| 62 r2d_update_ul_y=R2D_HEIGHT; | |
| 63 r2d_update_br_x=-1; | |
| 64 r2d_update_br_y=-1; | |
| 65 rvf_unlock_mutex(r2d_g_global_mutex); | |
| 66 } | |
| 67 | |
| 68 #if (R2D_EMBEDDED_LCD == R2D_PC_COLOR_LCD) | |
| 69 #include "lcds/ColorPC/r2d_task_i.c" | |
| 70 #endif | |
| 71 | |
| 72 #if (R2D_EMBEDDED_LCD == R2D_PC_CSAMPLE) | |
| 73 #include "lcds/PC_CSAMPLE/r2d_task_i.c" | |
| 74 #endif | |
| 75 | |
| 76 #if (R2D_EMBEDDED_LCD == R2D_PC_DSAMPLE) | |
| 77 #include "lcds/PC_DSAMPLE/r2d_task_i.c" | |
| 78 #endif | |
| 79 | |
| 80 #if (R2D_EMBEDDED_LCD == R2D_SIMPLE_LCD) | |
| 81 #include "lcds/Simple/r2d_task_i.c" | |
| 82 #endif | |
| 83 | |
| 84 #if (R2D_EMBEDDED_LCD == R2D_MIRRORED_LCD) | |
| 85 #ifdef CONFIG_TARGET_C139 | |
| 86 #include "lcds/c139/r2d_task_i.c" | |
| 87 #else | |
| 88 #include "lcds/Simple/r2d_task_i.c" | |
| 89 #endif | |
| 90 #endif | |
| 91 | |
| 92 #if (R2D_EMBEDDED_LCD == R2D_CUSTOMER_LCD) | |
| 93 #include "lcds/Customer/r2d_task_i.c" | |
| 94 #endif | |
| 95 | |
| 96 #if (R2D_EMBEDDED_LCD == R2D_HORIZONTAL_LCD) | |
| 97 #include "lcds/Horizontal/r2d_task_i.c" | |
| 98 #endif | |
| 99 | |
| 100 #if (R2D_EMBEDDED_LCD == R2D_BOARD_COLOR_LCD) | |
| 101 #include "lcds/ColorBoard/r2d_task_i.c" | |
| 102 #endif | |
| 103 | |
| 104 #if (R2D_EMBEDDED_LCD == R2D_BOARD_DSAMPLE) | |
| 105 #ifdef CONFIG_TARGET_LUNA | |
| 106 #include "lcds/luna/r2d_task_i.c" | |
| 107 #else | |
| 108 #include "lcds/D_Sample/r2d_task_i.c" | |
| 109 #endif | |
| 110 #endif | |
| 111 | |
| 112 #if (R2D_EMBEDDED_LCD == R2D_BOARD_BW_DSAMPLE) | |
| 113 #ifdef CONFIG_TARGET_LUNA | |
| 114 #include "lcds/luna/r2d_task_i_bw.c" | |
| 115 #else | |
| 116 #include "lcds/BW_D_Sample/r2d_task_i.c" | |
| 117 #endif | |
| 118 #endif | |
| 119 |
