diff --git a/src/atdf/peripheral.rs b/src/atdf/peripheral.rs index 64d8d2b..6a6093e 100644 --- a/src/atdf/peripheral.rs +++ b/src/atdf/peripheral.rs @@ -53,7 +53,7 @@ pub fn parse_list( peripherals.push(chip::Peripheral { name: instance.attr("name")?.clone(), - description: instance.attr("caption").ok().cloned(), + description: instance.attr("caption").or(module.attr("caption")).ok().cloned(), registers, }) }