USB_Init() no longer calls sei() to enable global interrupts - this must now be done in the user application once all init code has run.
This commit is contained in:
		
							parent
							
								
									85aaaf84ce
								
							
						
					
					
						commit
						59c4871f80
					
				
					 135 changed files with 181 additions and 61 deletions
				
			
		| 
						 | 
				
			
			@ -101,6 +101,9 @@ int main(void)
 | 
			
		|||
{
 | 
			
		||||
	/* Configure hardware required by the bootloader */
 | 
			
		||||
	SetupHardware();
 | 
			
		||||
	
 | 
			
		||||
	/* Enable global interrupts so that the USB stack can function */
 | 
			
		||||
	sei();
 | 
			
		||||
 | 
			
		||||
	/* Run the USB management task while the bootloader is supposed to be running */
 | 
			
		||||
	while (RunBootloader || WaitForExit)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,6 +43,7 @@
 | 
			
		|||
		#include <avr/pgmspace.h>
 | 
			
		||||
		#include <avr/eeprom.h>
 | 
			
		||||
		#include <avr/power.h>
 | 
			
		||||
		#include <avr/interrupt.h>
 | 
			
		||||
		#include <stdbool.h>
 | 
			
		||||
	
 | 
			
		||||
		#include "Descriptors.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue