代码搜索结果
找到约 10,000 项符合
LED 的代码
led.c
#include
#include
#include
#include
int main(int argc, char **argv)
{
int on;
int led_no;
int fd;
if (argc != 3 || sscanf(argv[1], "%d", &led_no) !=
led.c
#include "VoiceProcess.h"
#include "Dsplib.h"
//***************** LED ******************************
void LedYellow(int a);
void LedRed(int a);
/*------------------ LED ------
led.ini
[options]
a=0
b=1
c=2
d=3
e=4
f=5
g=6
h=7
connect=0
format=0
led.c
#include
#include
#define PORTBIT(adr, bit) ((unsigned)(&adr)*8+(bit))
volatile bit button @ PORTBIT(PORTB, 1);
const char Msg[] = {"This is a string\0"};
int sub1(int i,
led.asm
IOSFT_REG .usect ".data0",1 ;要显示的数据寄存器
.include "F2407REGS.H" ;引用头部文件
.def _c_int0
.text
_c_int0: ;相当于主程序的入口
CALL SYSINIT ;调系统初始化程序
LDP #DP_PF2 ;
led.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="F:\2407\2407asm\led\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool="Compiler"
led.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="F:\2407\2407C\1led\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool="Compiler"
T
led.c
//(2) 主程序
// 该程序用于实验演示模板上的8个LED的循环显示
#include "register.h"
main() // 初始化子程序
{ int led;
int i,k;
asm(" setc SXM"); // 抑制符号位扩展
asm(" clrc OV