evmdm642_led.h

来自「和众达DM642EVM基于DSP/BIOS的循环采集显示例程!」· C头文件 代码 · 共 46 行

H
46
字号
/*
 *  Copyright 2003 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */
 
/*
 *  ======== evmdm642_led.h ========
 *
 *  Interface for LEDs on the EVMDM642 board
 */
#ifndef EVMDM642_LED_
#define EVMDM642_LED_

#ifdef __cplusplus
extern "C" {
#endif

#include <csl.h>

#define LED_ADDER  0x90080000

/* Set the LEDs */
void EVMDM642_LED_set(Uint8 val);

/* Get the LEDs */
Uint8 EVMDM642_LED_get();

/* Initialize the LEDs */
void EVMDM642_LED_init();

/* Turn the LED numbered ledNum off */
void EVMDM642_LED_off(Uint32 ledNum);

/* Turn the LED numbered ledNum on */
void EVMDM642_LED_on(Uint32 ledNum);

/* Toggle the LED numbered ledNum */
void EVMDM642_LED_toggle(Uint32 ledNum);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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