sysled.c

来自「au1500开发的应用程序」· C语言 代码 · 共 91 行

C
91
字号
/* sysLed.c - V100R001SCB board LED driver *//* Copyright 2002-2005 Founder Communications, Inc. *//*modification history--------------------01a,3feb05,fhchen  written*//*DESCRIPTIONThis module contains the LED driver. LEDs in V100R001SCB are connected toPD10, PD11, PD13.*//* includes */#include "sysLed.h"#include "m8260IOPort.h"#ifdef INCLUDE_SYSLED/************************************************************************* sysLedInit - Initialize LEDs.** This routine initializes the GPIOs used by LEDs.** RETURNS: N/A.**/void sysLedInit    (    void    )    {    /*     * do nothing right now, because GPIO will be initialized in sysHwInit     * later after sysLedInit.     */    /* TODO: initialize PD10, PD11, PD13 here */    }/************************************************************************* sysLedOff - Turn selected LED off.** This routine set the selected LED to off.**/void sysLedOff    (    int led    )    {    /* Write to GPIO */    m8260IOPortWrite(LED_PORT, led, LED_OFF);        }/************************************************************************* sysLedOn - Turn selected LED on.** This routine set the selected LED to on.**/void sysLedOn    (    int led    )    {    /* Write to GPIO */    m8260IOPortWrite(LED_PORT, led, LED_ON);    }#endif /* INCLUDE_SYSLED */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?