halconf.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright 2022 David Hoelscher, customMK
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #ifndef HAL_USE_SPI
  18. # define HAL_USE_SPI TRUE
  19. #endif
  20. #ifndef HAL_USE_I2C
  21. # define HAL_USE_I2C TRUE
  22. #endif
  23. #ifdef SPLIT_KEYBOARD
  24. # ifndef HAL_USE_SERIAL
  25. # define HAL_USE_SERIAL TRUE
  26. # endif
  27. # ifndef SERIAL_BUFFERS_SIZE
  28. # define SERIAL_BUFFERS_SIZE 256
  29. # endif
  30. #endif
  31. #ifdef WS2812_DRIVER_PWM
  32. # ifndef HAL_USE_PWM
  33. # define HAL_USE_PWM TRUE
  34. # endif
  35. #endif
  36. #ifndef SPI_SELECT_MODE
  37. # define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
  38. #endif
  39. #ifndef SPI_USE_WAIT
  40. # define SPI_USE_WAIT TRUE
  41. #endif
  42. #include_next <halconf.h>