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.3 KiB

  1. ## chip/board settings
  2. # - the next two should match the directories in
  3. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  4. # - For Teensies, FAMILY = KINETIS and SERIES is either
  5. # KL2x (LC) or K20x (3.0,3.1,3.2).
  6. MCU_FAMILY = KINETIS
  7. MCU_SERIES = K20x
  8. # Linker script to use
  9. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  10. # or <this_dir>/ld/
  11. # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
  12. # - LDSCRIPT =
  13. # - MKL26Z64 for Teensy LC
  14. # - MK20DX128 for Teensy 3.0
  15. # - MK20DX256 for Teensy 3.1 and 3.2
  16. MCU_LDSCRIPT = MK20DX256
  17. # Startup code to use
  18. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  19. # - STARTUP =
  20. # - kl2x for Teensy LC
  21. # - k20x5 for Teensy 3.0
  22. # - k20x7 for Teensy 3.1 and 3.2
  23. MCU_STARTUP = k20x7
  24. # Board: it should exist either in <chibios>/os/hal/boards/
  25. # or <this_dir>/boards
  26. # - BOARD =
  27. # - PJRC_TEENSY_LC for Teensy LC
  28. # - PJRC_TEENSY_3 for Teensy 3.0
  29. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  30. BOARD = PJRC_TEENSY_3_1
  31. # Cortex version
  32. # Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4
  33. MCU = cortex-m4
  34. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  35. # I.e. 6 for Teensy LC; 7 for Teensy 3.x
  36. ARMV = 7
  37. # Enter lower-power sleep mode when on the ChibiOS idle thread
  38. OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE