Mercurial > louis > kiibohd-controller
changeset 46:4427da7db226
Small Univac update
author | Jacob Alexander <triplehaata@gmail.com> |
---|---|
date | Mon, 26 Mar 2012 18:07:56 -0400 |
parents | 8a09c4d30e16 |
children | 0ee2207c5919 |
files | Scan/UnivacF3W9/scan_loop.c |
diffstat | 1 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Scan/UnivacF3W9/scan_loop.c Sat Mar 03 21:16:41 2012 -0500 +++ b/Scan/UnivacF3W9/scan_loop.c Mon Mar 26 18:07:56 2012 -0400 @@ -99,12 +99,22 @@ DATA_PORT |= (1 << DATA_PIN); // Set to pull-up resistor // Setup the REQUEST pin - REQUEST_DDR |= (1 << REQUEST_PIN); // Set to output + REQUEST_PORT |= (1 << REQUEST_PIN); // Set to output STOP_DATA(); // Set the line high to stop incoming data + REQUEST_DATA(); + + DDRD |= (1 << 4); + PORTD &= ~(1 << 4); + + // Message + info_print("Pins Setup"); // Reset the keyboard before scanning, we might be in a wierd state _delay_ms( 50 ); - scan_resetKeyboard(); + //scan_resetKeyboard(); + + // Message + info_print("Keyboard Buffer Flushed"); } @@ -127,6 +137,7 @@ // we were using (but can't...) a hardware decoder like a USART. inline uint8_t scan_loop() { + return 0; // Protocol Notes: // - Packets are 20 bits long, including the start bit // - Each bit is ~105 usecs in length