diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2012-08-19 16:49:24 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2012-08-19 16:49:24 +0200 |
commit | 742991b70af22e329457560614579b47b4d6049b (patch) | |
tree | 07b687ed213d7784b81809735605231fbb600cf6 | |
parent | d77b82b0db30650b26fe716035cbbae623d753f7 (diff) | |
download | bcm4751-tuna.tar.gz bcm4751-tuna.tar.bz2 bcm4751-tuna.zip |
bcm4751_test: replace the magic number by constants.tuna
Thanks a lot <Alex[sp3dev]> for the help on the FreeNode #openmoko-cdevel channel :
Aug 19 15:08:58 <Alex[sp3dev]> # define CRTSCTS 020000000000
Aug 19 15:16:56 <Alex[sp3dev]> GNUtoo: 18b2 is CS8 | CREAD | CLOCAL | B115200
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
-rw-r--r-- | utils/bcm4751_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/bcm4751_test.c b/utils/bcm4751_test.c index 538978c..b00b0c2 100644 --- a/utils/bcm4751_test.c +++ b/utils/bcm4751_test.c @@ -156,11 +156,12 @@ int main(int argc, char *argv[]) ioctl(serial_fd, TCFLSH, 0x2); cfmakeraw(&termios); - cfsetispeed(&termios, B460800); - cfsetospeed(&termios, B460800); + /* the gps lib switches to B460800 at some point, when? why? */ +// cfsetispeed(&termios, B460800); +// cfsetospeed(&termios, B460800); // This is the magic to contact the chip - termios.c_cflag = 0x800018b2; + termios.c_cflag = CRTSCTS | CS8 | CREAD | CLOCAL | B115200; // termios.c_cc[5]=0x01; // termios.c_cc[6]=0x00; |