Makefile.atmel 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Support for the Atmel Xplained mini eval boards that are mostly
  3. # compatible with Arduino. (168pb, 328p, and 328pb chips.)
  4. #
  5. # Currently these all masquerade as 168 or 328p, because the IDE
  6. # does not yet have compiler support for the -pb variants.
  7. #
  8. # These boards have an mEDBG debug chip that:
  9. # 1) means that optiboot can only be programmed via Atmel Studio
  10. # 2) prevents optiboot from working at 115200bps.
  11. # 3) provides 16MHz (at 5V) via Xin on the chip.
  12. #
  13. #
  14. #
  15. xplained168pb: TARGET = $@
  16. xplained168pb: CHIP = atmega168
  17. xplained168pb:
  18. $(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
  19. mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
  20. mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
  21. xplained328pb: TARGET = $@
  22. xplained328pb: CHIP = atmega328
  23. xplained328pb:
  24. $(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
  25. mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
  26. mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
  27. xplained328p: TARGET = $@
  28. xplained328p: CHIP = atmega328
  29. xplained328p:
  30. $(MAKE) $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
  31. mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
  32. mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst