Bitek 公司 bit1611b模拟屏驱动芯片外接MCU驱动DEMO源码

源代码在线查看: font.lst

软件大小: 205 K
上传用户: wql507
关键词: Bitek 1611b 1611 DEMO
下载地址: 免注册下载 普通下载 VIP

相关代码

				C51 COMPILER V7.50   FONT                                                                  02/05/2007 16:33:24 PAGE 1   
				
				
				C51 COMPILER V7.50, COMPILATION OF MODULE FONT
				OBJECT MODULE PLACED IN .\OBJ\FONT.obj
				COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE FONT.C ROM(COMPACT) OPTIMIZE(9,SPEED) NOAREGS DEFINE(PROJECT=DMO04015800,MC
				                    -U_CFG=BIT5101,VP_IF_CFG=VP_IF_BITEK) PRINT(.\LST\FONT.lst) OBJECT(.\OBJ\FONT.obj)
				
				line level    source
				
				   1          /* **********************************************************************
				   2          
				   3                   Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd
				   4          
				   5                  All rights are reserved. Reproduction in whole or in parts is
				   6              prohibited without the prior written consent of the copyright owner.
				   7             ----------------------------------------------------------------------
				   8          
				   9              Module: FONT.C - User Font.
				  10          
				  11              Purpose: Implementation of FONT.
				  12          
				  13              Version: 0.01                                   10:41AM  2005/11/18
				  14          
				  15              Compiler: Keil 8051 C Compiler v8.01
				  16          
				  17              Reference:
				  18              [1] BIT1611B Data Sheet Version 1.0, 2005-11-10,
				  19                  Beyond Innovation Technology
				  20          
				  21             ----------------------------------------------------------------------
				  22              Modification:
				  23          
				  24              R0.01 10:41AM  2005/11/18 Jeffrey Chang
				  25              Reason:
				  26                  1. Original.
				  27              Solution:
				  28          
				  29             ********************************************************************** */
				  30          
				  31          #define _FONT_C_
				  32          
				  33          /* ------------------------------------
				  34              Header Files
				  35             ------------------------------------ */
				  36          #include "bitek.h"
				  37          #include "font.h"
				  38          #include "led.h"
				  39          #include "osd.h"
				  40          #include "vp.h"
				  41          
				  42          
				  43          /* ------------------------------------
				  44              Macro Definitions
				  45             ------------------------------------ */
				  46          
				  47          /* ------------------------------------
				  48              Type Definitions
				  49             ------------------------------------ */
				  50          
				  51          
				  52          /* ------------------------------------
				  53              Variables Definitions
				  54             ------------------------------------ */
				C51 COMPILER V7.50   FONT                                                                  02/05/2007 16:33:24 PAGE 2   
				
				  55          
				  56          
				  57          /* ------------------------------------
				  58              Function Prototypes
				  59             ------------------------------------ */
				  60          static void FONT_SetUserFontRAM(UB8 bTargetIdx, UB8 bSourceIdx);
				  61          
				  62          
				  63          
				  64          /* -------------------------------------------------------------------
				  65              Name: FONT_SetUserFontRAM -
				  66              Purpose: To setup User Font RAM for monochrome and color font.
				  67              Passed: None.
				  68              Returns: None.
				  69              Notes:
				  70             ------------------------------------------------------------------- */
				  71          void FONT_SetUserFontRAM (
				  72          UB8 bTargetIdx,     // User Font: 0x00..0x0F, OSD Code: 0x70..0x7F
				  73          UB8 bSourceIdx      // 0x00..0x0F
				  74          )
				  75          {
				  76   1          UB8 b162;
				  77   1              
				  78   1              
				  79   1          b162 = BITEK_RxByte(VP_MAD, VP_162_EXTOSD_ATTR) & ~VP_MASK_BANK_SEL;
				  80   1      
				  81   1          if (bTargetIdx < 0x08)
				  82   1              // Bank 0
				  83   1              BITEK_TxByte(VP_MAD, VP_162_EXTOSD_ATTR, b162);
				  84   1          else
				  85   1              // Bank 1
				  86   1              BITEK_TxByte(VP_MAD, VP_162_EXTOSD_ATTR, b162 | VP_MASK_BANK_SEL);
				  87   1      
				  88   1          bTargetIdx &= 0x07;
				  89   1      
				  90   1          BITEK_TxBurst(VP_MAD,
				  91   1                        VP_0700_07FF_USER_FONT_RAM + FONT_USER_SIZE * bTargetIdx,
				  92   1                        FONT_USER_SIZE,
				  93   1                        &abUserFont[ bSourceIdx ][ 0 ]
				  94   1                       );
				  95   1      } /* FONT_SetUserFontRAM */
				  96          
				  97          
				  98          /* -------------------------------------------------------------------
				  99              Name: FONT_Init -
				 100              Purpose: Initiate FONT.
				 101              Passed: None.
				 102              Returns: None.
				 103              Notes:
				 104             ------------------------------------------------------------------- */
				 105          void FONT_Init (void)
				 106          {
				 107   1          // User Font 0x0F (0x7F) for BITEK icon !
				 108   1          FONT_SetUserFontRAM(0x0F, 0x00);
				 109   1      
				 110   1          // User Font 0x0E (0x7E) for SHARPNESS icon !
				 111   1          FONT_SetUserFontRAM(0x0E, 0x01);
				 112   1      
				 113   1          // User Font 0x0D (0x7D) for IMAGE FILTER icon !
				 114   1          FONT_SetUserFontRAM(0x0D, 0x02);
				 115   1      
				 116   1          // User Font 0x0C (0x7C) for MIRROR icon !
				C51 COMPILER V7.50   FONT                                                                  02/05/2007 16:33:24 PAGE 3   
				
				 117   1          FONT_SetUserFontRAM(0x0C, 0x03);
				 118   1      
				 119   1          // User Font 0x0B (0x7B) for DISPLAY MODE icon !
				 120   1          FONT_SetUserFontRAM(0x0B, 0x04);
				 121   1      } /* FONT_Init */
				 122          
				 123          /* -------------------------------------------------------------------
				 124              Name:  -
				 125              Purpose: .
				 126              Passed: None.
				 127              Returns: None.
				 128              Notes:
				 129             ------------------------------------------------------------------- */
				 130          
				 131          
				 132          /* **********************************************************************
				 133          
				 134              Description:
				 135          
				 136             ********************************************************************** */
				 137          
				 138          /* %% End Of File %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */
				
				
				MODULE INFORMATION:   STATIC OVERLAYABLE
				   CODE SIZE        =    122    ----
				   CONSTANT SIZE    =    160    ----
				   XDATA SIZE       =   ----    ----
				   PDATA SIZE       =   ----    ----
				   DATA SIZE        =   ----       3
				   IDATA SIZE       =   ----    ----
				   BIT SIZE         =   ----    ----
				END OF MODULE INFORMATION.
				
				
				C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
							

相关资源