mirror of
				https://github.com/jrcutler/Tiny_IR_Repeater
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Switching device to ATtiny85 @1MHz (internal)
This commit is contained in:
		
							
								
								
									
										28
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								Makefile
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | |||||||
| # Name: Makefile | # Name: Makefile | ||||||
| # Author: Justin R. Cutler <justin.r.cutler@gmail.com> | # Author: Justin R. Cutler <justin.r.cutler@gmail.com> | ||||||
| # Copyright: Copyright 2012 Justin R. Cutler | # Copyright: 2012 Justin R. Cutler | ||||||
| # License: GPL | # License: GPL | ||||||
|  |  | ||||||
| # This is a prototype Makefile. Modify it according to your needs. | # This is a prototype Makefile. Modify it according to your needs. | ||||||
| @@ -17,30 +17,30 @@ | |||||||
| #                   default_serial = "avrdoper" | #                   default_serial = "avrdoper" | ||||||
| # FUSES ........ Parameters for avrdude to flash the fuses appropriately. | # FUSES ........ Parameters for avrdude to flash the fuses appropriately. | ||||||
|  |  | ||||||
| DEVICE     = atmega8 | DEVICE     = attiny85 | ||||||
| CLOCK      = 8000000 | CLOCK      = 1000000 | ||||||
| PROGRAMMER = #-c stk500v2 -P avrdoper | PROGRAMMER = #-c stk500v2 -P avrdoper | ||||||
| OBJECTS    = main.o | OBJECTS    = main.o | ||||||
| FUSES      = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m | FUSES      = -U hfuse:w:0xdf:m -U lfuse:w:0x62:m | ||||||
|  |  | ||||||
| # ATMega8 fuse bits used above (fuse bits for other devices are different!): | # ATtiny85 fuse bits used above (fuse bits for other devices are different!): | ||||||
| # Example for 8 MHz internal oscillator | # Example for 1 MHz internal oscillator | ||||||
| # Fuse high byte: | # Fuse high byte: | ||||||
| # 0xd9 = 1 1 0 1   1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000) | # 0xd9 = 1 1 0 1   1 1 1 1 | ||||||
| #        ^ ^ ^ ^   ^ ^ ^------ BOOTSZ0 | #        ^ ^ ^ ^   ^ \-+-/ | ||||||
| #        | | | |   | +-------- BOOTSZ1 | #        | | | |   |   +------ BODLEVEL 2..0 (disabled) | ||||||
| #        | | | |   +---------- EESAVE (set to 0 to preserve EEPROM over chip erase) | #        | | | |   +---------- EESAVE (set to 0 to preserve EEPROM over chip erase) | ||||||
| #        | | | +-------------- CKOPT (clock option, depends on oscillator type) | #        | | | +-------------- WDTON (if set to 0, watchdog is always on) | ||||||
| #        | | +---------------- SPIEN (if set to 1, serial programming is disabled) | #        | | +---------------- SPIEN (if set to 1, serial programming is disabled) | ||||||
| #        | +------------------ WDTON (if set to 0, watchdog is always on) | #        | +------------------ DWEN (if set to 0, DebugWIRE is enabled) | ||||||
| #        +-------------------- RSTDISBL (if set to 0, RESET pin is disabled) | #        +-------------------- RSTDISBL (if set to 0, RESET pin is disabled) | ||||||
| # Fuse low byte: | # Fuse low byte: | ||||||
| # 0x24 = 0 0 1 0   0 1 0 0 | # 0x62 = 0 1 1 0   0 0 1 0 | ||||||
| #        ^ ^ \ /   \--+--/ | #        ^ ^ \ /   \--+--/ | ||||||
| #        | |  |       +------- CKSEL 3..0 (8M internal RC) | #        | |  |       +------- CKSEL 3..0 (8M internal RC) | ||||||
| #        | |  +--------------- SUT 1..0 (slowly rising power) | #        | |  +--------------- SUT 1..0 (slowly rising power) | ||||||
| #        | +------------------ BODEN (if 0, brown-out detector is enabled) | #        | +------------------ CKOUT (Clock output enabled) | ||||||
| #        +-------------------- BODLEVEL (if 0: 4V, if 1: 2.7V) | #        +-------------------- CKDIV8 (Clock divided by 8) | ||||||
| # | # | ||||||
| # For computing fuse byte values for other devices and options see | # For computing fuse byte values for other devices and options see | ||||||
| # the fuse bit calculator at http://www.engbedded.com/fusecalc/ | # the fuse bit calculator at http://www.engbedded.com/fusecalc/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user