⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 w9966.txt

📁 ARM 嵌入式 系统 设计与实例开发 实验教材 二源码
💻 TXT
字号:
W9966 Camera driver, written by Jakob Kemi (jakob.kemi@telia.com)After a lot of work in softice & wdasm, reading .pdf-files and tiresometrial-and-error work I've finally got everything to work. I needed vision for arobotics project so I borrowed this camera from a friend and started hacking.Anyway I've converted my original code from the AVR 8bit RISC C/ASM code intoa working Linux driver.To get it working simply configure your kernel to supportparport, ieee1284, video4linux and w9966If w9966 is statically linked it will always perform aggressive probing forthe camera. If built as a module you'll have more configuration options.Options: modprobe w9966.o pardev=parport0(or whatever) parmode=0 (0=auto, 1=ecp, 2=epp)voila!you can also type 'modinfo -p w9966.o' for option usage(or checkout w9966.c)The only thing to keep in mind is that the image format is in Y-U-Y-V formatwhere every two pixels take 4 bytes. In SDL (www.libsdl.org) this formatis called VIDEO_PALETTE_YUV422 (16 bpp).A minimal test application (with source) is available from:  http://hem.fyristorg.com/mogul/w9966.htmlThe slow framerate is due to missing DMA ECP read support in the parport drivers. I might add working EPP support later.Good luck!    /Jakob Kemi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -