Subversion Repositories HelenOS-historic

Rev

Rev 1344 | Rev 1476 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1344 Rev 1392
Line 25... Line 25...
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <key_buffer.h>
29
#include <key_buffer.h>
30
#include <fifo.h>
30
#include <libadt/fifo.h>
31
 
31
 
32
#define KBD_BUFFER_SIZE 128 /**< Size of buffer for pressed keys */
32
#define KBD_BUFFER_SIZE 128 /**< Size of buffer for pressed keys */
33
 
33
 
34
FIFO_INITIALIZE_STATIC(buffer, char, KBD_BUFFER_SIZE);  /**< Fifo for storing pressed keys */
34
FIFO_INITIALIZE_STATIC(buffer, char, KBD_BUFFER_SIZE);  /**< Fifo for storing pressed keys */
35
fifo_count_t buffer_items;  /**< Counter of used items for prevent fifo overflow */
35
fifo_count_t buffer_items;  /**< Counter of used items for prevent fifo overflow */