uf32_test.c
来自「dm270 source code」· C语言 代码 · 共 42 行
C
42 行
/*
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 + =
减小字号Ctrl + -
显示快捷键?