Location:
Search - char linux
Search list
Description: 使用C语言信号技术实现的聊天室程序(linux环境)-use C language Signal Technology chat rooms (Linux environment)
Platform: |
Size: 11425 |
Author: 鲍勃 |
Hits:
Description: 最常用的嵌入式LINUX字符设备驱动:触摸屏和小键盘驱动。触摸屏使用SPI接口,小键盘使用GPIO口模拟。
Platform: |
Size: 14194 |
Author: 吕剑国 |
Hits:
Description: 簡介Linux的Char driver model,並提供範例
Platform: |
Size: 1418117 |
Author: vinwangwork@gmail.com |
Hits:
Description: 字符集转换程序 -The source of the conversation program of char set
Platform: |
Size: 1685504 |
Author: 站长 |
Hits:
Description: In the ffuart.tar.gz it has one file.
The serial.c is the source codes of the FFUART as a console port, it should be put into the directory: /usr/src/linux/drivers/char/, and be compiled into the kernel.
Platform: |
Size: 43008 |
Author: 梁志聪 |
Hits:
Description:
Platform: |
Size: 11264 |
Author: 鲍勃 |
Hits:
Description: 本驱动程序在linux2.6.17中测试通过。yangxing msn:lelma_yx@hotmail.com
希望对SPI操作的朋友有所帮助。
一、工作方式:
从设备:SPI为MASTER模式
S3C2410:SPI为SLAVE模式+DMA
二、工作流程
1.S3C2410从接收:当从设备发送数据时,S3C2410利用DMA方式收数,收到指定长度的数据,则进入DMA中断,将接收的数据拷出。
2.S3C2410从发送:当S3C2410需要发送,首先由RTS请求发送,然后等待从设备应答CTS,当从设备应答CTS时,进入外部中断,启动DMA发送,发送完成,再次进入从接收状态。
三、文件位置
spi_dma_slave.c
spi_dma_slave.h
circular_buf.c
circular_buf.h
等文件存放入driver/char/目录
dma.c存放于arch/arm/mach-s3c2410/目录
dma.h存放于include/arm-asm/mach-s3c2410/目录
四、使用环境
1.arm-linux-gcc-3.4.1-the driver linux2.6.17 in which the test. Yangxing msn : lelma_yx@hotmail.com hope to operate SPI friends help. 1, mode of work : from equipment : SPI for the S3C2410 MASTER mode : SPI for SLAVE+ DMA mode 2, workflow 1.S3C2410 from receiving : When sending data from the device, using DMA S3C2410 debt, the length of the designated data DMA will enter the interruption will receive unfettered access to the data. 2.S3C2410 from this : When S3C2410 need this, the first request sent by the RTS, Then wait for the response from CTS equipment, when the equipment response from CTS, access to external interrupt start DMA sent, Send completed, re-entered, from receiving state. 3. Position papers spi_dma_slave.c spi_dma_slave.h circul ar_buf.c circular_buf.h documents onto the driver/char/Contents
Platform: |
Size: 17408 |
Author: y |
Hits:
Description: Linux 2.4内核字符设备驱动开发实例。
是Linux下驱动开发人员再好不过的参考源码。编译之后加载驱动,附有测试程序进行驱动的测试!
Linux kernel 2.4 char device driver
example.-character device driver development example. Linux is driven development staff a better reference source. After loading compiler- driven, with the testing process-driven test! Linux kernel 2.4 char device driver example.
Platform: |
Size: 4096 |
Author: |
Hits:
Description: 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 = open("/dev/QuickMarkLed",O_RDWR)
ioctl(testdev, 2, 1) //ioctl(device, led number, open/close) open=1
ioctl(testdev, argv[1][0]- 0 , argv[2][0]- 0 ) //ioctl(device, led number, open/close) open=1
close(testdev)
return 0
}
-Linux 2.4.18 s3c2440 led driver to use dev-C++ Writing, the need for linux 2.4.18 kernel include, compiled after the completion of led module. insmod main.o// install the module mknod/dev/leds c 221 0 to use: int main (int argc, char* argv []) (int testdev// led test ... testdev = open (/ dev/QuickMarkLed , O_RDWR) ioctl (testdev, 2, 1)// ioctl (device, led number, open/close) open = 1 ioctl (testdev, argv [1] [0]- 0, argv [2] [0]- 0 )// ioctl (device, led number, open/close) open = 1 close (testdev) return 0)
Platform: |
Size: 5120 |
Author: Jia-Yang Chen |
Hits:
Description: 基于arm7的uclinux嵌入式驱动程序源代码,
代码很全,包括如下目录:
adc、gpio、i2c、pwm、Simple Block Device Driver Module、Simple Char Device Driver Module、Simple Ethernet Device Driver Module、Simple Kernel Module、spi、zlg_ffs-ARM7 based on the uClinux embedded driver source code, the code is very wide, including the following directory: adc, gpio, i2c, pwm, Simple Block Device Driver Module, Simple Char Device Driver Module, Simple Ethernet Device Driver Module, Simple Kernel Module, spi , zlg_ffs
Platform: |
Size: 1489920 |
Author: 8307317 |
Hits:
Description: linux char device driver programming
Platform: |
Size: 20480 |
Author: XD |
Hits:
Description: 最常用的嵌入式LINUX字符设备驱动:触摸屏和小键盘驱动。触摸屏使用SPI接口,小键盘使用GPIO口模拟。-The most commonly used characters embedded LINUX Device Driver: touch screen and keypad drivers. SPI interface using the touch screen, small keyboard simulation using GPIO port.
Platform: |
Size: 14336 |
Author: 吕剑国 |
Hits:
Description: 一份不错的介绍linux 字符设备驱动的文档-A good introduction linux character device driver documentation
Platform: |
Size: 72704 |
Author: 王指辉 |
Hits:
Description: 字符液晶驱动C程序!
控制器为HD44780 or KS0066等兼容IC
-LCD testing procedures for char. LCD
Platform: |
Size: 8192 |
Author: 刘小姐 |
Hits:
Description: linux 简单字符设备驱动-linux character device driver easy ......
Platform: |
Size: 4096 |
Author: 封请段 |
Hits:
Description: Linux下对char device driver的实现以及用户层的测试程序。-A implementation of linux char device driver and its test program from application.
Platform: |
Size: 2048 |
Author: HelloNet |
Hits:
Description: unix du命令的简单实现,主要可以学习glob函数的使用-static int64_t
mydu_getblocks(const char*path)
{
int i
int64_t sum=0
static struct stat stat_result
glob_t glob_result
static int ret
static char fullpath[PATHMAX]
if (lstat(path, &stat_result)<0) {
perror("lstat()")
return 0
}
if (!S_ISDIR(stat_result.st_mode)) {
return stat_result.st_blocks
}
/************************************************/
snprintf(fullpath, PATHMAX, " s/*", path)
ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT, NULL, &glob_result)
if (ret!=0) {
perror("glob()")
return 0
}
snprintf(fullpath, PATHMAX, " s/.*", path)
ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT|GLOB_APPEND, NULL, &glob_result)
if (ret!=0) {
perror("glob()")
return 0
}
sum+= stat_result.st_blocks
for (i=0 i<glob_result.gl_pathc ++i) {
if (isvalid(glob_result.gl_pathv[i])) {
sum+= mydu_getblocks(glob_result.gl_pathv[i])
}
}
globfree(&glob_result)
return sum
}
Platform: |
Size: 1024 |
Author: aasdf |
Hits:
Description: 1. 这是对之前MyOOCFwV1_0(http://www.pudn.com/downloads229/sourcecode/middleware/detail1079540.html)的完善,解决了之前的bug
2. 新添源码(src目录下):CharString、链式栈、链式队列、先序二叉树
3. 新添测试代码,放在test目录下
4. 运行环境:Linux + Eclipse IDE for C/C++ Developers-1. This is the improved version of the previous MyOOCFwV1_0(http://www.pudn.com/downloads229/sourcecode/middleware/detail1079540.html), having checked out and resolved some bugs
2. New source codes(under "src"): Char String, Linked Stack, Linked Queue, PreOrder Binary Tree
3. New codes for testing is under the directory of "test"
4. Enviroment: Linux+ Eclipse IDE for C/C++ Developers
Platform: |
Size: 33792 |
Author: |
Hits:
Description: 基于ARM的GPRS车载系统源程序
/*******************************************************************************
** Function: Get GPS Communication Port from GPSPort.ini **
** In: char buffer **
** Out: set the char buffer **
** Date: 2007-8-1 Author: Owen.Lu **
*******************************************************************************/-#include <windows.h>
#include "stdio.h"
#include "time.h"
#include "string.h"
#include "assert.h"
#include "gps.h"
#include "math.h"
DCB dcb
COMMTIMEOUTS timeouts
COMSTAT ComStat
HANDLE idComDev
unsigned int testCycle = 0
volatile char gpsMessage[1030][2] = {0}
volatile int buffHead = 0
volatile int buffEnd = 0
DWORD WINAPI receiveGPSProc(LPVOID) //receive gps data
DWORD WINAPI analyseGPSProc(LPVOID) //analyse gps data
/*******************************************************************************
** Function: Get GPS Communication Port from GPSPort.ini **
** In: char buffer **
** Out: set the char buffer **
** Date: 2007-8-1 Author: Owen.Lu **
*******************************************************************************/
void g
Platform: |
Size: 5120 |
Author: 月买双 |
Hits:
Description: linux 字符驱动实例,基于定时器的,可以用的源码。-linux instances of character-driven, based on the timer, you can use the source code.
Platform: |
Size: 3072 |
Author: 王涛 |
Hits: