]> oss.titaniummirror.com Git - cp210x.git/commitdiff
Turn on weak pull-ups in the examples/cpmfg program. These aren't needed for
authorsmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Wed, 1 Apr 2009 02:55:05 +0000 (02:55 +0000)
committersmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Wed, 1 Apr 2009 02:55:05 +0000 (02:55 +0000)
the RWS board, but it shouldn't hurt and should be a more general config.

src/examples/cpmfg.c

index ed8524a5320da55132ce7bf48d5f3406660f09bf..68bd5efbcc769d79bc35ecf2c32170aa28b57ca5 100644 (file)
@@ -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);