Fix DMA DISDEBUG field

This commit is contained in:
F5OEO 2018-08-06 09:27:36 +00:00
parent 8d0ff49fa7
commit 7a199b0b8d
2 changed files with 3 additions and 2 deletions

View file

@ -251,7 +251,7 @@ int clkgpio::ComputeBestLO(uint64_t Frequency, int Bandwidth)
if (solution_count > 0) if (solution_count > 0)
{ {
PllFixDivider = best_divider; PllFixDivider = best_divider;
//fprintf(stderr, " multiplier:%f divider:%d VCO: %4.1fMHz Spurious %f \n", Frequency * best_divider * xtal_freq_recip, best_divider, (double)Frequency * best_divider / 1e6,frac_multiplier*xtal_freq_recip/(double)divider); fprintf(stderr, " multiplier:%f divider:%d VCO: %4.1fMHz Spurious %f \n", Frequency * best_divider * xtal_freq_recip, best_divider, (double)Frequency * best_divider / 1e6,frac_multiplier*xtal_freq_recip/(double)divider);
return 0; return 0;
} }
else else

View file

@ -39,7 +39,8 @@ class gpio
#define DMA_CS_RESET (1<<31) #define DMA_CS_RESET (1<<31)
#define DMA_CS_ABORT (1<<30) #define DMA_CS_ABORT (1<<30)
#define DMA_CS_DISDEBUG (1<<28) #define DMA_CS_DISDEBUG (1<<29)
#define DMA_CS_WAIT_FOR_OUTSTANDING_WRITES (1<<28)
#define DMA_CS_INT (1<<2) #define DMA_CS_INT (1<<2)
#define DMA_CS_END (1<<1) #define DMA_CS_END (1<<1)
#define DMA_CS_ACTIVE (1<<0) #define DMA_CS_ACTIVE (1<<0)