| Line 299... | 
        Line 299... | 
      
      
        | 299 | 
          | 
        299 | 
          | 
      
      
        | 300 | 
            exit(1); | 
        300 | 
            exit(1); | 
      
      
        | 301 | 
          } | 
        301 | 
          } | 
      
      
        | 302 | 
        #endif | 
        302 | 
        #endif | 
      
      
        | 303 | 
          | 
        303 | 
          | 
      
      
        | 304 | 
          printf("writing to adapter");   | 
        - | 
          | 
      
      
        | 305 | 
          i2c_tiny_usb_write(0,0,0); | 
        - | 
          | 
      
      
        | 306 | 
          | 
        - | 
          | 
      
      
        | 307 | 
          /* do some testing */ | 
        304 | 
          /* do some testing */ | 
      
      
        | 308 | 
          printf("Getting adapter functionalities"); | 
        305 | 
          printf("Getting adapter functionalities\n"); | 
      
      
        | 309 | 
          i2c_tiny_usb_get_func(); | 
        306 | 
          i2c_tiny_usb_get_func(); | 
      
      
        | 310 | 
          | 
        307 | 
          | 
      
      
        | 311 | 
          /* try to set i2c clock to 100kHz (10us), will actually result in ~50kHz */ | 
        308 | 
          /* try to set i2c clock to 100kHz (10us), will actually result in ~50kHz */ | 
      
      
        | 312 | 
          /* since the software generated i2c clock isn't too exact. in fact setting */ | 
        309 | 
          /* since the software generated i2c clock isn't too exact. in fact setting */ | 
      
      
        | 313 | 
          /* it to 10us doesn't do anything at all since this already is the default */ | 
        310 | 
          /* it to 10us doesn't do anything at all since this already is the default */ | 
      
      
        | 314 | 
          printf("Reseting I2C clock to 100 kHz"); | 
        311 | 
          printf("Reseting I2C clock to 100 kHz\n"); | 
      
      
        | 315 | 
          i2c_tiny_usb_set(CMD_SET_DELAY, 10); | 
        312 | 
          i2c_tiny_usb_set(CMD_SET_DELAY, 10); | 
      
      
        | 316 | 
          | 
        313 | 
          | 
      
      
        | 317 | 
          /* -------- begin of ds1621 client processing --------- */ | 
        314 | 
          /* -------- begin of ds1621 client processing --------- */ | 
      
      
        | 318 | 
          printf("Probing for DS1621 ... "); | 
        315 | 
          printf("Probing for DS1621 ... "); | 
      
      
        | 319 | 
          | 
        316 | 
          |