百度空间 | 百度首页 
 
文章列表
 
您正在查看 "嵌入式实践" 分类下的文章

2009-11-02 10:08

本程序是在周立功网上的程序的基础上修改的,原例里的ACK时序有点问题

/*******************************************************************************************************************
此程序是I2C操作平台(主方式的软件平台)的底层的C子程序,如发送数据
及接收数据,应答位发送,并提供了几个直接面对器件的操作函数,它很方便的与用
户程序连接并扩展。
注意:函数是采用软件延时的方法产生SCL脉冲,对高晶振频率要作一定的修改
(本例是3us机器周期,如果系统对时

类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-11-10 11:07
http://wiki.openmoko.org/wiki/Neo1973_and_Windows

and usb networking:

http://wiki.openmoko.org/wiki/USB_Networking
类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-11-01 15:14
(1)集线器检测新设备
主机集线器监视着每个端口的信号电压,当有新设备接入时便可觉察。(集线器端口的两根信号线的每一根都有15kΩ的下拉电 阻,而每一个设备在D+都有一个1.5kΩ的上拉电阻。当用USB线将PC和设备接通后,设备的上拉电阻使信号线的电位升高,因此被主机集线器检测到。)
(2)主机知道了新设备连接后
每个集线器用中断传输来报告在集线器上的事件。当主机知道了这个事件,他给集线器发送一个Get_Status请求来了解更多的消息。返回的消息告诉主机一个设备是什么时候连接的。
(3)集线器重新设置这个新
类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-11-01 11:31
USB的重要关键字:

1、端点:位于USB设备或主机上的一个数据缓冲区,用来存放和发送USB的各种数据,每一个端点都有惟一的确定地址,有不同的传输特性(如输入端点、输出端点、配置端点、批量传输端点)

2、帧:时间概念,在USB中,一帧就是1MS,它是一个独立的单元,包含了一系列总线动作,USB将1帧分为好几份,每一份中是一个USB的传输动作。

3、上行、下行:设备到主机为上行,主机到设备为下行





下面以一问一答的形式开始学习吧。



类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-10-17 16:01
I'm also a newbie as far as Sourcery is concerned (< 24 hours
experience, no kernel or Uboot builds), but this might be useful:

The linker is looking for libgcc_eh.a and is failing to find it in .../
lib/gcc/arm-none-eabi/4.2.1.

I've downloaded two versions of G++ Lite:
1. arm-none-eabi 2007q3-53 is for building low-level applications
such as Uboot and Linux Kernel image that don't have an underlying
operating system.
2. arm-none-linux-gnue

类别:嵌入式实践 | 评论(1) | 浏览()
 
2008-10-17 11:01
在s3c6400下测试了一下EABI浮点计算的威力:
# time ./cputest-eabi
real    0m 0.34s
user    0m 0.34s
sys     0m 0.00s

# time ./cputest-oabi
real    0m 6.79s
user    0m 0.18s
sys     0m 6.61s

同样的程序,同样的内核,不同的编译器(一个为OABI,一个为EABI)。
看来是真不是吹的啊。

ref: http://www.linuxdevices.com/articles/AT5
类别:嵌入式实践 | 评论(1) | 浏览()
 
2008-08-22 09:15
似乎开始支持流行的多点触控了。 期待


The 2.6.27-rc4 prepatch is available. Along with lots of fixes, it includes support for the multitouch trackpad on new Apple laptops, more reshuffling of architecture-specific include files, a number of XFS improvements, interrupt stacks for the SPARC64 architecture, the removal of the obsolete Auerswald USB sound driver, and new drivers for TI TUSB 6010 USB controllers, Inventra HDRC USB controll
类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-08-20 17:12
内核中将 Packet socket和IP: DHCP support编译进内核或编译成模块。在编译Busybox时把 Networking Utilities下udhcp Server/Client中的 udhcp Client (udhcpc)选上。
关键点要把examples/udhcp/simple.script 脚本文件做为default.script拷贝到/usr/share/udhcpc/default.script

运行udhcpc
类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-07-29 16:35

前言

我需要在Arm9的s3c2410 CPU上运行python,以下是我的编译过程。

host编译环境:

ubuntu 7.04, gcc 4.2.1, arm-linux-gcc 3.3.2

要cross compile的程序:
  • sqlite 3.5.6,
  • python 2.5.1

编译sqlite

先去 ht

类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-07-25 20:20

   最初使用的内核的版本是2.6.23.1,待系统差不多完成时,这个版本已经升级到了2.6.23.17。于是折腾了一天把系统内核升了上去。没觉得有什么差异,应该会稳定一点吧,心想。殊不知,噩梦还在后头。

今天问题来了,摄像头表现非常不稳定。有时能打开,有时又黑屏,有时又假死。

是什么问题?USB驱动?之前有过USB不稳定的问题,所以比较敏感。

又会不会是摄像头驱动呢? 也难说,是不是应用程序设置有问题啊?

问题非常难定位,排查了好久,突然想起,好像以前没有见过这样的现象啊, 一

类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-07-14 16:37

To test that the Linux framebuffer is set up correctly, and that the device permissions are correct, use the program below which opens the frame buffer and draws a gradient-filled red square:

    #include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/mman.h>

int main()
{
int fbfd = 0;
struct fb_var_screeninfo vinfo;
struct fb_fix_
类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-06-30 15:17
LDR
ldr <register> , = <expression>
If expression evaluates to a numeric constant then a MOV or MVN instruction
will be used in place of the LDR instruction, if the constant can be generated
by either of these instructions. Otherwise the constant will be placed into the
nearest literal pool (if it not already there) and a PC relative LDR instruction
will be generated.
类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-05-12 16:15

NFS

1. rsize=1024,wsize=1024,轻微丢包

所用时间:

# time cp dns.mp3 dns2.mp3 #dns.mp3大小为6.4M

类别:嵌入式实践 | 评论(0) | 浏览()
 
2008-05-12 15:10

NFS作为根文件系统时server not responding问题的解决

R.wen

在移植cs89x0后,就一直碰到如下这个问题:

nfs: server 192.168.10.1 not responding

类别:嵌入式实践 | 评论(3) | 浏览()
 
2008-05-10 09:46

1.3背光驱动的实现

RSU系统使用一个通用的背光层驱动和用户及内核的其他模块交互。该背光驱动作为PWM模块

类别:嵌入式实践 | 评论(0) | 浏览()
 
     
 
 
文章分类
 
 
fs/io(13)
 
 
 
 
Kernel(24)
 
色影(11)
 
 
 
 
 
 
 
 
 
 
Arm(2)
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
 
最新文章评论
   

这文章幽默中不乏真理,怎一个骚字了得!
 

内容不错 ,赞
 

谢谢!
 

??????还好
 
 
     


©2009 Baidu