Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/43bb2d468df5c43e167d573b935789f19095e9f5c07b6531f050b497f7d02693.json
T
jimmyandClaude Opus 5.5 4ab0c7c6d7 P4-Nano: controller port with the C6 as ESP-NOW radio, and the simulator
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>
2026-11-24 21:45:25 +13:00

1 line
17 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": "L38", "_callable": true}, {"id": "$graphify-root$_main_mic_mic_task", "label": "mic_task()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L43", "_callable": true}, {"id": "$graphify-root$_main_mic_codec_mic_start", "label": "codec_mic_start()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L126", "_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": "L182", "_callable": true}, {"id": "$graphify-root$_main_mic_mic_get_level", "label": "mic_get_level()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L199", "_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": "L206", "_callable": true}, {"id": "$graphify-root$_main_mic_mic_stream_read", "label": "mic_stream_read()", "file_type": "code", "source_file": "main/mic.c", "source_location": "L216", "_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": "L221", "_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": "L15", "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": "L16", "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": "L17", "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": "L18", "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": "L19", "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": "L38", "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": "L43", "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": "L126", "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": "L126", "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": "L182", "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": "L182", "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": "L199", "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": "L199", "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": "L206", "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": "L206", "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": "L216", "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": "L216", "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": "L221", "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": "L103", "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": "L189", "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": "L40", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_to_dbfs", "callee": "log10f", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L40", "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": "L58", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fmaxf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L87", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fabsf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L87", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fmaxf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L88", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "fminf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L88", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "beat_feed", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L91", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "xStreamBufferSend", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L95", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "sqrtf", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L103", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "portENTER_CRITICAL", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L110", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "portEXIT_CRITICAL", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L112", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_task", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L115", "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_codec_mic_start", "callee": "ESP_RETURN_ON_ERROR", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L137", "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": "L137", "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": "L140", "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": "L141", "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": "L150", "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": "L150", "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": "L151", "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": "L151", "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": "L154", "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": "L156", "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": "L157", "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": "L158", "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": "L166", "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": "L167", "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": "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_RETURN_ON_FALSE", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L177", "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": "L177", "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": "L178", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "xStreamBufferCreate", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L184", "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": "L185", "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": "L187", "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": "L188", "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": "L188", "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": "L189", "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": "L191", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "beat_start", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L191", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "xTaskCreate", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L192", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_start", "callee": "ESP_LOGI", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L195", "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": "L201", "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": "L203", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_stream_open", "callee": "xStreamBufferReset", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L211", "receiver": null}, {"caller_nid": "$graphify-root$_main_mic_mic_stream_read", "callee": "xStreamBufferReceive", "is_member_call": false, "source_file": "main/mic.c", "source_location": "L218", "receiver": null}], "_cached_target_files": ["$graphify-root$/main/beat.h", "$graphify-root$/main/mic.h"]}