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

📄 main.c

📁 通过fastchip来实现LED硬件的连接
💻 C
字号:
/* $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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -