From 486c3a08f84480a620b945ba5cfa97ef1acc9da3 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. git-svn-id: svn+ssh://repo/projects/cp210x/trunk@52 986fd584-583e-0410-b54d-b9fe63dff8e5 --- 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