www.pudn.com > Bit1611_demo_code.rar > LED.C


/* ********************************************************************** 
 
         Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd 
 
        All rights are reserved. Reproduction in whole or in parts is 
    prohibited without the prior written consent of the copyright owner. 
   ---------------------------------------------------------------------- 
 
    Module: LED.C 
 
    Purpose: Implementation of LED module. 
 
    Version: 0.01                                   07:19PM  2005/05/13 
 
    Compiler: Keil 8051 C Compiler v8.01 
 
    Reference: 
 
   ---------------------------------------------------------------------- 
    Modification: 
 
    R0.01 07:19PM  2005/05/13 Jeffrey Chang 
    Reason: 
        1. Original. 
    Solution: 
 
   ********************************************************************** */ 
 
#define _LED_C_ 
 
/* ------------------------------------ 
    Header Files 
   ------------------------------------ */ 
#include "led.h" 
 
 
/* ------------------------------------ 
    Macro Definitions 
   ------------------------------------ */ 
 
/* ------------------------------------ 
    Type Definitions 
   ------------------------------------ */ 
 
 
/* ------------------------------------ 
    Variables Definitions 
   ------------------------------------ */ 
 
/* ------------------------------------ 
    Function Prototypes 
   ------------------------------------ */ 
 
/* ------------------------------------------------------------------- 
    Name: LED_Init - To initialize LED module. 
    Purpose: 
    Passed: None. 
    Returns: None. 
    Notes: 
   ------------------------------------------------------------------- */ 
void LED_Init (void) 
{ 
    #if (PLATFORM_CFG == PLATFORM_01_DMO1611A0) 
    // (01)VID540-100-027/BIT1611B0  (v1.00 2005/10/14 BIT1611B0 Demo Board) 
 
    LED_RED_BLINK_OFF; 
    LED_RED_OFF; 
 
    LED_GREEN_BLINK_ON; 
 
    #elif (PLATFORM_CFG == PLATFORM_04_DMO1611S0) 
    // (04)PLATFORM_04_DMO1611S0 (VID502-002-031,BIT1611BS0) 
 
    LED_RED_BLINK_OFF; 
    LED_RED_OFF; 
 
    LED_GREEN_BLINK_ON; 
 
    #elif (PLATFORM_CFG == PLATFORM_06_VTX0501) 
    // (06)PLATFORM_06_VTX0501 (BMW HS 2.1) 
 
    LED_RED_BLINK_OFF; 
    LED_RED_OFF; 
 
    LED_GREEN_BLINK_ON; 
 
    #else 
        #error LED.H - Invalid PLATFORM_CFG ! 
 
    #endif // PLATFORM_CFG 
} /* LED_Init */ 
 
 
 
 
/* ------------------------------------------------------------------- 
    Name:  - 
    Purpose: . 
    Passed: None. 
    Returns: None. 
    Notes: 
   ------------------------------------------------------------------- */ 
 
/* ********************************************************************** 
 
    Description: 
 
 
   ********************************************************************** */ 
 
/* %% End Of File %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */