Refactor AssistDebug symbols (#3730)

This commit is contained in:
Dániel Buga 2025-07-01 16:42:27 +02:00 committed by GitHub
parent d315816680
commit 8c4878cb03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 33 additions and 18 deletions

View File

@ -73,7 +73,7 @@ impl crate::interrupt::InterruptConfigurable for DebugAssist<'_> {
}
}
#[cfg(assist_debug_sp_monitor)]
#[cfg(assist_debug_has_sp_monitor)]
impl DebugAssist<'_> {
/// Enable SP monitoring on main core. When the SP exceeds the
/// `lower_bound` or `upper_bound` threshold, the module will record the PC
@ -152,7 +152,7 @@ impl DebugAssist<'_> {
}
}
#[cfg(all(assist_debug_sp_monitor, multi_core))]
#[cfg(all(assist_debug_has_sp_monitor, multi_core))]
impl<'d> DebugAssist<'d> {
/// Enable SP monitoring on secondary core. When the SP exceeds the
/// `lower_bound` or `upper_bound` threshold, the module will record the PC
@ -231,7 +231,7 @@ impl<'d> DebugAssist<'d> {
}
}
#[cfg(assist_debug_region_monitor)]
#[cfg(assist_debug_has_region_monitor)]
impl DebugAssist<'_> {
/// Enable region monitoring of read/write performed by the main CPU in a
/// certain memory region0. Whenever the bus reads or writes in the
@ -394,7 +394,7 @@ impl DebugAssist<'_> {
}
}
#[cfg(all(assist_debug_region_monitor, multi_core))]
#[cfg(all(assist_debug_has_region_monitor, multi_core))]
impl DebugAssist<'_> {
/// Enable region monitoring of read/write performed by the secondary CPU in
/// a certain memory region0. Whenever the bus reads or writes in the

View File

@ -46,7 +46,6 @@ virtual_peripherals = [
symbols = [
# Additional peripherals defined by us (the developers):
"assist_debug_sp_monitor",
"gdma",
"phy",
@ -70,6 +69,10 @@ instances = [
{ name = "adc1" },
]
[device.assist_debug]
support_status = "partial"
has_sp_monitor = true
[device.gpio]
support_status = "supported"
gpio_function = 1
@ -246,7 +249,6 @@ instances = [
[device.ledc]
## Miscellaneous
[device.assist_debug]
[device.dma]
[device.io_mux]
[device.temp_sensor]

View File

@ -58,8 +58,6 @@ virtual_peripherals = [
symbols = [
# Additional peripherals defined by us (the developers):
"assist_debug_sp_monitor",
"assist_debug_region_monitor",
"gdma",
"phy",
"tsens",
@ -85,6 +83,11 @@ instances = [
{ name = "adc2" },
]
[device.assist_debug]
support_status = "partial"
has_sp_monitor = true
has_region_monitor = true
[device.gpio]
support_status = "supported"
gpio_function = 1
@ -307,7 +310,6 @@ support_status = "not_supported"
[device.usb_serial_jtag]
## Miscellaneous
[device.assist_debug]
[device.dma]
[device.io_mux]
[device.temp_sensor]

View File

@ -83,8 +83,6 @@ virtual_peripherals = [
symbols = [
# Additional peripherals defined by us (the developers):
"assist_debug_sp_monitor",
"assist_debug_region_monitor",
"gdma",
"plic",
"phy",
@ -113,6 +111,11 @@ instances = [
{ name = "adc1" },
]
[device.assist_debug]
support_status = "partial"
has_sp_monitor = true
has_region_monitor = true
[device.gpio]
support_status = "supported"
gpio_function = 1
@ -441,7 +444,6 @@ has_wifi6 = true
[device.usb_serial_jtag]
## Miscellaneous
[device.assist_debug]
[device.dma]
[device.etm]
[device.io_mux]

View File

@ -75,8 +75,6 @@ virtual_peripherals = [
symbols = [
# Additional peripherals defined by us (the developers):
"assist_debug_sp_monitor",
"assist_debug_region_monitor",
"gdma",
"plic",
"phy",
@ -96,6 +94,11 @@ instances = [
{ name = "adc1" },
]
[device.assist_debug]
support_status = "partial"
has_sp_monitor = true
has_region_monitor = true
[device.gpio]
support_status = "supported"
gpio_function = 1
@ -381,7 +384,6 @@ support_status = "not_supported"
[device.usb_serial_jtag]
## Miscellaneous
[device.assist_debug]
[device.dma]
[device.etm]
[device.io_mux]

View File

@ -75,7 +75,6 @@ virtual_peripherals = [
symbols = [
# Additional peripherals defined by us (the developers):
"assist_debug_region_monitor",
"gdma",
"phy",
"psram",
@ -108,6 +107,10 @@ instances = [
{ name = "adc2" },
]
[device.assist_debug]
support_status = "partial"
has_region_monitor = true
[device.gpio]
support_status = "supported"
has_bank_1 = true
@ -563,7 +566,6 @@ support_status = "not_supported"
[device.usb_serial_jtag]
## Miscellaneous
[device.assist_debug]
[device.dma]
[device.io_mux]
[device.psram]

View File

@ -242,7 +242,12 @@ driver_configs![
driver: assist_debug,
name: "ASSIST_DEBUG",
peripherals: &["assist_debug"],
properties: {}
properties: {
#[serde(default)]
has_sp_monitor: bool,
#[serde(default)]
has_region_monitor: bool,
}
},
DacProperties {
driver: dac,