main.c.bak

来自「通过fastchip来实现LED硬件的连接」· BAK 代码 · 共 43 行

BAK
43
字号
/* $Id: //depot/software/SDK/Triscend/a7hal/examples/hello/main.c#4 $ *//* ********************************************************** *  main.c *  Copyright(C) 2001-2002 Triscend Corporation. All Rights Reserved. *  This file is licensed under the terms of Triscend SDK License Agreement. ********************************************************** */#include <stdio.h>#include "main.h"#include "ledcsoc.h"#define LED_CONTROLER     *((unsigned char *)ledcontrolreg)void Delay(int period){	int i, j;	int nop;	for(i=0;i<period; i++)	{		for(j=0;j<period;j++)		{			nop = 0;		}	}}int main(  ){    //printf( "Hello Miyuki!\n" );        unsigned char cc = 0;        LED_CONTROLER = 0x0;        for( ; ; )    {    	Delay(1000);    	cc++;    	LED_CONTROLER = cc;    }}

⌨️ 快捷键说明

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