搜索资源列表
sound
- 其中sound.c 用于录音和回放。其中特别需要注意的是:1。目前声卡似乎不能打开全双工,所以如果fd = open(\"/dev/dsp\", O_RDWR) ,则无法录音和回放。只能分别设置RDONLY和WRONLY。即半双工方式。否则,就是在录音的时候可以听见,但是无法回放。分析下来似乎是IIC总线中只分配了一个通道给声卡,或者是只启用了一个通道,所以无法录音和放音同步进行。解决方法就是分别以RDONLY方式打开进行录音和WRONLY方式打开进行放音。 Sound1.c用于将录音保存在
led_linux2.4.18
- Linux 2.4.18 s3c2440 led driver 使用dev-C++撰寫,需要linux 2.4.18 kernel include,編譯完成後產生led module。 insmod main.o //安裝模組 mknod /dev/leds c 221 0 使用方法: int main(int argc, char *argv[]) { int testdev //led test... testdev = op
nunchunk
- 使用i2c-dev 从smbus读取wii游戏手柄nunchunk数据,根据读取的x-position , y-position位置,画轨迹,改变颜色,刷新屏幕-Using i2c_dev.h to read data from nunchunk and draw the trajecty of it.Change color and refresh the screen. Z and C button are pressed to exit the program
xitongdiaoyong
- 1:修改dev.c文件,定义一个全局变量int count=0 然后用它来统计包的个数。 2.修改sys.C文件,添加extern int count 然后定义自己的函数,asmlinkage int sys_mycall(void) 3.修改entry.S和unistd.h文件,为自己定义的函数增加系统调用号。 4.自己写个函数进行系统调用。-1: Modify dev.c file, define a global variable int count = 0 then use
dm365_gpio_drv_yr
- dm365gpio口驱动,编译成功,可以轮流输出高低电平. 需要手动mknod,加载驱动后在命令行或在shell脚本里加入mknod /dev/dm365_gpio c 199 0-dm365gpio driver
backlight_ctl
- 《背光控制程序》 根据Tiny6410厂家提供的内核源码中的触屏驱动(路径:drivers/input/touchscreen/mini6410_1wire_host.c),背光由设备</dev/backlight-1wire>控制,该设备提供了write方法,根据用户传入的亮度值(0 ~ 127)来设置背光。 程序由操作函数<backlight_ctl.c> ,头文件<backlight_ctl.h>,测试程序<test.c
usb_camera
- capture.c是摄像头采集程序。可以采集照片。插上USB摄像头后看在/dev/下生成哪个video,需要将程序中改为相应的video。-capture.c is the camera capture program. You can capture photos. Plug in the USB camera after watching the/dev/generated under which video, you need to program into the correspondi