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

📄 main.c

📁 LPC-H2214-test_mem.zip 这是一款LPC2214开发板的示例代码
💻 C
字号:
// This program is created for LPC-H2214 board
// Test SRAM
// Test FLASH
// Send report via UART0 -> USB connector
// Notice!!! When test memory, we read/write all memory - it takes a few minutes


#include "system.h"
#include "uart.h"
#include "sram_test.h"
#include "flash_test.h"

int main()
{
  /**** VARIABLES ****/
  //unsigned char ch = 0x0;

  /**** INITIALIZATION ****/
  // Frequency initialization
  FrecInit();
  // UART initialization
  UART0Initialize(9600);
  // Init EMC
  SysInit();



  UART0WriteTxt("TESTING MEMORY BEGIN");

  /**** TEST ****/
  // Testing SRAM
  TestSRAM();

  // Testing FLAS
  TestFLASH();

  UART0WriteTxt("TESTING MEMORY END");

  // loop forever
  while(1) {

  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -