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

📄 led.h

📁 LED code tells you how to code
💻 H
字号:
/*************************************************************************************
*	Copyright (c) 2005 by National ASIC System Engineering Research Center.
*	PROPRIETARY RIGHTS of ASIC are involved in the subject matter of this 
*	material.  All manufacturing, reproduction, use, and sales rights 
*	pertaining to this subject matter are governed by the license agreement.
*	The recipient of this software implicitly accepts the terms of the license.
*
*	File Name: led.h
*
*	File Description:
*			The file define some macro definition used in nand.c file.
*		
*	Created by Wuer
**************************************************************************************/

#ifndef LED_H
#define LED_H

#include "typedef.h"

/*several macros of nand registers*/
#define dot			0x1						// 七段译码用到的权值
#define sect1 		(0x1<<1)
#define sect2 		(0x1<<2)
#define sect3 		(0x1<<3)
#define sect4 		(0x1<<4)
#define sect5 		(0x1<<5)
#define sect6 		(0x1<<6)
#define sect7 		(0x1<<7)

/* LED operation functions*/
STATUS	ModuleLed(void);
void LedDisPlay(U8 data[]);
void GPIO_Init(void);
void Hex2Seg (U8 data[], U8 * p);
void LedOut(U8 data[], U32 times);
void LedUpdate(void);
void delay(int cycle);

#endif

⌨️ 快捷键说明

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