Skip to content
Snippets Groups Projects
Commit b9ad6a94 authored by Rolf Bork's avatar Rolf Bork
Browse files

Fix for IOP configured as Dolphin timing slave.

Main issue was extra space in my ifdef TIME_SLAVE in time_slave_io.c,
therefore code not compiled correctly and reverted to internal timer.
parent a71d19bd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment