发布时间:2015-08-07 09:49:13
利用SPI驱动框架来编写驱动,并给应用层留出接口来操作SPI<br />1.首先在板子的BSP文件(board_sabresd.c)里面给出<span style="white-space:normal;"> spi_board_info</span><br />static struct spi_board_info spi_device_info[] = {<br />{<br />.modalias= "spidev",<br />//.platform_data= &ads_inf.........【阅读全文】
发布时间: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;}.........【阅读全文】
发布时间: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???ò?????????ò?ó?¨?è??/.........【阅读全文】
发布时间:2015-02-26 10:07:33
#include #include #include #include #include #include #include #include #include #include /*****************************************************struct sockaddr_in {.........【阅读全文】