comparison Output/pjrcUSB/output_com.c @ 308:ab4515606277

Fix whitespace Use a consistent standard - Tabs in front for indenting, spaces after for anything else. This way everything stays nice and lined up while also letting users change there prefered indent level. Most of the new files from Haata where already in this format.
author Rowan Decker <Smasher816@gmail.com>
date Sun, 08 Mar 2015 18:40:01 -0700
parents d5bf41d7f7ef
children 4f47971c45c2
comparison
equal deleted inserted replaced
305:4617ef5e06f1 308:ab4515606277
88 88
89 89
90 // Which modifier keys are currently pressed 90 // Which modifier keys are currently pressed
91 // 1=left ctrl, 2=left shift, 4=left alt, 8=left gui 91 // 1=left ctrl, 2=left shift, 4=left alt, 8=left gui
92 // 16=right ctrl, 32=right shift, 64=right alt, 128=right gui 92 // 16=right ctrl, 32=right shift, 64=right alt, 128=right gui
93 uint8_t USBKeys_Modifiers = 0; 93 uint8_t USBKeys_Modifiers = 0;
94 uint8_t USBKeys_ModifiersCLI = 0; // Separate CLI send buffer 94 uint8_t USBKeys_ModifiersCLI = 0; // Separate CLI send buffer
95 95
96 // Currently pressed keys, max is defined by USB_MAX_KEY_SEND 96 // Currently pressed keys, max is defined by USB_MAX_KEY_SEND
97 uint8_t USBKeys_Keys [USB_NKRO_BITFIELD_SIZE_KEYS]; 97 uint8_t USBKeys_Keys [USB_NKRO_BITFIELD_SIZE_KEYS];
98 uint8_t USBKeys_KeysCLI[USB_NKRO_BITFIELD_SIZE_KEYS]; // Separate CLI send buffer 98 uint8_t USBKeys_KeysCLI[USB_NKRO_BITFIELD_SIZE_KEYS]; // Separate CLI send buffer
99 99
100 // System Control and Consumer Control 1KRO containers 100 // System Control and Consumer Control 1KRO containers
101 uint8_t USBKeys_SysCtrl; 101 uint8_t USBKeys_SysCtrl;
102 uint16_t USBKeys_ConsCtrl; 102 uint16_t USBKeys_ConsCtrl;
103 103
104 // The number of keys sent to the usb in the array 104 // The number of keys sent to the usb in the array
105 uint8_t USBKeys_Sent = 0; 105 uint8_t USBKeys_Sent = 0;
106 uint8_t USBKeys_SentCLI = 0; 106 uint8_t USBKeys_SentCLI = 0;
107 107
108 // 1=num lock, 2=caps lock, 4=scroll lock, 8=compose, 16=kana 108 // 1=num lock, 2=caps lock, 4=scroll lock, 8=compose, 16=kana
109 volatile uint8_t USBKeys_LEDs = 0; 109 volatile uint8_t USBKeys_LEDs = 0;
110 110
111 // Protocol setting from the host. 111 // Protocol setting from the host.
117 // OS only needs update if there has been a change in state 117 // OS only needs update if there has been a change in state
118 USBKeyChangeState USBKeys_Changed = USBKeyChangeState_None; 118 USBKeyChangeState USBKeys_Changed = USBKeyChangeState_None;
119 119
120 // the idle configuration, how often we send the report to the 120 // the idle configuration, how often we send the report to the
121 // host (ms * 4) even when it hasn't changed 121 // host (ms * 4) even when it hasn't changed
122 uint8_t USBKeys_Idle_Config = 125; 122 uint8_t USBKeys_Idle_Config = 125;
123 123
124 // count until idle timeout 124 // count until idle timeout
125 uint8_t USBKeys_Idle_Count = 0; 125 uint8_t USBKeys_Idle_Count = 0;
126 126
127 // Indicates whether the Output module is fully functional 127 // Indicates whether the Output module is fully functional
128 // 0 - Not fully functional, 1 - Fully functional 128 // 0 - Not fully functional, 1 - Fully functional
129 // 0 is often used to show that a USB cable is not plugged in (but has power) 129 // 0 is often used to show that a USB cable is not plugged in (but has power)
130 uint8_t Output_Available = 0; 130 uint8_t Output_Available = 0;
131 131
132 132
133 133
134 // ----- Capabilities ----- 134 // ----- Capabilities -----
135 135