[ConfigFile] Add clock_out keyword
This commit is contained in:
parent
321f898bd4
commit
8bfe4deca3
1 changed files with 9 additions and 0 deletions
|
|
@ -263,6 +263,15 @@ static int apply_config_options(struct bladerf *dev, struct config_options opt)
|
|||
}
|
||||
|
||||
status = bladerf_set_clock_select(dev, clock_sel);
|
||||
} else if (!strcasecmp(opt.key, "clock_out")) {
|
||||
bool enable = false;
|
||||
|
||||
status = str2bool(opt.value, &enable);
|
||||
if (status != 0) {
|
||||
return BLADERF_ERR_INVAL;
|
||||
}
|
||||
|
||||
status = bladerf_set_clock_output(dev, enable);
|
||||
} else {
|
||||
log_warning("Invalid key `%s' on line %d\n", opt.key, opt.lineno);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue