Changeset 1183 for trunk/csctapi/pps.c
- Timestamp:
- 01/11/10 12:43:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/pps.c
r1171 r1183 471 471 #elif COOL 472 472 if(pps->icc->ifd->io->com==RTYP_SCI) { 473 typedef unsigned long u_int32; 474 u_int32 clk; 475 clk = atr_fs_table[pps->parameters.FI]; 476 if (cnxt_smc_set_clock_freq(handle, clk)) 477 return ICC_ASYNC_IFD_ERROR; 478 #ifdef DEBUG_PROTOCOL 479 printf("Coolstream: set clock to %lu Hz\n", clk); 480 #endif 481 return ICC_ASYNC_OK; 473 int mhz = atr_fs_table[pps->parameters.FI] / 10000; 474 if (!Cool_SetBaudrate(mhz)) 475 return PPS_ICC_ERROR; 476 #ifdef DEBUG_PROTOCOL 477 printf("Coolstream: set clock to %i * 10kHz\n", mhz); 478 #endif 479 return PPS_OK; 482 480 } 483 481 else
Note:
See TracChangeset
for help on using the changeset viewer.