@startuml
class SerialPort;
note right: This is some abstract interface class describing some peripheral.
class stm32::Usart;
note right: This is the realization (port) of some peripheral.
class ClockedPeripheral;

SerialPort <|-- stm32::Usart
ClockedPeripheral <|-- stm32::Usart

@enduml