From: Andrej Valek Date: Mon, 28 May 2018 17:51:29 +0000 (+0200) Subject: Add SR_CONF_EXTERNAL_CLOCK_SOURCE key. X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=bc294eaca829f7681c6d3a371a816e871aa9c4b8;ds=sidebyside Add SR_CONF_EXTERNAL_CLOCK_SOURCE key. Signed-off-by: Andrej Valek --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index e88360b6..a8b118c3 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -989,6 +989,12 @@ enum sr_configkey { /** Under-voltage condition threshold. */ SR_CONF_UNDER_VOLTAGE_CONDITION_THRESHOLD, + /** + * Which external clock source to use if the device supports + * multiple external clock channels. + */ + SR_CONF_EXTERNAL_CLOCK_SOURCE, + /* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /*--- Special stuff -------------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 36130625..5f7e2371 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -181,6 +181,8 @@ static struct sr_key_info sr_key_info_config[] = { "Under-voltage condition threshold", NULL}, {SR_CONF_TRIGGER_LEVEL, SR_T_FLOAT, "triggerlevel", "Trigger level", NULL}, + {SR_CONF_EXTERNAL_CLOCK_SOURCE, SR_T_STRING, "external_clock_source", + "External clock source", NULL}, /* Special stuff */ {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",