#define GLOBALS_BSP_LCD
#include "../app_Headers/g_includes.h"


/*-------------------------------------------------------------------------
* Function Name  : bsp_LCD_Init
* Description    : 
* Input          : 
* Output         : None
* Return         : None
* onther         : 
--------------------------------------------------------------------------*/
void    bsp_LCD_Init(void)
{
    INT8U     b;
    INT8U     *bp;
    
    LCDCR1_LCDSWAI = Disable;               //在停止模式下运行
    LCDCR0_DUTY    = Duty4;                  // 1/4 Duty
    LCDCR0_LCLK    = IRCCLK_1M;            // IRCCLK 1M
    
         
    bp = &LCDRAM0;         
    for(b = 0; b < 20;b++)
    {
         *bp = 0;                           //清零LCDRAM
    }
    
    FPENR0 = 0xf0;                   //初始化各段
    FPENR1 = 0xff;                   //初始化各段
    FPENR2 = 0x7f;                   //初始化各段
    FPENR3 = 0x00;                   //初始化各段
    FPENR4 = 0x00;                   //初始化各段
         
    LCDCR0_LCDEN   = Enable;               //使能LCD
    
}

