Makefile.atmel 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. HELPTEXT += "target xplained168pb - Atmel Xplained Mini 168pb Eval board\n"
  16. xplained168pb: TARGET = $@
  17. xplained168pb: CHIP = atmega168
  18. xplained168pb:
  19. "$(MAKE)" $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
  20. mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
  21. ifndef PRODUCTION
  22. mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
  23. endif
  24. HELPTEXT += "target xplained328pb - Atmel Xplained Mini 328pb Eval board\n"
  25. xplained328pb: TARGET = $@
  26. xplained328pb: CHIP = atmega328
  27. xplained328pb:
  28. "$(MAKE)" $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
  29. mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
  30. ifndef PRODUCTION
  31. mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
  32. endif
  33. HELPTEXT += "target xplained328p - Atmel Xplained Mini 328p Eval board\n"
  34. xplained328p: TARGET = $@
  35. xplained328p: CHIP = atmega328
  36. xplained328p:
  37. "$(MAKE)" $(CHIP) AVR_FREQ=16000000L BAUD_RATE=57600
  38. mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
  39. ifndef PRODUCTION
  40. mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
  41. endif