Makefile.extras 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #
  2. # Makefile for "other" implemented platforms.
  3. #
  4. # * Copyright 2013-2015 by Bill Westfield. Part of Optiboot.
  5. # * This software is licensed under version 2 of the Gnu Public Licence.
  6. # * See optiboot.c for details.
  7. #
  8. #
  9. # Extra chips (maybe) supported by optiboot
  10. # Note that these are usually only minimally tested.
  11. #
  12. #
  13. # ATmega88
  14. #
  15. HELPTEXT += "target atmega88 - ATmega88 or ATmega88p (28pin, 8k)\n"
  16. atmega88: TARGET = atmega88
  17. atmega88: MCU_TARGET = atmega88
  18. atmega88: CFLAGS += $(COMMON_OPTIONS)
  19. atmega88: AVR_FREQ ?= 16000000L
  20. atmega88: $(PROGRAM)_atmega88.hex
  21. atmega88: $(PROGRAM)_atmega88.lst
  22. atmega88_isp: atmega88
  23. atmega88_isp: TARGET = atmega88
  24. atmega88_isp: MCU_TARGET = atmega88
  25. # 2.7V brownout
  26. atmega88_isp: HFUSE ?= DD
  27. # Low power xtal (16MHz) 16KCK/14CK+65ms
  28. atmega88_isp: LFUSE ?= FF
  29. # 512 byte boot
  30. atmega88_isp: EFUSE ?= 04
  31. atmega88_isp: isp
  32. atmega88p_isp: atmega88
  33. atmega88p_isp: TARGET = atmega88
  34. atmega88p_isp: MCU_TARGET = atmega88p
  35. # 2.7V brownout
  36. atmega88p_isp: HFUSE ?= DD
  37. # Low power xtal (16MHz) 16KCK/14CK+65ms
  38. atmega88p_isp: LFUSE ?= FF
  39. # 512 byte boot
  40. atmega88p_isp: EFUSE ?= 04
  41. atmega88p_isp: isp
  42. #
  43. # ATmega168p [QFN32]
  44. #
  45. HELPTEXT += "target atmega168p - ATmega168p\n"
  46. atmega168p: TARGET = atmega168p
  47. atmega168p: MCU_TARGET = atmega168p
  48. atmega168p: CFLAGS += $(COMMON_OPTIONS)
  49. atmega168p: AVR_FREQ ?= 16000000L
  50. atmega168p: $(PROGRAM)_atmega168p_16MHz.hex
  51. atmega168p: $(PROGRAM)_atmega168p_16MHz.lst
  52. atmega168p_isp: atmega168p
  53. atmega168p_isp: TARGET = atmega168p
  54. # 2.7V brownout
  55. atmega168p_isp: HFUSE ?= DD
  56. # Low power xtal (16MHz) 16KCK/14CK+65ms
  57. atmega168p_isp: LFUSE ?= FF
  58. # 512 byte boot
  59. atmega168p_isp: EFUSE ?= 04
  60. atmega168p_isp: isp
  61. HELPTEXT += "target atmega16 - ATmega16 (40pin, 16k)\n"
  62. atmega16: TARGET = atmega16
  63. atmega16: MCU_TARGET = atmega16
  64. atmega16: CFLAGS += $(COMMON_OPTIONS)
  65. atmega16: AVR_FREQ ?= 16000000L
  66. atmega16: $(PROGRAM)_atmega16.hex
  67. atmega16: $(PROGRAM)_atmega16.lst
  68. #
  69. # ATmega32
  70. #
  71. HELPTEXT += "target atmega32 - ATmega32 (40pin, 32k)\n"
  72. atmega32: TARGET = atmega32
  73. atmega32: MCU_TARGET = atmega32
  74. atmega32: CFLAGS += $(COMMON_OPTIONS)
  75. atmega32: AVR_FREQ ?= 11059200L
  76. atmega32: $(PROGRAM)_atmega32.hex
  77. atmega32: $(PROGRAM)_atmega32.lst
  78. atmega32_isp: atmega32
  79. atmega32_isp: TARGET = atmega32
  80. atmega32_isp: MCU_TARGET = atmega32
  81. # No OCD or JTAG, SPIEN, CKOPT (for full swing xtal), Bootsize=512B
  82. atmega32_isp: HFUSE ?= CE
  83. # 2.7V brownout, 16MHz Xtal, 16KCK/14CK+65ms
  84. atmega32_isp: LFUSE ?= BF
  85. atmega32_isp: isp
  86. #Atmega128RFA1
  87. HELPTEXT += "target atmega128rfa1 - ATmega128RFA1 (100pin, 128k)\n"
  88. atmega128rfa1: MCU_TARGET = atmega128rfa1
  89. atmega128rfa1: CFLAGS += $(COMMON_OPTIONS) -DBIGBOOT $(UART_CMD)
  90. atmega128rfa1: AVR_FREQ ?= 16000000L
  91. atmega128rfa1: $(PROGRAM)_atmega128rfa1.hex
  92. ifndef PRODUCTION
  93. atmega128rfa1: $(PROGRAM)_atmega128rfa1.lst
  94. endif
  95. # 1MHz clocked platforms/boards
  96. #
  97. # These are capable of 9600 baud
  98. #
  99. luminet: TARGET = $@
  100. luminet: CHIP = attiny84
  101. luminet:
  102. "$(MAKE)" $(CHIP) AVR_FREQ=1000000L LED_START_FLASHES=0 BAUD_RATE=9600
  103. mv $(PROGRAM)_$(CHIP).hex $(PROGRAM)_$(TARGET).hex
  104. mv $(PROGRAM)_$(CHIP).lst $(PROGRAM)_$(TARGET).lst
  105. luminet_isp: luminet
  106. luminet_isp: TARGET = luminet
  107. luminet_isp: MCU_TARGET = attiny84
  108. # Brownout disabled
  109. luminet_isp: HFUSE ?= DF
  110. # 1MHz internal oscillator, slowly rising power
  111. luminet_isp: LFUSE ?= 62
  112. # Self-programming enable
  113. luminet_isp: EFUSE ?= FE
  114. luminet_isp: isp