]> sigrok.org Git - libsigrok.git/blobdiff - hardware/demo/demo.c
sr: Fix/document probe names.
[libsigrok.git] / hardware / demo / demo.c
index 6ae0d80da960e8f57ea2f358ca6d32a41e835333..8a84e8ce65a3d6b7d4f407da0107703f510eb6e2 100644 (file)
@@ -102,6 +102,7 @@ static const char *pattern_strings[] = {
        NULL,
 };
 
+/* We name the probes 0-7 on our demo driver. */
 static const char *probe_names[NUM_PROBES + 1] = {
        "0",
        "1",
@@ -125,6 +126,9 @@ static uint8_t pattern_sigrok[] = {
        0xbe, 0xbe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 };
 
+/* Private, per-device-instance driver context. */
+/* TODO: struct context as with the other drivers. */
+
 /* List of struct sr_dev_inst, maintained by dev_open()/dev_close(). */
 static GSList *dev_insts = NULL;
 static uint64_t cur_samplerate = SR_KHZ(200);