📄 main.c
字号:
// This program shows how to work with USART port
// USART0 and USART 1 (respectively RS232_0 connector and RS232_1 connector) returns echo + *
// Notice: Jumper RXDO/DRXD must be in position RXDO
// Jumper TXDO/DTXD must be in position TXDO
#include "AT91SAM7S64.h"
#include "system.h"
#include "usart.h"
//it's a simple delay
void Delay (unsigned long a) { while (--a!=0); }
unsigned char string[]="hello world!";
int main()
{
/**** System init ****/
InitFrec();
/**** UART ****/
InitUSART0();
InitUSART1();
write_str_USART0(string);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -