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

📄 main.c

📁 该模板使用于周立功公司研发的EasyARM2100系列开发板
💻 C
字号:

/* EasyARM2100工程模板演示文件 */


/****************************************************************************
* 文件名:main.C
* 功能:LED数码管显示0-F字符,同时控制LED1、LED2、LED3、LED4显示对应的16进行值。
* 说明:将跳线器JP3、JP4、JP7短接。
****************************************************************************/
#include  "config.h"

 /******************************************************************************
  Copyright (C), 2007-2008, wanyi Tech. Co., Ltd.
  FileName		:main.c
  Author		:kevin 
  modify		:       
  Version 		:1.0          
  Date			:2007-9-06
  Description	:auto design void main(void)       
  Function List	:main.c
******************************************************************************/


//volatile unsigned short tmp=0;
//extern uint8 rcv_new,rcv_new1;
/******************************************************************************
  Function:       // void main(void)
  Description:    // for main loop
  Calls:          // none
  Called By:      // none
  Table Accessed: // none
  Table Updated:  // none
  Input:          // void
  Output:         // none
  Return:         // void
  Others:         // none
******************************************************************************/
//uint8 Twendu;
//extern volatile uint8 key_value;
//extern uint8 Bread_key;
//extern uint8 rcv_buf[40];

int main (void)
{ //	init_sys();

	      
	while (1)
	{      
 	 /*   //-----------温度采集-------------------
	    if(0)
	      {
	       if(init_ds1820()==1)
	          {
	           covert_ds1820();
	            if(init_ds1820()==1)
	             {
	              Twendu=read_tem_ds1820();
   	             }
	           }    
            UART0_SendByte(Twendu);
            DelayNS(10);	
            }
          //-----------232收发测试---------------------- 
           if(1==rcv_new)
            {
            ISendBuf0();             
            rcv_new = 0;  
            }
         //------------485收发测试----------------------  
           if(1==rcv_new1)
            {
            ISendBuf1();             
            rcv_new1 = 0;  
            }
          //--------------4-20ma输出测试1-----------
          if(0)
           {
           daout1(10);DelayNS(10);
           }
          //--------------4-20ma输出测试1-----------
          if(0)
           {
           daout2(4000);DelayNS(10);
           }
          //--------------E2PROM读写测试-------------
          if(0)
           {
            i2ctest();
           }  
            key_test(); 
           //-------------RTC测试--------------------
         if(0){
              D1302_test();//
              DelayNS(200);
              }
          //---------------LCD显示测试---------------
                */   
            
   // display_process();  
        
              
	}
   
    
}
//=============================================================================




⌨️ 快捷键说明

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