Skip to content

Commit

Permalink
Merge pull request espressif#153 from espressif/examples/optimization
Browse files Browse the repository at this point in the history
Examples optimization
  • Loading branch information
tore-espressif authored Apr 21, 2023
2 parents 2e23b5f + 7df04f2 commit 6fde40c
Show file tree
Hide file tree
Showing 35 changed files with 16 additions and 693 deletions.
1 change: 0 additions & 1 deletion examples/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_compile_options("-Wno-format")
project(bsp-audio-example)
spiffs_create_partition_image(storage spiffs FLASH_IN_PROJECT)
9 changes: 5 additions & 4 deletions examples/audio/main/bsp_audio_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <time.h>
#include <unistd.h>
#include <string.h>
#include <inttypes.h>
#include "esp_log.h"
#include "esp_spiffs.h"

Expand Down Expand Up @@ -192,10 +193,10 @@ static void audio_task(void *arg)
ESP_LOGW(TAG, "Error in reading file");
break;
}
ESP_LOGI(TAG, "Number of channels: %d", wav_header.num_channels);
ESP_LOGI(TAG, "Bits per sample: %d", wav_header.bits_per_sample);
ESP_LOGI(TAG, "Sample rate: %d", wav_header.sample_rate);
ESP_LOGI(TAG, "Data size: %d", wav_header.data_size);
ESP_LOGI(TAG, "Number of channels: %" PRIu16 "", wav_header.num_channels);
ESP_LOGI(TAG, "Bits per sample: %" PRIu16 "", wav_header.bits_per_sample);
ESP_LOGI(TAG, "Sample rate: %" PRIu32 "", wav_header.sample_rate);
ESP_LOGI(TAG, "Data size: %" PRIu32 "", wav_header.data_size);

uint32_t bytes_send_to_i2s = 0;
while (bytes_send_to_i2s < wav_header.data_size) {
Expand Down
1 change: 0 additions & 1 deletion examples/display/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_compile_options("-Wno-format")
project(display)
3 changes: 0 additions & 3 deletions examples/display_audio/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions examples/display_audio/CMakeLists.txt

This file was deleted.

32 changes: 0 additions & 32 deletions examples/display_audio/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions examples/display_audio/main/CMakeLists.txt

This file was deleted.

294 changes: 0 additions & 294 deletions examples/display_audio/main/bsp_kaluga_disp_audio_example.c

This file was deleted.

Loading

0 comments on commit 6fde40c

Please sign in to comment.