rules.mk 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 2021 Batuhan Başerdem
  2. # <baserdem.batuhan@gmail.com> @bbaserdem
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Corne keyboard; with ARM
  17. ifneq (,$(findstring crkbd/rev1,$(KEYBOARD)))
  18. # Proton C conversion
  19. MCU = STM32F303
  20. CTPC = yes
  21. # BOARD = QMK_PROTON_C
  22. # BOOTLOADER = stm32-dfu
  23. # My usual features
  24. AUDIO_ENABLE = yes
  25. BACKLIGHT_ENABLE = no
  26. ENCODER_ENABLE = yes
  27. RGB_MATRIX_ENABLE = yes
  28. OLED_ENABLE = yes
  29. # Features that take otherwise too much space
  30. WPM_ENABLE = yes
  31. NKRO_ENABLE = yes
  32. # Config
  33. SERIAL_DRIVER = usart
  34. WS2812_DRIVER = pwm
  35. AUDIO_DRIVER = dac_basic
  36. SPLIT_KEYBOARD = yes
  37. # These are from waffle
  38. DEBUG_MATRIX_SCAN_RATE_ENABLE = no # output matrix scan rate in qmk console/qmk toolbox
  39. QUANTUM_LIB_SRC += i2c_master.c #drivers/chibios/i2cmaster.h needs patch - see lines 27/28
  40. VIA_ENABLE = no
  41. # COMMAND_ENABLE = no
  42. # CONSOLE_ENABLE = no
  43. # BOOTMAGIC_ENABLE = lite
  44. # LTO_ENABLE = yes
  45. # PIMORONI_TRACKBALL = no
  46. endif