Removed SetSystemClockPrescaler() macro, the clock_prescale_set() avr-libc macro has been corrected in recent avr-libc versions
This commit is contained in:
		
						commit
						4a09da2098
					
				
					 66 changed files with 98 additions and 84 deletions
				
			
		| 
						 | 
				
			
			@ -109,8 +109,8 @@ int main (void)
 | 
			
		|||
	MCUSR &= ~(1 << WDRF);
 | 
			
		||||
	wdt_disable();
 | 
			
		||||
 | 
			
		||||
	/* Disable Clock Division */
 | 
			
		||||
	SetSystemClockPrescaler(0);
 | 
			
		||||
	/* Disable clock division */
 | 
			
		||||
	clock_prescale_set(clock_div_1);
 | 
			
		||||
	
 | 
			
		||||
	/* Relocate the interrupt vector table to the bootloader section */
 | 
			
		||||
	MCUCR = (1 << IVCE);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,6 +42,7 @@
 | 
			
		|||
		#include <avr/boot.h>
 | 
			
		||||
		#include <avr/pgmspace.h>
 | 
			
		||||
		#include <avr/eeprom.h>
 | 
			
		||||
		#include <avr/power.h>
 | 
			
		||||
		#include <stdbool.h>
 | 
			
		||||
	
 | 
			
		||||
		#include "Descriptors.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue