diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2023-02-03 21:37:19 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-03 21:37:19 +0000 |
| commit | 0a44e210beba1fe14df4d2fa9d77b217b6bb1077 (patch) | |
| tree | 1314451ca5e957695ca4cfd0bb6ad4ae22909226 /src | |
| parent | da22bb835b0544fec35c06f197e4ae431fdc7605 (diff) | |
Update esp32_i2s_parallel_dma.hpp
Makes ESP32_I2S_DEVICE adjustable via compile time define on ESP32 (original)
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/esp32/esp32_i2s_parallel_dma.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platforms/esp32/esp32_i2s_parallel_dma.hpp b/src/platforms/esp32/esp32_i2s_parallel_dma.hpp index 0fb68d2..dd6c1f3 100644 --- a/src/platforms/esp32/esp32_i2s_parallel_dma.hpp +++ b/src/platforms/esp32/esp32_i2s_parallel_dma.hpp @@ -49,7 +49,9 @@ Contributors: #define DMA_MAX (4096-4) -#define ESP32_I2S_DEVICE I2S_NUM_0 +#ifndef ESP32_I2S_DEVICE + #define ESP32_I2S_DEVICE I2S_NUM_0 +#endif // The type used for this SoC #define HUB75_DMA_DESCRIPTOR_T lldesc_t @@ -144,4 +146,4 @@ i2s_dev_t* getDev(); - };
\ No newline at end of file + }; |
