|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include <dirent.h>#include <math.h>#include "bsp/esp-bsp.h"#include "esp_log.h"#include "esp_dsp.h"#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "freertos/semphr.h"#include "esp_system.h"#include "esp_err.h"#include "esp_timer.h"#include <malloc.h>Go to the source code of this file.
Macros | |
| #define | I2S_CHANNEL_NUM (2) |
| #define | SAMPLE_RATE (10000) |
| #define | BITS_PER_CHANNEL 16 |
| #define | BUFFER_PROCESS_SIZE 512 |
| #define | X_AXIS_SIZE (320) |
| #define | Y_AXIS_SIZE (240) |
Functions | |
| static void | microphone_read_task (void *arg) |
| static uint16_t | convert_to_rgb (uint8_t minval, uint8_t maxval, int8_t val) |
| static void | spectrum2d_picture_init () |
| static void | spectrum2d_picture () |
| static void | image_display_task (void *arg) |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "main" |
| static float | result_data [512] |
| static uint8_t | screen_rgb_data [(320) *(240) *LV_IMG_PX_SIZE_ALPHA_BYTE] |
| static const lv_img_dsc_t | img_screen_rgb |
| static int8_t | colors [3][3] = { {0, 0, 31}, {0, 63, 0}, {31, 0, 0} } |
| #define BITS_PER_CHANNEL 16 |
Definition at line 29 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
Referenced by microphone_read_task(), and microphone_read_task().
| #define BUFFER_PROCESS_SIZE 512 |
Definition at line 31 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
Referenced by microphone_read_task(), microphone_read_task(), spectrum2d_picture(), and spectrum2d_picture().
| #define I2S_CHANNEL_NUM (2) |
Definition at line 25 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
Referenced by microphone_read_task(), and microphone_read_task().
| #define SAMPLE_RATE (10000) |
Definition at line 27 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
| #define X_AXIS_SIZE (320) |
Definition at line 117 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
| #define Y_AXIS_SIZE (240) |
Definition at line 119 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
| void app_main | ( | void | ) |
Definition at line 247 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
References bsp_i2c_init(), image_display_task(), microphone_read_task(), and TAG.
|
static |
Definition at line 134 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
References colors.
Referenced by spectrum2d_picture().
|
static |
Definition at line 229 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
References img_screen_rgb, spectrum2d_picture(), and spectrum2d_picture_init().
Referenced by app_main().
|
static |
Definition at line 39 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
References BITS_PER_CHANNEL, BUFFER_PROCESS_SIZE, CONFIG_DSP_MAX_FFT_SIZE, dsps_bit_rev_sc16_ansi(), dsps_cplx2reC_sc16(), dsps_fft2r_init_sc16(), dsps_fft2r_sc16_ae32, dsps_mul_s16_ansi(), dsps_wind_blackman_harris_f32(), ESP_OK, I2S_CHANNEL_NUM, memalign, result_data, SAMPLE_RATE, and TAG.
Referenced by app_main().
|
static |
Definition at line 167 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
References BUFFER_PROCESS_SIZE, convert_to_rgb(), data, img_screen_rgb, result_data, screen_rgb_data, x, and y.
Referenced by image_display_task().
|
static |
Definition at line 155 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
References img_screen_rgb, screen_rgb_data, x, and y.
Referenced by image_display_task().
|
static |
Definition at line 133 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
Referenced by convert_to_rgb(), and convert_to_rgb().
|
static |
Definition at line 123 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
Referenced by image_display_task(), image_display_task(), spectrum2d_picture(), spectrum2d_picture(), spectrum2d_picture_init(), and spectrum2d_picture_init().
|
static |
Definition at line 36 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
Referenced by microphone_read_task(), microphone_read_task(), spectrum2d_picture(), and spectrum2d_picture().
|
static |
Definition at line 121 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.
Referenced by spectrum2d_picture(), spectrum2d_picture(), spectrum2d_picture_init(), and spectrum2d_picture_init().
|
static |
Definition at line 33 of file components/espressif__esp-dsp/applications/spectrum_box_lite/main/main.c.