Updating AVR abstraction to be compatible with ARM, nearly ready for ARM files
- Very small updates to files, mostly modifying to remove name duplications
This commit is contained in:
		
							parent
							
								
									a31f0e064a
								
							
						
					
					
						commit
						6da1558b78
					
				
					 29 changed files with 64 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -77,6 +77,7 @@ inline void macro_finishedWithBuffer( uint8_t sentKeys )
 | 
			
		|||
 | 
			
		||||
void jumpToBootloader(void)
 | 
			
		||||
{
 | 
			
		||||
#if defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_) // AVR
 | 
			
		||||
	cli();
 | 
			
		||||
	// disable watchdog, if enabled
 | 
			
		||||
	// disable all peripherals
 | 
			
		||||
| 
						 | 
				
			
			@ -110,6 +111,7 @@ void jumpToBootloader(void)
 | 
			
		|||
	PORTA = 0; PORTB = 0; PORTC = 0; PORTD = 0; PORTE = 0; PORTF = 0;
 | 
			
		||||
	asm volatile("jmp 0x1FC00");
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Given a sampling array, and the current number of detected keypress
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue