Keyboard firmwares for Atmel AVR and Cortex-M
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Makefile 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # These are set for a mega 1280 + quadram plus my serial patch.
  3. # If you lack quadram, or want to disable LFN, just change _FS_TINY=1 _USE_LFN=0
  4. #
  5. # If your board is a mega 2560 comment out the following two lines
  6. BOARD = mega
  7. BOARD_SUB = mega.menu.cpu.atmega1280
  8. PROGRAMMER = arduino
  9. # ...and then uncomment out the following two lines
  10. #BOARD_SUB = mega.menu.cpu.atmega2560
  11. #PROGRAMMER = wiring
  12. #BOARD = teensypp2
  13. #BOARD = teensy3
  14. #BOARD = teensy31
  15. # set your Arduino tty port here
  16. PORT = /dev/ttyUSB0
  17. EXTRA_FLAGS = -D _USE_LFN=3
  18. # change to 0 if you have quadram to take advantage of caching FAT
  19. EXTRA_FLAGS += -D _FS_TINY=1
  20. EXTRA_FLAGS += -D _MAX_SS=512
  21. # Don't worry if you don't have external RAM, xmem2 detects this situation.
  22. # You *WILL* be wanting to get some kind of external ram on your mega in order to
  23. # do anything that is intense.
  24. EXTRA_FLAGS += -D EXT_RAM_STACK=1
  25. EXTRA_FLAGS += -D EXT_RAM_HEAP=1
  26. # These are no longer needed for the demo to work.
  27. # In the event you need more ram, uncomment these 3 lines.
  28. #EXTRA_FLAGS += -D DISABLE_SERIAL1
  29. #EXTRA_FLAGS += -D DISABLE_SERIAL2
  30. #EXTRA_FLAGS += -D DISABLE_SERIAL3
  31. #
  32. # Advanced debug on Serial3
  33. #
  34. # uncomment the next two to enable debug on Serial3
  35. EXTRA_FLAGS += -D USB_HOST_SERIAL=Serial3
  36. #EXTRA_FLAGS += -D DEBUG_USB_HOST
  37. # The following are the libraries used.
  38. LIB_DIRS += ../../
  39. LIB_DIRS += ../testusbhostFAT/xmem2
  40. LIB_DIRS += ../testusbhostFAT/generic_storage
  41. LIB_DIRS += ../testusbhostFAT/RTClib
  42. LIB_DIRS += $(ARD_HOME)/libraries/Wire
  43. LIB_DIRS += $(ARD_HOME)/libraries/Wire/utility
  44. LIB_DIRS += $(ARD_HOME)/hardware/arduino/$(BUILD_ARCH)/libraries/Wire
  45. LIB_DIRS += $(ARD_HOME)/hardware/arduino/$(BUILD_ARCH)/libraries/Wire/utility
  46. LIB_DIRS += $(ARD_HOME)/hardware/arduino/$(BUILD_ARCH)/libraries/SPI
  47. # And finally, the part that brings everything together for you.
  48. include Arduino_Makefile_master/_Makefile.master