main.c

来自「44b0开发板上ADC驱动的例子」· C语言 代码 · 共 34 行

C
34
字号
#include <stdio.h>
#include <string.h>
#include "inc\44b.h"
#include "inc\common.h"
//#include "inc\platform.h"

extern int Image$$RO$$Limit;
extern int Image$$RW$$Base;


int Main(void)
{
  uint start_key;
  Board_Init();
  while(1)
  {
    Uart_Printf("\n掌宇公司KH91001实验台初始化成功!\n");
	Uart_Printf("\n现在进行A/D测试实验!\n");
	Uart_Printf("\n请按Y键开始测试,按其它键停止!\n");
		
	start_key= Uart_Getch(0);
	 if((start_key=='Y')||(start_key=='y'))
	 {
		Uart_Printf("\n Begin TEST adc!\n");
			
		Test_Adc(); //A/D测试主程序
     } 
		
   	 else
	    Uart_Printf("\n Not TEST\n");
	}

	
  }

⌨️ 快捷键说明

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