Skip to content

Commit

Permalink
fosc / sck test for most stk500v2 based programmer (except mk3?)
Browse files Browse the repository at this point in the history
difficult to test w/o programmer HW (only orig STK500 (v2) and SMo)

Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>

# Conflicts:
#	src/stk500v2.c
  • Loading branch information
Ho-Ro committed Nov 22, 2023
1 parent fd0c222 commit 787770f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/stk500v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3870,18 +3870,10 @@ static void stk500v2_print_parms1(const PROGRAMMER *pgm, const char *p, FILE *fp
fmsg_out(fp, "Off\n");
else {
f = f_to_kHz_MHz(f, &unit);
fmsg_out(fp, "%.*f %s\n", decimals, f, unit);
fmsg_out(fp, "%.3f %s\n", f, unit);
}
}
fmsg_out(fp, "%sSCK period : %.1f us\n", p,
stk500v2_sck_to_us(pgm, sck_duration));

//const char *unit;
double f = PDATA(pgm)->xtal;
decimals = get_decimals(f);
f = f_to_kHz_MHz(f, &unit);
fmsg_out(fp, "%sXTAL frequency : %.*f %s\n", p, decimals, f, unit);
break;
break;

case PGMTYPE_AVRISP_MKII:
case PGMTYPE_JTAGICE_MKII:
Expand Down

0 comments on commit 787770f

Please sign in to comment.