📄 uf32_test.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 + -