You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.5KB

  1. # Copyright 2012 Olivier Gillet.
  2. #
  3. # This program is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation, either version 3 of the License, or
  6. # (at your option) any later version.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. # You should have received a copy of the GNU General Public License
  12. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. VERSION = 0.1
  14. MCU_NAME = 88
  15. TARGET = branches
  16. PACKAGES = avrlib avrlib/devices branches
  17. RESOURCES = branches/resources
  18. EXTRA_DEFINES = -DDISABLE_DEFAULT_UART_RX_ISR
  19. LFUSE = e2
  20. HFUSE = dd
  21. EFUSE = f8
  22. LOCK = 2f
  23. include avrlib/makefile.mk
  24. include $(DEP_FILE)
  25. # Rule for building the firmware update file
  26. wav: $(TARGET_BIN)
  27. python avr_audio_bootloader/fsk/encoder.py \
  28. -s 15625 -b 16 -n 8 -z 4 -p 64 -g 64 -k 30 \
  29. $(TARGET_BIN)
  30. bootstrap_all:
  31. make -f branches/makefile
  32. make -f branches/bootloader/makefile
  33. make -f branches/bootloader/makefile fuses
  34. $(AVRDUDE) -B 1 $(AVRDUDE_COM_OPTS) $(AVRDUDE_ISP_OPTS) \
  35. -U flash:w:build/branches/branches.hex:i \
  36. -U flash:w:build/branches_bootloader/branches_bootloader.hex:i \
  37. -U lock:w:0x2f:m