winformatik | 24 Apr 04:56 2001
Picon

register access with memory maping or char driver( ioctl ) ?

Dear Sirs

Waht's the better way ( linux way ) ? I want have full access to all uC 
registers.
At the moment I work with kernel 2.4.21-hynix21and I want update
at next time to kernel 2.6.x.-hynix.

Thanks for your hints.

Marius

P.S.	As I come from the physical address to the virtual address
	( see /asm/arch/hardware.h ) ?

--

-- 
Winformatik
Marius Suter / Software Developer
Bahnhofstrasse 21
CH 3360 Herzogenbuchsee

Phone	0041 (0)62 961 81 01
FAX	0041 (0)62 961 81 04	

-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ:       http://www.arm.linux.org.uk/armlinux/mlfaq.php
Etiquette: http://www.arm.linux.org.uk/armlinux/mletiquette.php

winformatik | 24 Apr 05:32 2001
Picon

I lose bytes during ttyS transfer test at slow baudrates < 4800bd

Dear Sirs

I work with kernel 2.4.21-rmk1-hynix21. That's a short example of
my test routine( sorry but isn't linux standart ):

-----------------------------------------------------------------------------------------------

[open serial port]
[serial settings]

/* clear struct for new port settings */
bzero( &newtio, sizeof( newtio )); 

/* set communication parameter of the serial port */
newtio.c_cflag = iBaud | iDataBits | iParityEnable | iParityOdd |
                              CLOCAL | CREAD;
newtio.c_iflag = IGNPAR;
newtio.c_oflag = 0;
newtio.c_lflag = 0;
newtio.c_cc[VTIME] = 1;
newtio.c_cc[VMIN] = 0;
newtio.c_cc[VSTOP] = 0; 

tcflush( iHandle, TCIFLUSH );
tcsetattr( iHandle, TCSANOW, &newtio );

[build achOutString]
[set LoopCounter]

do
(Continue reading)


Gmane