From 4f1b79be8fdc5e9ca1684bbdc2b8f43504d1a2fd Mon Sep 17 00:00:00 2001 From: smckown Date: Wed, 1 Apr 2009 02:55:05 +0000 Subject: [PATCH] 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. --- src/examples/cpmfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2