Removed two-step endpoint/pipe bank clear and switch sequence for smaller, faster endpoint/pipe code.
Added spacing between multiple paragraphs in Doxygen \note sections. Removed call to the clock prescaler reset function in the Teensy bootloader to save space - the user application is accessed via a watchdog reset anyway, so the prescale reset would only affect the speed of the bootloader itself.
This commit is contained in:
		
							parent
							
								
									19ecd04f37
								
							
						
					
					
						commit
						7b79325aa0
					
				
					 17 changed files with 76 additions and 37 deletions
				
			
		| 
						 | 
				
			
			@ -146,9 +146,7 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn
 | 
			
		|||
	uint8_t ButtonStatus_LCL = Buttons_GetStatus();
 | 
			
		||||
 | 
			
		||||
	uint8_t UsedKeyCodes = 0;
 | 
			
		||||
	
 | 
			
		||||
	KeyboardReport->Modifier = HID_KEYBOARD_MODIFER_LEFTSHIFT;
 | 
			
		||||
	
 | 
			
		||||
		
 | 
			
		||||
	if (JoyStatus_LCL & JOY_UP)
 | 
			
		||||
	  KeyboardReport->KeyCode[UsedKeyCodes++] = 0x04; // A
 | 
			
		||||
	else if (JoyStatus_LCL & JOY_DOWN)
 | 
			
		||||
| 
						 | 
				
			
			@ -165,6 +163,9 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn
 | 
			
		|||
	if (ButtonStatus_LCL & BUTTONS_BUTTON1)
 | 
			
		||||
	  KeyboardReport->KeyCode[UsedKeyCodes++] = 0x09; // F
 | 
			
		||||
 | 
			
		||||
	if (UsedKeyCodes)
 | 
			
		||||
	  KeyboardReport->Modifier = HID_KEYBOARD_MODIFER_LEFTSHIFT;
 | 
			
		||||
 | 
			
		||||
	*ReportSize = sizeof(USB_KeyboardReport_Data_t);
 | 
			
		||||
	return false;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue