the RWS board, but it shouldn't hurt and should be a more general config.
config.suspend.mode &= ~0x0300;
config.reset.latch |= 0x0300;
config.enhancedFxn |= 0x03;
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);
if ((ret = ioctl(fd, IOCTL_PORTCONFSET, &config))) {
fprintf(stderr, "portconfset ioctl failed %d\n", ret);
exit(1);