root/platform/a495/platform_kbd.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef PLATFORM_KBD_H
   2 #define PLATFORM_KBD_H
   3 // plaform specific keyboard defines, see core/kbd_common.c for documentation
   4 
   5 #define KEYS_MASK0 (0x00020000)
   6 #define KEYS_MASK1 (0x00000000)
   7 #define KEYS_MASK2 (0x01F001F4)
   8 #define KEYS_INV2  (0x01F00000)
   9 /*
  10 the 4 button states residing in the upper half of physw_status[2] seem to be inverted
  11 to handle these correctly, their value needs to be inverted:
  12 - when reading from physw_status[2] to the state variables
  13 - when writing to physw_status[2] from the state variables
  14 KEYS_INV2 should be used for that
  15 SD_READONLY_FLAG and USB_MASK are not affected by this
  16 
  17 when idle, physw_status[2] looks like: "0000 0100 0000 000x xxxx 0001 1111 0100"
  18                          KEYS_MASK2 is "00000001011100000000000111110100"
  19 */
  20 
  21 #define SD_READONLY_FLAG (0x40000)
  22 #define SD_READONLY_IDX 2
  23 #define USB_MASK (0x80000)
  24 #define USB_IDX 2
  25 // non-standard key state update
  26 #define KBD_CUSTOM_UPDATE_KEY_STATE 1
  27 #endif

/* [<][>][^][v][top][bottom][index][help] */