From: smckown Date: Wed, 1 Apr 2009 02:55:05 +0000 (+0000) Subject: Turn on weak pull-ups in the examples/cpmfg program. These aren't needed for X-Git-Tag: debian/0.11.2-5.2tmi~27 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=commitdiff_plain;h=4f1b79be8fdc5e9ca1684bbdc2b8f43504d1a2fd Turn on weak pull-ups in the examples/cpmfg program. These aren't needed for the RWS board, but it shouldn't hurt and should be a more general config. --- diff --git a/src/examples/cpmfg.c b/src/examples/cpmfg.c index ed8524a..68bd5ef 100644 --- a/src/examples/cpmfg.c +++ b/src/examples/cpmfg.c @@ -113,7 +113,8 @@ void cpSetLeds(int fd) config.suspend.mode &= ~0x0300; config.reset.latch |= 0x0300; config.enhancedFxn |= 0x03; - config.enhancedFxn &= ~0x10; /* turn off weak pullups */ + //config.enhancedFxn &= ~0x10; /* turn off weak pullups */ + config.enhancedFxn |= 0x10; /* turn on weak pullups */ if ((ret = ioctl(fd, IOCTL_PORTCONFSET, &config))) { fprintf(stderr, "portconfset ioctl failed %d\n", ret); exit(1);