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

📄 main.c

📁 AT91SAM7S64的uart程序。包含完整的uart API 可以完成向串口写数据和接收数据
💻 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 + -