diff options
author | Keith Packard <keithp@keithp.com> | 2011-10-26 22:49:11 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-26 22:49:11 -0700 |
commit | da330c5975b9f565d059ef8084dfdacc20f34246 (patch) | |
tree | 4b7c7cf40cb42427663c863dbe33fa8dc852bbb0 /src/cc1111/ao_lcd_port.c | |
parent | 8e4cceedb5b758faae684978299e667c4bb06f4d (diff) |
altos: Bring up basic TeleTerra v0.2 UImultiarch
Lots of fun stuff here -- multiple panes of information.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_lcd_port.c')
-rw-r--r-- | src/cc1111/ao_lcd_port.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/cc1111/ao_lcd_port.c b/src/cc1111/ao_lcd_port.c index 324cc3d3..e61b1a60 100644 --- a/src/cc1111/ao_lcd_port.c +++ b/src/cc1111/ao_lcd_port.c @@ -17,15 +17,24 @@ #include "ao.h" +static void +ao_lcd_port_delay(void) +{ + uint8_t i; + + for (i = 0; i < 100; i++) + ao_arch_nop(); +} + void ao_lcd_port_put_nibble(uint8_t rs, uint8_t nibble) { P0 = (P0 & 0xf0) | (nibble & 0x0f); P1_1 = rs; P1_0 = 1; - ao_delay(1); + ao_lcd_port_delay(); P1_0 = 0; - ao_delay(1); + ao_lcd_port_delay(); } void |