-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certain terminal commands may be confusing #1570
Comments
I agree that
That is a bit difficult as it requires a radical change in how terminal commands are parsed. |
An evil hack could be to replace in
Contrary to EDIT: @stefanrueger has typed faster than me
good point |
There are ways, but this is probably not a good one.
Great point; that would be a useful libavrdude function. |
I identified at least four setter w/o getter candidates: pgm->set_vtarget = NULL;
pgm->set_varef = NULL;
pgm->set_fosc = NULL;
pgm->set_sck_period = NULL; int (*set_vtarget) (const struct programmer_t *pgm, double v);
int (*set_varef) (const struct programmer_t *pgm, unsigned int chan, double v);
int (*set_fosc) (const struct programmer_t *pgm, double v);
int (*set_sck_period) (const struct programmer_t *pgm, double v); Global implementation would look like: pgm->get_vtarget = NULL; int (*get_vtarget) (const struct programmer_t *pgm, double *v); with optional individual backend functions enabled by |
…sck_period this is only a proof of concept declarations for libavrdude, parser in term.c sample implementations in stk500v1.c Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
I provided a proof of concept for the 4 missing libavrdude functions. |
…sck_period this is only a proof of concept declarations for libavrdude, parser in term.c sample implementations in stk500v1.c Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
…sck_period this is only a proof of concept declarations for libavrdude, parser in term.c sample implementations in stk500v1.c Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
…sck_period this is only a proof of concept declarations for libavrdude, parser in term.c sample implementations in stk500v1.c Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
…sck_period this is only a proof of concept declarations for libavrdude, parser in term.c sample implementations in stk500v1.c Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
new functions (#1570): get_vtarget, get_varef, get_fosc, get_sck_period
When testing PR #1566 I used my STK500 board(s) in interactive terminal mode to change various settings. To see which board settings I could change at runtime, I ran the
parms
command:All good! Now I want to change the oscillator speed.
oscillator=1M
doesn't work, and neither doesoscillator 1M
,osc=1M
orosc 1M
. The syntax is very strict, and I'll have to run?
to list all available commands to find out that it wasfosc <value>[M|k]
I should have used all along.fosc=1M
) when-x
would require it. Maybe terminal mode could support both?fosc
just by running thefosc
command without any parameters, or perhaps with a question mark at the end (fosc?
)?parms
.Any thoughts?
The text was updated successfully, but these errors were encountered: