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.

29 lines
756 B

  1. // Copyright 2024 customMK
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. // FRAM configuration
  5. #define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN B7
  6. #define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 4 // 48MHz / 4 = 12MHz; max supported by MB85R64 is 20MHz
  7. // SPI configuration
  8. #define SPI_DRIVER SPID1
  9. #define SPI_SCK_PIN B3
  10. #define SPI_MOSI_PIN B5
  11. #define SPI_MISO_PIN B4
  12. // Audio configuration
  13. #define AUDIO_PIN B8
  14. #define AUDIO_PWM_DRIVER PWMD4
  15. #define AUDIO_PWM_CHANNEL 3
  16. #define AUDIO_PWM_PAL_MODE 2
  17. #define AUDIO_STATE_TIMER GPTD5
  18. #define AUDIO_INIT_DELAY
  19. // WS2812 configuration
  20. #define WS2812_PWM_DRIVER PWMD1
  21. #define WS2812_PWM_CHANNEL 3
  22. #define WS2812_PWM_PAL_MODE 1
  23. #define WS2812_DMA_STREAM STM32_DMA2_STREAM5
  24. #define WS2812_DMA_CHANNEL 6