Chinaunix首页 | 论坛 | 博客
  • 博客访问: 75845
  • 博文数量: 18
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 228
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-15 16:53
文章分类
文章存档

2015年(4)

2014年(14)

我的朋友

发布时间:2015-08-07 09:49:13

利用SPI驱动框架来编写驱动,并给应用层留出接口来操作SPI<br />1.首先在板子的BSP文件(board_sabresd.c)里面给出<span style="white-space:normal;">&nbsp;spi_board_info</span><br />static struct spi_board_info spi_device_info[] = {<br />{<br />.modalias= "spidev",<br />//.platform_data= &amp;ads_inf.........【阅读全文】

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

发布时间:2015-02-26 10:21:57

#include <stdio.h>#include <stdlib.h>#include <unistd.h>int main(){int i;char level[8][6] = {[2] = "crit:",[3] = "err:",[4] = "warn:",[5] = "note",[6] = "info",[7] = "dbg:"};printf("hello world\n");printf("level[2] = %s\n",level[2]);return 0;}.........【阅读全文】

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

发布时间:2015-02-26 10:19:13

#include <sys/mman.h>#include <sys/types.h>#include <fcntl.h>#include <string.h>#include <stdio.h>#include <unistd.h>//char *strsep(char **stringp, const char *delim);//??????·???×?·???????×é×?·?????//??stringp???ò?????????ò?ó?¨?è??/.........【阅读全文】

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

发布时间:2015-02-26 10:07:33

#include #include #include #include #include #include #include #include #include #include /*****************************************************struct sockaddr_in {.........【阅读全文】

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

发布时间:2014-11-18 14:55:40

socket参数的用法测试sock_para.rar......【阅读全文】

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

登录 注册