1 #ifndef PLATFORM_KBD_H 2 #define PLATFORM_KBD_H 3 // plaform specific keyboard defines, see core/kbd_common.c for documentation 4 // non-standard key state update to handle inverted keys, etc 5 #define KBD_CUSTOM_UPDATE_KEY_STATE 1 6 #define KEYS_MASK0 (0x00020000) 7 #define KEYS_MASK1 (0x00000000) 8 #define KEYS_MASK2 (0x3E0003f0) 9 #define KEYS_INV2 (0x3E000000) //higher 1=pressed (MENU,UP,DOWN,LEFT) =>INTRODUCED 10 /* 11 the 4 button states residing in the upper half of physw_status[2] seem to be inverted 12 to handle these correctly, their value needs to be inverted: 13 - when reading from physw_status[2] to the state variables 14 - when writing to physw_status[2] from the state variables 15 KEYS_INV2 should be used for that 16 SD_READONLY_FLAG and USB_MASK are not affected by this 17 18 when idle, physw_status[2] looks like: "" 19 KEYS_MASK2 is "00101110000000000000001111110000" 20 */ 21 #define SD_READONLY_FLAG 0x00020000 // Found @0xffe9db68, levent 0x90a 22 #define SD_READONLY_IDX 2 23 #define USB_MASK 0x01000000 // Found @0xffe9db88, levent 0x902 24 #define USB_IDX 2 25 #endif