summaryrefslogtreecommitdiff
path: root/src/stm/ao_lcd_stm.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-27 13:34:12 -0700
committerKeith Packard <keithp@keithp.com>2012-08-27 13:34:12 -0700
commit304909b7534768bfc8da62954effb37ba86806ea (patch)
treec0c3c3dccdc7f9bbe30fad595419b5b55f33c4a6 /src/stm/ao_lcd_stm.h
parentc1168f40223ca09df23215f2e2fc445a8a03aea9 (diff)
altos: Provide interface for STM LCD driver.
This provides a simple function interface for driving the LCD segments in the STM chip. It also uses the update complete interrupt to block LCD users during flush. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_lcd_stm.h')
-rw-r--r--src/stm/ao_lcd_stm.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/stm/ao_lcd_stm.h b/src/stm/ao_lcd_stm.h
new file mode 100644
index 00000000..14667546
--- /dev/null
+++ b/src/stm/ao_lcd_stm.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright © 2012 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+#ifndef _AO_LCD_STM_H_
+#define _AO_LCD_STM_H_
+
+void
+ao_lcd_set(uint8_t digit, uint8_t segment, uint8_t value);
+
+void
+ao_lcd_clear(void);
+
+void
+ao_lcd_flush(void);
+
+#endif /* _AO_LCD_STM_H_ */