raiden00pl commented on PR #22139:
URL: https://github.com/apache/nuttx/pull/22139#issuecomment-7095117397
@vrmay23 but you can create almost exact diagram with plantuml
```
@startuml
left to right direction
skinparam backgroundColor transparent
skinparam shadowing false
skinparam roundcorner 12
skinparam nodesep 1
skinparam ranksep 1
skinparam Padding 0
skinparam defaultFontName Monospaced
skinparam defaultFontColor #22283C
skinparam rectangle {
BackgroundColor #EEF0FB
BorderColor #BBB8E8
FontSize 11
FontStyle plain
}
skinparam rectangle<<middle>> {
BackgroundColor transparent
BorderColor transparent
}
hide stereotype
' Common OS logic
rectangle OS [
Common OS logic: sched/
{{
skinparam backgroundColor transparent
skinparam shadowing false
skinparam roundcorner 8
skinparam Padding 9
skinparam ranksep 12
skinparam defaultFontName Monospaced
skinparam defaultFontColor #22283C
skinparam rectangle {
BackgroundColor white
BorderColor #6254FF
FontSize 13
}
rectangle "g_irqvector " as a
rectangle "irq_attach() " as b
rectangle "irq_dispatch() " as c
a -[hidden]-> b
b -[hidden]-> c
}}
]
' Five horizontal arrows
rectangle CALLS <<middle>> [
{{
hide footbox
hide unlinked
skinparam backgroundColor transparent
skinparam shadowing false
skinparam defaultFontName Monospaced
skinparam defaultFontColor #22283C
skinparam sequenceMessageAlign left
<style>
participant {
Padding 0
Margin 0
FontSize 1
MinimumWidth 1
}
</style>
skinparam sequence {
ParticipantBorderColor transparent
ParticipantBackgroundColor transparent
LifeLineBorderColor transparent
ArrowColor #5C637D
ArrowThickness 1
ArrowFontSize 13
}
participant " " as L
participant " " as R
L -> R : up_switch_context()
||7||
L -> R : up_enable_irq()
||7||
L -> R : up_disable_irq()
||16||
L <- R : irq_dispatch()
||7||
L <- R : nxsched_process_timer()
}}
]
' Architecture-specific logic
rectangle ARCH #F4F6FA [
Architecture-specific logic: arch/<arch>/
{{
skinparam backgroundColor transparent
skinparam shadowing false
skinparam roundcorner 8
skinparam Padding 9
skinparam ranksep 12
skinparam defaultFontName Monospaced
skinparam defaultFontColor #22283C
skinparam rectangle {
BackgroundColor white
BorderColor #6254FF
FontSize 13
}
rectangle "vector table " as a
rectangle "entry code " as b
rectangle "interrupt controller driver " as c
a -[hidden]-> b
b -[hidden]-> c
}}
]
' Keep the three sections side by side
OS -[hidden]-> CALLS
CALLS -[hidden]-> ARCH
@enduml
```
<img width="952" height="271" alt="image"
src="https://github.com/user-attachments/assets/cdd7219f-a4ea-4083-8403-8f0745c65ea4"
/>
However, I’m not sure if we should interfere this much with the default
PlantUML style. It makes the PlantUML code difficult to read, and one of the
core premises of using PlantUML is that it should remain readable for users who
view the documentation in its text-based form.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]