source: avrstuff/libs/amiga_keyboard/amiga_keyboard.h@ 38f2eef

main
Last change on this file since 38f2eef was 38f2eef, checked in by Adrien Destugues <pulkomandy@…>, 14 years ago

Amiga_keybaord : add non-blocking function to get a char when it's ready.

git-svn-id: svn://pulkomandy.tk/avrstuff@8 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

  • Property mode set to 100644
File size: 556 bytes
Line 
1/* Amiga Keyboard reading on Atmel AVR
2 * Copyright 2010, Adrien Destugues <pulkomandy@pulkomandy.ath.cx>
3 * Distributed under the terms of the MIT Licence */
4
5#include <inttypes.h>
6
7extern volatile uint8_t char_waiting;
8
9void ak_init_keyboard();
10 // Call this to set up the I/O pins
11uint8_t ak_wait_scancode();
12 // Wait for a char to come from the keyboard
13uint8_t ak_read_scancode();
14 // Get char from keyboard. Only call this if char_waiting is set !
15char ak_scancode_to_ascii(uint8_t);
16 // Convert a keycode to a printable ASCII char
Note: See TracBrowser for help on using the repository browser.