?? main.c
字號:
void printf(char *c);
void clock_init();
void uart_init();
char Uart_Getch(void);
void close_watchdog();
int Main1()
{
char key;
clock_init();
uart_init();
uart_send("uart communication success!\r\n");
//close_watchdog();
key_interrupt_init();
uart_send("鍵盤中斷已經設置好,請按鍵測試!\r\n");
while(1)
{
uart_send("if you want to quit ,please press 'x' button\r\n");
key=Uart_Getch();
if(key=='x')
break;
}
}
void close_watchdog()
{
__asm{
mov r1,#0x53000000
mov r0,#0x0
str r0,[r1]
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -