comparison Output/uartOut/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 39e338a6733d
comparison
equal deleted inserted replaced
305:4617ef5e06f1 308:ab4515606277
71 71
72 72
73 // Which modifier keys are currently pressed 73 // Which modifier keys are currently pressed
74 // 1=left ctrl, 2=left shift, 4=left alt, 8=left gui 74 // 1=left ctrl, 2=left shift, 4=left alt, 8=left gui
75 // 16=right ctrl, 32=right shift, 64=right alt, 128=right gui 75 // 16=right ctrl, 32=right shift, 64=right alt, 128=right gui
76 uint8_t USBKeys_Modifiers = 0; 76 uint8_t USBKeys_Modifiers = 0;
77 uint8_t USBKeys_ModifiersCLI = 0; // Separate CLI send buffer 77 uint8_t USBKeys_ModifiersCLI = 0; // Separate CLI send buffer
78 78
79 // Currently pressed keys, max is defined by USB_MAX_KEY_SEND 79 // Currently pressed keys, max is defined by USB_MAX_KEY_SEND
80 uint8_t USBKeys_Keys [USB_NKRO_BITFIELD_SIZE_KEYS]; 80 uint8_t USBKeys_Keys [USB_NKRO_BITFIELD_SIZE_KEYS];
81 uint8_t USBKeys_KeysCLI[USB_NKRO_BITFIELD_SIZE_KEYS]; // Separate CLI send buffer 81 uint8_t USBKeys_KeysCLI[USB_NKRO_BITFIELD_SIZE_KEYS]; // Separate CLI send buffer
82 82
83 // System Control and Consumer Control 1KRO containers 83 // System Control and Consumer Control 1KRO containers
84 uint8_t USBKeys_SysCtrl; 84 uint8_t USBKeys_SysCtrl;
85 uint16_t USBKeys_ConsCtrl; 85 uint16_t USBKeys_ConsCtrl;
86 86
87 // The number of keys sent to the usb in the array 87 // The number of keys sent to the usb in the array
88 uint8_t USBKeys_Sent = 0; 88 uint8_t USBKeys_Sent = 0;
89 uint8_t USBKeys_SentCLI = 0; 89 uint8_t USBKeys_SentCLI = 0;
90 90
91 // 1=num lock, 2=caps lock, 4=scroll lock, 8=compose, 16=kana 91 // 1=num lock, 2=caps lock, 4=scroll lock, 8=compose, 16=kana
92 volatile uint8_t USBKeys_LEDs = 0; 92 volatile uint8_t USBKeys_LEDs = 0;
93 93
94 // Protocol setting from the host. 94 // Protocol setting from the host.
100 // OS only needs update if there has been a change in state 100 // OS only needs update if there has been a change in state
101 USBKeyChangeState USBKeys_Changed = USBKeyChangeState_None; 101 USBKeyChangeState USBKeys_Changed = USBKeyChangeState_None;
102 102
103 // the idle configuration, how often we send the report to the 103 // the idle configuration, how often we send the report to the
104 // host (ms * 4) even when it hasn't changed 104 // host (ms * 4) even when it hasn't changed
105 uint8_t USBKeys_Idle_Config = 125; 105 uint8_t USBKeys_Idle_Config = 125;
106 106
107 // count until idle timeout 107 // count until idle timeout
108 uint8_t USBKeys_Idle_Count = 0; 108 uint8_t USBKeys_Idle_Count = 0;
109 109
110 // Indicates whether the Output module is fully functional 110 // Indicates whether the Output module is fully functional
111 // 0 - Not fully functional, 1 - Fully functional 111 // 0 - Not fully functional, 1 - Fully functional
112 // 0 is often used to show that a USB cable is not plugged in (but has power) 112 // 0 is often used to show that a USB cable is not plugged in (but has power)
113 uint8_t Output_Available = 0; 113 uint8_t Output_Available = 0;
114 114
115 115
116 116
117 // ----- Capabilities ----- 117 // ----- Capabilities -----
118 118