NAND flash简单应用
来源:互联网 发布:淘宝客sina 编辑:程序博客网 时间:2024/04/18 07:37
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "mmu.h"#include "typedef.h"#include "S3C2451_gpio.h"#include "S3C2451_uart.h"#include "S3C2451_lcd.h"#include "S3C2451_adc.h"#include "nand.h"//#include "S3C2451_irq.h"//#include "S3C2451_eint.h"//#define CON 0x56000010//#define DAT 0x56000014extern const unsigned char ch[][16];extern const unsigned char gImage_image[];extern const unsigned char gImage_lamando[69128];unsigned char one[] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};void delay(unsigned int count){ int j = 1000; int i = 0; while(--j) for(i = count; i > 0; i --);}void Main(){ //U32 i; U32 adcReg,adcValue; //float adcValue; char buffer[128]; //MMU³õʼ»¯£ºÔÚ³ÌÐò×ʼµÄʱºòµ÷Óà MMU_Init(); //LCD¶Ë¿Ú³õʼ»¯ LCD_GPIO_Init(); //LCD³õʼ»¯ LCD_Init(); //ÇåÆÁº¯Êý,ÆÁÄ»±ä³ÉºÚÉ« LCD_Clear(~0); NF_Init(); NF_EraseBlock(100); adcReg = read_adc(0); adcValue = 330 * adcReg / 1024; LCD_Display_Bmp(0,0,480,272,gImage_lamando); LCDDisplay_String(0,0,0,"123456789"); sprintf(buffer,"adcValue is %d",adcValue); NF_WritePage(100,0,buffer); memset(buffer,0,sizeof(buffer)); NF_ReadPage(100,0,buffer); LCDDisplay_String(100,240,0,buffer); //LCDDisplay_String(100,100,0,"asdasdasd"); //LCDDisplay_Char(10,10,0,'5'); //LCDDisplay_String(24,10,0,"asdfghjkl"); //i = 12; //LCDDisplay_Char(10,8,0,(i/10) + '0'); //LCDDisplay_Char(10,16,0,(i%10) + '0'); LCDDisplay_String(141,240,0,"asdfghjkl"); //LCD_Display_Bmp(0,0,480,272,gImage_image); while(1) { delay(100); } }
0 0
- NAND flash简单应用
- SAMSUNG Nand Flash应用
- OK6410裸机简单的NAND FLASH驱动
- linux nand flash 驱动简单介绍
- Nor Flash与NAND Flash的简单对比
- nor flash与nand flash启动的简单比较
- nor flash与nand flash启动的简单比较
- nor flash与nand flash启动的简单比较
- Nand Flash
- NAND Flash
- nand flash
- NAND FLASH
- NAND FLASH
- nand flash
- Nand Flash
- NAND Flash
- NAND FLASH
- nand flash
- 三十八、SpringBoot配置属性之Security
- LeetCode091 Decode Ways
- MySQL-联结表
- LeetCode092 Reverse Linked List II
- (Part1 ROS初探)
- NAND flash简单应用
- Spring基础之helloworld
- 构造函数与析构函数
- 关于spark的mllib学习总结(Java版)
- JDBC2和JSP初步--4月23号学习总结
- XMU 1614 刘备闯三国之三顾茅庐(二) 【逆向思维+二维并查集】
- C语言求一个序列的字典序排序
- hiho一下 第147周 小Hi的烦恼
- (2.)javaweb问题之xxx cannot be resolved to a type报错信息(总结)