comparison Output/usbMuxUart/output_com.h @ 340:e8841d3c6db5

mk20dx256vlh7 working! - Interrupt vector table position fix (affected everything in the firmware) - Added fault debug messages - Fixed usbMuxUart
author Jacob Alexander <haata@kiibohd.com>
date Sat, 13 Jun 2015 20:42:12 -0700
parents 7119c2149abb
children
comparison
equal deleted inserted replaced
339:2f415c0b4b28 340:e8841d3c6db5
34 34
35 // ----- Defines ----- 35 // ----- Defines -----
36 36
37 // Max size of key buffer needed for NKRO 37 // Max size of key buffer needed for NKRO
38 // Boot mode uses only the first 6 bytes 38 // Boot mode uses only the first 6 bytes
39 #define USB_NKRO_BITFIELD_SIZE_KEYS 26 39 #define USB_NKRO_BITFIELD_SIZE_KEYS 27
40 #define USB_BOOT_MAX_KEYS 6 40 #define USB_BOOT_MAX_KEYS 6
41 41
42 42
43 43
44 // ----- Enumerations ----- 44 // ----- Enumerations -----
49 USBKeyChangeState_None = 0x00, 49 USBKeyChangeState_None = 0x00,
50 USBKeyChangeState_Modifiers = 0x01, 50 USBKeyChangeState_Modifiers = 0x01,
51 USBKeyChangeState_MainKeys = 0x02, 51 USBKeyChangeState_MainKeys = 0x02,
52 USBKeyChangeState_SecondaryKeys = 0x04, 52 USBKeyChangeState_SecondaryKeys = 0x04,
53 USBKeyChangeState_TertiaryKeys = 0x08, 53 USBKeyChangeState_TertiaryKeys = 0x08,
54 USBKeyChangeState_System = 0x10, 54 USBKeyChangeState_QuartiaryKeys = 0x10,
55 USBKeyChangeState_Consumer = 0x20, 55 USBKeyChangeState_System = 0x20,
56 USBKeyChangeState_All = 0x3F, 56 USBKeyChangeState_Consumer = 0x40,
57 USBKeyChangeState_All = 0x7F,
57 } USBKeyChangeState; 58 } USBKeyChangeState;
58 59
59 60
60 61
61 // ----- Variables ----- 62 // ----- Variables -----
85 86
86 87
87 // ----- Capabilities ----- 88 // ----- Capabilities -----
88 89
89 void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ); 90 void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
91 void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
90 void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ); 92 void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
91 void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ); 93 void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );
92 94
93 // Configuration capabilities 95 // Configuration capabilities
94 void Output_kbdProtocolBoot_capability( uint8_t state, uint8_t stateType, uint8_t *args ); 96 void Output_kbdProtocolBoot_capability( uint8_t state, uint8_t stateType, uint8_t *args );