The controller now builds for the Waveshare ESP32-P4-Nano only (plus the linux sim and the desktop); the S3 stays for the USB/network bridge in bridge/. - radio-c6/: C6 firmware, esp-hosted plus ESP-NOW over peer data. The P4 loads it from the slave_fw partition when the C6 runs another version (c6_update.c) - bridge_hosted.c: the C6 as the always-on "c6" bridge, and the P4 as a network bridge on UDP 8766 for the desktop - Ethernet on the P4's EMAC, ES8311 mic; default address 192.168.50.20. The W5500, INMP441 and direct ESP-NOW code is gone - The simulated rig at /sim/ is built into the board image, with an always-on "browser" bridge. Its frames go through a queue so a slow page cannot hold up the radio, and frames for simulated bars are not sent over the C6. Receiver buffers are on the heap; a bar's flash file is only written when it changes - HTTP server: more handlers, sockets and stack for the rig - docs/P4_NANO.md, README and Makefile updated; graphify output Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 line
19 KiB
JSON
1 line
19 KiB
JSON
{"nodes": [{"id": "$graphify-root$_main_mic_c", "label": "mic.c", "file_type": "code", "source_file": "main/mic.c", "source_location": "L1"}, {"id": "$graphify-root$_main_mic_to_dbfs", "label": "to_dbfs()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L40", "_callable": true}, {"id": "$graphify-root$_main_mic_mic_task", "label": "mic_task()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L45", "_callable": true}, {"id": "$graphify-root$_main_mic_codec_mic_start", "label": "codec_mic_start()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L129", "_callable": true}, {"id": "esp_err_t", "label": "esp_err_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/mic.c"}, {"id": "$graphify-root$_main_mic_mic_start", "label": "mic_start()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L186", "_callable": true}, {"id": "$graphify-root$_main_mic_mic_get_level", "label": "mic_get_level()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L228", "_callable": true}, {"id": "mic_level_t", "label": "mic_level_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/mic.c"}, {"id": "$graphify-root$_main_mic_mic_stream_open", "label": "mic_stream_open()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L235", "_callable": true}, {"id": "$graphify-root$_main_mic_mic_stream_read", "label": "mic_stream_read()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L245", "_callable": true}, {"id": "ticktype_t", "label": "TickType_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/mic.c"}, {"id": "$graphify-root$_main_mic_mic_stream_close", "label": "mic_stream_close()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L250", "_callable": true}], "edges": [{"source": "$graphify-root$_main_mic_c", "target": "math", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_main_mic_c", "target": "freertos", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L8", "weight": 1.0, "metadata": {"raw_include": "freertos/FreeRTOS.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "task", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L9", "weight": 1.0, "metadata": {"raw_include": "freertos/task.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "stream_buffer", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "freertos/stream_buffer.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "esp_log", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L11", "weight": 1.0, "metadata": {"raw_include": "esp_log.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "esp_check", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L12", "weight": 1.0, "metadata": {"raw_include": "esp_check.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "i2s_std", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L13", "weight": 1.0, "metadata": {"raw_include": "driver/i2s_std.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "gpio", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L14", "weight": 1.0, "metadata": {"raw_include": "driver/gpio.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "i2c_master", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L16", "weight": 1.0, "metadata": {"raw_include": "driver/i2c_master.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "esp_codec_dev", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L17", "weight": 1.0, "metadata": {"raw_include": "esp_codec_dev.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "esp_codec_dev_defaults", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L18", "weight": 1.0, "metadata": {"raw_include": "esp_codec_dev_defaults.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L20", "weight": 1.0, "target_file": "$graphify-root$/main/mic.h"}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_beat_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L21", "weight": 1.0, "target_file": "$graphify-root$/main/beat.h"}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_to_dbfs", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L40", "weight": 1.0}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_mic_task", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L45", "weight": 1.0}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_codec_mic_start", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L129", "weight": 1.0}, {"source": "$graphify-root$_main_mic_codec_mic_start", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L129", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_mic_start", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L186", "weight": 1.0}, {"source": "$graphify-root$_main_mic_mic_start", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L186", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_mic_get_level", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L228", "weight": 1.0}, {"source": "$graphify-root$_main_mic_mic_get_level", "target": "mic_level_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L228", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_mic_stream_open", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L235", "weight": 1.0}, {"source": "$graphify-root$_main_mic_mic_stream_open", "target": "esp_err_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L235", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_mic_stream_read", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L245", "weight": 1.0}, {"source": "$graphify-root$_main_mic_mic_stream_read", "target": "ticktype_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L245", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_main_mic_c", "target": "$graphify-root$_main_mic_mic_stream_close", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L250", "weight": 1.0}, {"source": "$graphify-root$_main_mic_mic_task", "target": "$graphify-root$_main_mic_to_dbfs", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L105", "weight": 1.0}, {"source": "$graphify-root$_main_mic_mic_start", "target": "$graphify-root$_main_mic_codec_mic_start", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main/mic.c", "source_location": "L194", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_main_mic_to_dbfs", "callee": "fmaxf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L42", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_to_dbfs", "callee": "log10f", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L42", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "i2s_channel_read", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L60", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fmaxf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L89", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fabsf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L89", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fmaxf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L90", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fminf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L90", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "beat_feed", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L93", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "xStreamBufferSend", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L97", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "sqrtf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L105", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "portENTER_CRITICAL", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L112", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "portEXIT_CRITICAL", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L114", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L117", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L119", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L140", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "i2c_new_master_bus", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L140", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "I2S_STD_CLK_DEFAULT_CONFIG", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L143", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "I2S_STD_PHILIPS_SLOT_DEFAULT_CONFIG", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L144", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L153", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "i2s_channel_init_std_mode", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L153", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L154", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "i2s_channel_enable", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L154", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "audio_codec_new_i2s_data", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L157", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "audio_codec_new_i2c_ctrl", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L159", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "audio_codec_new_gpio", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L160", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "ESP_RETURN_ON_FALSE", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L161", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "es8311_codec_new", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L169", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "ESP_RETURN_ON_FALSE", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L170", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "esp_codec_dev_new", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L172", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "ESP_RETURN_ON_FALSE", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L173", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "ESP_RETURN_ON_FALSE", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L180", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "esp_codec_dev_open", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L180", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_codec_mic_start", "callee": "esp_codec_dev_set_in_gain", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L181", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "xStreamBufferCreate", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L188", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_RETURN_ON_FALSE", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L189", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "I2S_CHANNEL_DEFAULT_CONFIG", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L191", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L192", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "i2s_new_channel", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L192", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L194", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "I2S_STD_CLK_DEFAULT_CONFIG", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L198", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "I2S_STD_PHILIPS_SLOT_DEFAULT_CONFIG", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L199", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L209", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "i2s_channel_init_std_mode", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L209", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "gpio_pullup_dis", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L211", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "gpio_pulldown_en", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L212", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L213", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "i2s_channel_enable", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L213", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L216", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "beat_start", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L216", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "xTaskCreate", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L217", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L221", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L223", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_get_level", "callee": "portENTER_CRITICAL", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L230", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_get_level", "callee": "portEXIT_CRITICAL", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L232", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_stream_open", "callee": "xStreamBufferReset", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L240", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_stream_read", "callee": "xStreamBufferReceive", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L247", "receiver": null}], "_cached_target_files": ["$graphify-root$/main/beat.h", "$graphify-root$/main/mic.h"]} |