Project

General

Profile

Revision 1098

OS autodetection

View differences:

Makefile
14 14
# USE_WIRELESS = 1
15 15

  
16 16
# com1 = serial port. Use lpt1 to connect to parallel port.
17
AVRDUDE_PORT = /dev/ttyUSB0
17
AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'COM4:'; else echo '/dev/ttyUSB0'; fi)
18

  
19

  
20

  
18 21
#
19 22
#
20 23
###################################
......
375 378

  
376 379
# Program the device.
377 380
program: $(TARGET).hex $(TARGET).eep
381
	-taskkill /IM ttermpro.exe
382
	sleep 1
378 383
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
379 384

  
380 385

  

Also available in: Unified diff