config.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _BOARD_CONFIG_H_
  2. #define _BOARD_CONFIG_H_
  3. // AtomS3R M12+EchoBase Board configuration
  4. #include <driver/gpio.h>
  5. #define AUDIO_INPUT_REFERENCE true
  6. #define AUDIO_INPUT_SAMPLE_RATE 24000
  7. #define AUDIO_OUTPUT_SAMPLE_RATE 24000
  8. #define AUDIO_I2S_GPIO_MCLK GPIO_NUM_NC
  9. #define AUDIO_I2S_GPIO_WS GPIO_NUM_6
  10. #define AUDIO_I2S_GPIO_BCLK GPIO_NUM_8
  11. #define AUDIO_I2S_GPIO_DIN GPIO_NUM_7
  12. #define AUDIO_I2S_GPIO_DOUT GPIO_NUM_5
  13. #define AUDIO_CODEC_I2C_SDA_PIN GPIO_NUM_38
  14. #define AUDIO_CODEC_I2C_SCL_PIN GPIO_NUM_39
  15. #define AUDIO_CODEC_ES8311_ADDR ES8311_CODEC_DEFAULT_ADDR
  16. #define AUDIO_CODEC_GPIO_PA GPIO_NUM_NC
  17. #define BUILTIN_LED_GPIO GPIO_NUM_NC
  18. #define BOOT_BUTTON_GPIO GPIO_NUM_41
  19. #define VOLUME_UP_BUTTON_GPIO GPIO_NUM_NC
  20. #define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC
  21. #define CAMERA_PIN_PWDN GPIO_NUM_NC
  22. #define CAMERA_PIN_RESET GPIO_NUM_NC
  23. #define CAMERA_PIN_VSYNC GPIO_NUM_10
  24. #define CAMERA_PIN_HREF GPIO_NUM_14
  25. #define CAMERA_PIN_PCLK GPIO_NUM_40
  26. #define CAMERA_PIN_XCLK GPIO_NUM_21
  27. #define CAMERA_PIN_SIOD GPIO_NUM_12
  28. #define CAMERA_PIN_SIOC GPIO_NUM_9
  29. #define CAMERA_PIN_D0 GPIO_NUM_3
  30. #define CAMERA_PIN_D1 GPIO_NUM_42
  31. #define CAMERA_PIN_D2 GPIO_NUM_46
  32. #define CAMERA_PIN_D3 GPIO_NUM_48
  33. #define CAMERA_PIN_D4 GPIO_NUM_4
  34. #define CAMERA_PIN_D5 GPIO_NUM_17
  35. #define CAMERA_PIN_D6 GPIO_NUM_11
  36. #define CAMERA_PIN_D7 GPIO_NUM_13
  37. #define CAMERA_XCLK_FREQ (20000000)
  38. #define XCLK_FREQ_HZ CAMERA_XCLK_FREQ
  39. #endif // _BOARD_CONFIG_H_