Working PLL

pull/65/head
erikkaashoek 3 years ago
parent 17e4fad5d1
commit 0bf6bb9460

@ -1064,6 +1064,7 @@ config_t config = {
/* ultra */ { -3.49, -1.82, 0.74, 0.69, -2.16, -2.23, 0.81, 0.06, -0.1, 0.82, 0.65, 1.89, 1.64, 2.24, 1.32, 1.62, 0.76, 1.77, 7.57, 7.35, },
},
.setting_frequency_30mhz = 30000000ULL * FREQ_MULTIPLIER,
.gridlines = 6,
.cor_am = 0,
.cor_wfm = 0,
.cor_nfm = 0,

@ -1116,15 +1116,16 @@ draw_cell(int m, int n)
c = GET_PALTETTE_COLOR(LCD_GRID_COLOR);
// Draw rectangular plot (40 system ticks for all screen calls)
const int step = 2;
if (trace_type & RECTANGULAR_GRID_MASK) {
for (x = 0; x < w; x++) {
if (rectangular_grid_x(x + x0)) {
for (y = 0; y < h; y++) cell_buffer[y * CELLWIDTH + x] = c;
for (y = 0; y < h; y+=step) cell_buffer[y * CELLWIDTH + x] = c;
}
}
for (y = 0; y < h; y++) {
if (rectangular_grid_y(y + y0)) {
for (x = 0; x < w; x++)
for (x = 0; x < w; x+=step)
if ((uint32_t)(x + x0 - CELLOFFSETX) <= WIDTH)
cell_buffer[y * CELLWIDTH + x] = c;
}

@ -536,7 +536,6 @@ void ADF4351_spur_mode(int S)
void ADF4351_R_counter(int new_R)
{
return;
if (new_R == old_R)
return;
old_R = new_R;

Loading…
Cancel
Save

Powered by TurnKey Linux.