Commit ae9c0e6
DatanoiseTV
Fix caps bitmap, add runnable host example over SDIO, repo cleanup
A real bug: phy_rpc_resp_get_caps_t.caps[] was 4 bytes (32 slots,
0x000-0x01F). But RPCs at 0x020+ (TX_80211, ESP-NOW at 0x030,
802.15.4 at 0x040) were silently outside the bitmap, so
get_caps() / has_capability() returned false for everything past
0x01F. Grow to 16 bytes (128 slots, covering 0x000-0x07F).
- PHY_RPC_CAPS_BYTES = 16; struct field, host stub, slave handler,
and host tests all use the constant.
- Slave's caps assembly split per module: phy_rpc_extras_fill_caps()
and phy_rpc_wireless_fill_caps() each contribute the bits for the
RPCs they own (with weak-symbol guards for chip-dependent paths
like 802.15.4).
- Host has_capability() now bounds-checks against
PHY_RPC_CAPS_BYTES * 8.
While at it:
- Wrap esp_wifi_set_event_mask (PHY_RPC_REQ_SET_EVENT_MASK at 0x027,
response at 0x027|0x8000). Slave handler currently logs and
returns ESP_OK; the actual esp_event filter wiring is TODO and
documented in-line.
- Reserve msg_id slots 0x050-0x053 for the full BT shockburst
sequencer (preamble, address, CRC mode, raw burst TX) so the
wire protocol stays stable when those land. No handlers yet —
needs scope-confirmed RE.
Examples + CI:
- examples/host_p4_demo/ — minimal P4 IDF project. Builds against
the host stub library, exercises set_channel + get_caps +
get_info + get_phy_rssi + ESP-NOW init/add_peer/send. SDIO is
explicitly selected (CONFIG_ESP_HOSTED_SDIO_HOST_INTERFACE=y),
SPI/SPI-HD/UART are explicitly disabled in sdkconfig.defaults.
- .github/workflows/build.yml gains a host-example job that
idf.py builds it for esp32p4 — closes the gap where a host-stub
regression could pass CI.
Plumbing fixes that fell out of getting the example to compile:
- vendor/esp-hosted-mcu/ -> vendor/esp_hosted/ (component-name
mismatch; idf_component_manager's override_path requires the
leaf dir to match the dependency name).
- host/ -> esp_hosted_open/ (same reason; dependents say
REQUIRES esp_hosted_open).
Build sizes (IDF v6.0):
slave (esp32c5): 0x1631c0 (26% free in 1.875 MB factory)
host example (P4): 0x90c90 (43% free in 1 MB)
host tests: 3 passing, including new caps-bitmap layout
Prebuilt firmware refreshed.1 parent 26e9cca commit ae9c0e6
138 files changed
Lines changed: 2868 additions & 2576 deletions
File tree
- .github/workflows
- esp_hosted_open
- include
- src
- examples/host_p4_demo
- main
- firmware
- slave
- components/phy_rpc_overlay
- main
- tests/host
- vendor/esp_hosted
- .github/workflows
- .gitlab/ci
- common
- log
- mempool
- include
- protobuf-c/protobuf-c
- proto
- rpc
- transport
- utils
- host
- api
- include
- priv
- src
- drivers
- bt
- power_save
- rpc
- core
- slaveif
- wrap
- serial
- transport
- sdio
- spi_hd
- spi
- uart
- virtual_serial_if
- port/esp/freertos
- include
- src
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
| |||
File renamed without changes.
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| |||
Lines changed: 33 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
118 | 132 | | |
119 | 133 | | |
120 | 134 | | |
| |||
169 | 183 | | |
170 | 184 | | |
171 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
172 | 192 | | |
173 | 193 | | |
174 | 194 | | |
| |||
391 | 411 | | |
392 | 412 | | |
393 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
394 | 419 | | |
395 | 420 | | |
396 | 421 | | |
| |||
419 | 444 | | |
420 | 445 | | |
421 | 446 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
427 | 454 | | |
428 | 455 | | |
429 | | - | |
| 456 | + | |
430 | 457 | | |
431 | 458 | | |
432 | 459 | | |
| |||
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| |||
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
555 | | - | |
| 556 | + | |
556 | 557 | | |
557 | 558 | | |
| 559 | + | |
558 | 560 | | |
559 | 561 | | |
560 | | - | |
| 562 | + | |
561 | 563 | | |
562 | 564 | | |
563 | | - | |
| 565 | + | |
564 | 566 | | |
565 | | - | |
| 567 | + | |
| 568 | + | |
566 | 569 | | |
567 | | - | |
| 570 | + | |
568 | 571 | | |
569 | 572 | | |
570 | 573 | | |
| |||
724 | 727 | | |
725 | 728 | | |
726 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
727 | 736 | | |
728 | 737 | | |
729 | 738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments