Definitions for c_cflag etc. in termbits.h???
Hi there,
I am playing around with UARTs and got completly confused when looking at ./include/asm-ppc/termbits.h:
E.g. the DEFINEs of c_iflags appear to me as decimal values!?
/* c_iflag bits */
#define IGNBRK 0000001 #define BRKINT 0000002 #define IGNPAR 0000004 #define PARMRK 0000010 #define INPCK 0000020 #define ISTRIP 0000040 #define INLCR 0000100 #define IGNCR 0000200 #define ICRNL 0000400 #define IXON 0001000 #define IXOFF 0002000 #define IXANY 0004000 #define IUCLC 0010000
#define IMAXBEL 0020000
So how could code like
./arch/ppc/8xx_io/uart.c: if (I_BRKINT(info->tty) || I_PARMRK(info->tty))
or
./arch/ppc/8xx_io/uart.c:#define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))
possibly work?
Shouldn't that be hex values as in ./include/asm-sparc64/termbits.h:
/* c_iflag bits */
#define IGNBRK 0x00000001 #define BRKINT 0x00000002 #define IGNPAR 0x00000004 #define PARMRK 0x00000008 #define INPCK 0x00000010 #define ISTRIP 0x00000020 #define INLCR 0x00000040 #define IGNCR 0x00000080
etc. ???
Thanks,
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Steven Scholz
./include/asm-ppc/termbits.h:E.g. the DEFINEs of
c_iflagsappear to me as decimal values!?/*
c_iflagbits */
#define IGNBRK 0000001
It's octal (note the leading zero).
Regards,
Marius
-----------------------------------------------------------------------------
Marius Groeger SYSGO Real-Time Solutions AG [email protected] Software Engineering Embedded and Real-Time Software www.sysgo.de Voice: +49-6136-9948-0 Am Pfaffenstein 14 www.osek.de FAX: +49-6136-9948-10 55270 Klein-Winternheim, Germany www.elinos.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi Steven,
Quoted 17 lines · in message <[email protected]> you wrote:
E.g. the DEFINEs of
c_iflagsappear to me as decimal values!?/*
c_iflagbits */#define IGNBRK 0000001 #define BRKINT 0000002 #define IGNPAR 0000004 #define PARMRK 0000010 #define INPCK 0000020 #define ISTRIP 0000040 #define INLCR 0000100 #define IGNCR 0000200 #define ICRNL 0000400 #define IXON 0001000 #define IXOFF 0002000 #define IXANY 0004000 #define IUCLC 0010000
Quoted 1 line
#define IMAXBEL 0020000
No, these are octal values, of course.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Steven Scholz
Hi there,
I am playing around with UARTs and got completly confused when looking at
./include/asm-ppc/termbits.h:E.g. the DEFINEs of
c_iflagsappear to me as decimal values!?/*
c_iflagbits */
#define IGNBRK 0000001
Thanks to you all!
Of course it's octal.
It's friday! Sorry for the noise!
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi
Quoted 4 lines · Steven Scholz
Hi there,
I am playing around with UARTs and got completly confused when looking at
./include/asm-ppc/termbits.h:
That reminds me of something:
Is it possible that "CMSPAR" is missing in both the 2.4 and 2.5 version of asm-ppc/termbits.h?
Dave
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/