Merge pull request #515 from dorianim-forks/fix/espidf-v5
Fix: compile issues on ESP-idf v5
This commit is contained in:
commit
8e6c69716c
2 changed files with 4 additions and 2 deletions
|
@ -27,6 +27,7 @@ Modified heavily for the ESP32 HUB75 DMA library by:
|
|||
#include <driver/gpio.h>
|
||||
#include <driver/periph_ctrl.h>
|
||||
#include <soc/gpio_sig_map.h>
|
||||
#include <soc/i2s_periph.h>
|
||||
|
||||
#if defined (ARDUINO_ARCH_ESP32)
|
||||
#include <Arduino.h>
|
||||
|
@ -199,7 +200,7 @@ Modified heavily for the ESP32 HUB75 DMA library by:
|
|||
////////////////////////////// Clock configuration //////////////////////////////
|
||||
|
||||
auto freq = (_cfg.bus_freq);
|
||||
ESP_LOGD("ESP32/S2", "Requested output clock frequency: %d Mhz", (freq/1000000));
|
||||
ESP_LOGD("ESP32/S2", "Requested output clock frequency: %ld Mhz", (freq/1000000));
|
||||
|
||||
// What is the current CPU frequency?
|
||||
|
||||
|
@ -487,7 +488,7 @@ Modified heavily for the ESP32 HUB75 DMA library by:
|
|||
if ( !dmadesc_b )
|
||||
{
|
||||
if ( (_dmadesc_a_idx+1) > _dmadesc_count) {
|
||||
ESP_LOGE("ESP32/S2", "Attempted to create more DMA descriptors than allocated memory for. Expecting a maximum of %d DMA descriptors", _dmadesc_count);
|
||||
ESP_LOGE("ESP32/S2", "Attempted to create more DMA descriptors than allocated memory for. Expecting a maximum of %ld DMA descriptors", _dmadesc_count);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ Contributors:
|
|||
#include <sys/types.h>
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <driver/i2s.h>
|
||||
#include <soc/i2s_struct.h>
|
||||
#include <rom/lldesc.h>
|
||||
#include <rom/gpio.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue