⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysled.c

📁 au1500开发的应用程序
💻 C
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -