Re: How to access Serial port's Line Control Register
- From: "LarryC" <larry@xxxxxxxxxx>
- Date: 13 Apr 2006 19:24:53 -0700
Hi Walter:
If you can't find an ioctl call to use with the serial driver fo your
), then you'll have to write the LCR register directly. Check the
memory map for your board in the board's header file, the write to the
register directly. The concept of memory vs. io writes is not present
on a PowerPC - all devices and memory can be written to directly, so
sysOutBute or just *(unsigned char))UART_BASE+LCR_OFFSET |= 0x40;
should do it.
Good luck,
lc
walterwang@xxxxxxxxx wrote:
Hi ,
I am trying to figure out a way to access the Line Control Register
(LCR) of COM1 on a powerpc MCP750 system via vxworks. There does not
seem to be a sysOutbyte function or equivalent to access I/O address
directly. Nor does the function ioctl seem to have this functionality.
I would like to set the break enable (set 6th bit) of the serial port.
This would be the equivalent of SetCommBreak() for the windows PC. Any
one have any ideas or can point me in the right direction? Thanks
alot.
Walter
.
- References:
- How to access Serial port's Line Control Register
- From: walterwang
- How to access Serial port's Line Control Register
- Prev by Date: How to access Serial port's Line Control Register
- Next by Date: Re: ppcgdb.exe
- Previous by thread: How to access Serial port's Line Control Register
- Index(es):
Relevant Pages
|
|