
arm嵌入式开发
文章平均质量分 62
lanseshenhua
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
minicom的使用
Linux下的minicom相当于windows下的超级终端,用来和串口通信用的。安装:Ubuntu 下使用如下命令安装sudo apt-get install minicom配置:由于Minicom使用中文配置存在问题,把语言环境改为英文# export LANG=sudo minicom -s原创 2010-05-21 18:38:00 · 937 阅读 · 0 评论 -
ARM开发板(S3C2440)上LED灯驱动及跑马灯的实现
驱动程序的代码为:#include #include #include #include #include #include #include #include #include #include #include #define LED_MAJOR 244 /*预设LED的主设备号*/#define rGPECON (*(vol原创 2010-05-27 17:30:00 · 3426 阅读 · 0 评论 -
DM9000发送UDP报文
DM9000的驱动为: #include #include #include #include #include #include #include #include #include #include #include #include #include #define DM9K_MAJOR 244 /*预设DM900原创 2010-05-30 16:43:00 · 2815 阅读 · 1 评论 -
DM9000接收UDP报文
<br />主要就是在上篇文章中的驱动程序里增加一个read函数。<br />另外在open函数里的iow(0x05, DIS_LONG|DIS_CRC|RXEN); 改为iow(0x05, DIS_LONG|DIS_CRC|RXEN|PRMMC); <br />其中PRMMC是一个宏:#define PRMMC 1<<1<br /><br /><br />增加的read函数如下:<br />//读取UDP报文static ssize_t dm9k_read(struct file* filp,原创 2010-06-01 17:58:00 · 2169 阅读 · 1 评论 -
多个C文件生成多个目标的makefile
<br />SOURCES=$(wildcard *.c)PROGS=$(patsubst %.c, %, $(SOURCES))all:$(PROGS)$(PROGS):%:%.c gcc $^ -o $@ .PHONY:cleanclean: rm $(PROGS)原创 2010-12-21 16:20:00 · 3543 阅读 · 0 评论 -
Ubuntu 10.04安装tftp
<br />首先执行:<br /><br />sudo apt-get install tftp-hpa tftpd-hpa <br />然后sodu gedit /etc/default/tftpd-hpa <br />修改配置文件为:# /etc/default/tftpd-hpa<br />TFTP_USERNAME="tftp"TFTP_DIRECTORY="你的tftp目录"TFTP_ADDRESS="0.0.0.0:69"TFTP_OPTIONS="-l -c -s"<br />注意:tftp原创 2010-11-09 11:56:00 · 1147 阅读 · 0 评论