summaryrefslogtreecommitdiff
path: root/multiplexer.h
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-05 20:54:38 +0100
committerErich Eckner <git@eckner.net>2018-11-05 20:54:38 +0100
commitca7a705aea219313e9b8b64330aa4c27d3ab3f1d (patch)
treea04117806061743b694c8f74e109c3dfec1bf86a /multiplexer.h
parentc6454367c84a99a4b17b69117f6eb803da610e72 (diff)
downloadanzeige-ca7a705aea219313e9b8b64330aa4c27d3ab3f1d.tar.xz
multiplexer: tpic_settle_time now adaptively controlled
Diffstat (limited to 'multiplexer.h')
-rw-r--r--multiplexer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/multiplexer.h b/multiplexer.h
index 4f94f17..3fb1f87 100644
--- a/multiplexer.h
+++ b/multiplexer.h
@@ -49,7 +49,8 @@ static uint8_t gpioToPUDCLK [] =
#define SCROLL_BUF_LEN 4096
-#define wait_tpic_settle_time for (int i=0; i<100; i++) { asm volatile("" : : "r" (i)); }
+static int tpic_settle_time_iterator = 1000;
+#define wait_tpic_settle_time for (int i=0; i<tpic_settle_time_iterator; i++) { asm volatile("" : : "r" (i)); }
int mem_fd;
void *gpio_map;