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

📄 uf32_test.c

📁 dm270 source code
💻 C
字号:
/*
Module Name	: uf32_test.c

Functions	: UF32_TEST
    
Purpose		: Test access SD card and HD via UF32

Notes		: 
This function is setting the GPIO. Let's PC access SD card and HD
*/

// Local header files
#include <demo/uart270.h>
#include <demo/sagiters.h>

// Extern global variables
extern char UART_outBuff[1024];
extern volatile unsigned short	UART0IntFlag;

//
// Test UF32
// Access SD card and HD via UF32 

void UF32_TEST(void) {
    
	UART_sendString( UART0, "\r\n ****************UF32 TEST****************" );
	
	UF32_CTRL(ON);

	UART_sendString( UART0, "\r\n USB cable insert on board USB connect" );
	UART_sendString( UART0, "\r\n Wait PC detect SD and HD" );
	
	UART_sendString( UART0, "\r\n Push Any Key(PC) Exit Test" );
	while(UART0IntFlag);
	UART0IntFlag = 1;
	
	UF32_CTRL(OFF);
	
	UART_sendString( UART0, "\r\n END" );
	UART_sendString( UART0, "\r\n " );
}

⌨️ 快捷键说明

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