#include <stdio.h>
#include <string.h>
#include <aversive/wait.h>
#include <aversive/list.h>
#include <uart.h>
Go to the source code of this file.
#define SCANCODE_BREAK 1 |
#define SCANCODE_EXTENDED 2 |
#define SCANCODE_EXTENDED_LIST "\x11\x14\x4A\x5A\x69\x6B\x6C\x70\x71\x72\x74\x75\x7A\x7C\x7D" |
#define SCANCODE_EXTENDED_LIST_OFFSET 0x85 |
Referenced by get_scancode().
#define SCANCODE_EXTENDED_LIST_SIZE 15 |
Referenced by get_scancode().
#define SCANCODE_HAS_NO_BREAK 4 |
#define SCANCODE_MAX_SIZE 8 |
#define SCANCODE_VAL_CTRL_PAUSE "\xE0\x7E\xE0\xF0\x7E" |
Referenced by get_scancode().
#define SCANCODE_VAL_CTRL_PAUSE_OFFSET 2 |
Referenced by get_scancode().
#define SCANCODE_VAL_CTRL_PAUSE_SIZE 5 |
Referenced by get_scancode().
#define SCANCODE_VAL_PAUSE "\xE1\x14\x77\xE1\xF0\x14\xF0\x77" |
Referenced by get_scancode().
#define SCANCODE_VAL_PAUSE_OFFSET 0 |
Referenced by get_scancode().
#define SCANCODE_VAL_PAUSE_SIZE 8 |
Referenced by get_scancode().
#define SCANCODE_VAL_PRTSCR "\xE0\x12\xE0\x7C" |
Referenced by get_scancode().
#define SCANCODE_VAL_PRTSCR_BREAK "\xE0\xF0\x12\xE0\xF0\x7C" |
Referenced by get_scancode().
#define SCANCODE_VAL_PRTSCR_BREAK_OFFSET 1 |
Referenced by get_scancode().
#define SCANCODE_VAL_PRTSCR_BREAK_SIZE 6 |
Referenced by get_scancode().
#define SCANCODE_VAL_PRTSCR_OFFSET 1 |
Referenced by get_scancode().
#define SCANCODE_VAL_PRTSCR_SIZE 4 |
Referenced by get_scancode().
#define SCANCODE_VAL_SHIFT_SLASH "\xE0\xF0\x12\xE0\x4A" |
Referenced by get_scancode().
#define SCANCODE_VAL_SHIFT_SLASH_BREAK "\xE0\xF0\x4A\xE0\x12" |
Referenced by get_scancode().
#define SCANCODE_VAL_SHIFT_SLASH_BREAK_OFFSET 3 |
Referenced by get_scancode().
#define SCANCODE_VAL_SHIFT_SLASH_BREAK_SIZE 5 |
Referenced by get_scancode().
#define SCANCODE_VAL_SHIFT_SLASH_OFFSET 3 |
Referenced by get_scancode().
#define SCANCODE_VAL_SHIFT_SLASH_SIZE 5 |
Referenced by get_scancode().
int8_t get_scancode | ( | struct scancode * | s | ) |
Definition at line 240 of file main.c.
References LIST_TO_ARRAY, my_fifo, gen_regs::p, SCANCODE_BREAK, SCANCODE_EXTENDED, scancode_extended_list, SCANCODE_EXTENDED_LIST_OFFSET, SCANCODE_EXTENDED_LIST_SIZE, SCANCODE_HAS_NO_BREAK, SCANCODE_MAX_SIZE, SCANCODE_VAL_CTRL_PAUSE, SCANCODE_VAL_CTRL_PAUSE_OFFSET, SCANCODE_VAL_CTRL_PAUSE_SIZE, SCANCODE_VAL_PAUSE, SCANCODE_VAL_PAUSE_OFFSET, SCANCODE_VAL_PAUSE_SIZE, SCANCODE_VAL_PRTSCR, SCANCODE_VAL_PRTSCR_BREAK, SCANCODE_VAL_PRTSCR_BREAK_OFFSET, SCANCODE_VAL_PRTSCR_BREAK_SIZE, SCANCODE_VAL_PRTSCR_OFFSET, SCANCODE_VAL_PRTSCR_SIZE, SCANCODE_VAL_SHIFT_SLASH, SCANCODE_VAL_SHIFT_SLASH_BREAK, SCANCODE_VAL_SHIFT_SLASH_BREAK_OFFSET, SCANCODE_VAL_SHIFT_SLASH_BREAK_SIZE, SCANCODE_VAL_SHIFT_SLASH_OFFSET, and SCANCODE_VAL_SHIFT_SLASH_SIZE.
Referenced by main().
LIST_TYPEDEF | ( | fifo_t | , | |
char | , | |||
32 | ||||
) |
int main | ( | void | ) |
Definition at line 363 of file main.c.
References get_scancode(), LIST_INIT, LIST_PULL_START, LIST_PUSH_END, my_fifo, and print_scancode().
void print_scancode | ( | struct scancode * | s | ) |
Definition at line 347 of file main.c.
References i, SCANCODE_BREAK, SCANCODE_EXTENDED, SCANCODE_HAS_NO_BREAK, and tab.
Referenced by main().
volatile fifo_t my_fifo |
char* scancode_extended_list = SCANCODE_EXTENDED_LIST |
char tab[] |