代码搜索结果
找到约 10,000 项符合
LED 的代码
led.h
/********************************************************************
本程序只供学习使用,未经作者许可,不得用于其它任何用途
欢迎访问我的USB专区:http://group.ednchina.com/93/
欢迎访问我的blog: http://www.ednchina.com/blog
led.h
#ifndef __LED_H__
#define __LED_H__
// 流水灯样式宏定义
#define LEDALLLOOP 0 // 全亮->全灭
#define LEDRIGHTLOOP 1 // 自右向左
#define LEDLEFTLOOP 2 // 自左向右
#define LEDMIDDLELOOP 3 // 中间散开->向中间靠拢
led.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="E:\DSP\Program\C\LED\"
ProjectType=Executable
CPUFamily=TMS320C55XX
Tool="Compiler"
led.c
// ** LED D1-D4的控制有两种方式 1:用GPIO[7:0],此时要先对0x400000地址赋1; 2:用EIMF控制,此时要先对0x400000地址赋0,led的地址为0x401000
// ** 对0x400000地址赋x,只是为了使CPLD选通到GPIO或EIMF,同时外部接口应为EIMF模式才能对CPLD操作
void SRAM_init() // ** 初始