Chinaunix首页 | 论坛 | 博客
  • 博客访问: 686253
  • 博文数量: 152
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1793
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-12 12:26
个人简介

相信自己,只有不想做的,没有做不到的。

文章分类

全部博文(152)

文章存档

2021年(1)

2015年(2)

2014年(74)

2013年(75)

发布时间:2014-06-10 14:43:35

驱动只实现ioctrl接口并使用ioctl修改和读取内核中的一个整型参数为例,使用两个不同方式读取(值传递和地址传递)。应用程序测试代码main.c[cpp] view plaincopyprint?#include <stdio.h>  #include <fcntl.h>  #include&nb.........【阅读全文】

阅读(794) | 评论(0) | 转发(0)

发布时间:2014-05-13 18:35:51

使用了XPS中建立和导入IP向导(简称ipwiz),默认的源码文件只有hdl/verilog目录下的"userlogic.v"和hdl/vhdl目录下的"ipname.vhd"文件。当我们的设计变复杂了,需要更多的设计文件如.v、.vhd、.ngc等文件和多个模块/实体的时候,如果不进行一些设置,编译器会提示找不到module的错误提示:ERROR:HDLCompiler:Instantiating.........【阅读全文】

阅读(5007) | 评论(0) | 转发(0)

发布时间:2014-05-09 14:16:31

driver 如下:/*********************************************************File Name:    my_nand.cAuthor:       Nightmare@EEFOCUSVersion:      v0.1 2014-05-08Description:  Driver of nand_flash peripheral.************************************************.........【阅读全文】

阅读(717) | 评论(0) | 转发(0)

发布时间:2014-05-09 14:05:08

首先查看mtd_info结构体:struct mtd_info {        u_char type;        uint32_t flags;        uint64_t size;   // Total size of the MTD        /* "Major" erase size for the device. Na茂ve users may take this.........【阅读全文】

阅读(720) | 评论(0) | 转发(0)

发布时间:2014-05-04 12:00:24

int check_net(char *ip,char *port ){    int fd;    int in_len=0;    struct sockaddr_in servaddr;    //char buf[128];      in_len = sizeof(struct sockaddr_in);    fd = socket(AF_INET,SOCK_STREAM,0);    if(fd < 0) .........【阅读全文】

阅读(748) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册