diff --git a/src/include/drv/time_slave_io.c b/src/include/drv/time_slave_io.c index 9b15762e259fc76f6740acd723e4b1fda7b0f04f..c082034a88cf0bd84f1ea438af9c60a676f11659 100644 --- a/src/include/drv/time_slave_io.c +++ b/src/include/drv/time_slave_io.c @@ -25,8 +25,9 @@ inline unsigned int sync2master( volatile TIMING_SIGNAL* timePtr ) { int loop = 0; - int cycle = 0; + int cycle = 65535; +printk("sync to master %d\n",timePtr->gps_time); do { udelay( 5 ); @@ -103,7 +104,7 @@ iop_adc_read( adcInfo_t* adcinfo, int cpuClk[] ) int iocycle = 0; // Read ADC data -#ifdef TIMIE_SLAVE +#ifdef TIME_SLAVE missedCycle = waitPcieTimingSignal( pcieTimer, cycleNum ); timeSec = pcieTimer->gps_time; #else