Open conkerkh opened 3 years ago
Hello,
have you tried specifying a
I checked it and I think headerStructName mostly does what I want. However macros will still have peripheral prefix instead of using headerStructName, I belive the behaviour should be either to use the same headerStructName with macros, or define headerMacroName.
Suppose we have two UARTS: UART0 and UART1, UART1 will derive from UART0.
When SVD Conv generates header files, peripherals that derive from others will all have a prefix named after first peripheral; something like UART0_TypeDef, macros will start with UART0 etc. It's quite strange to have UART0_Type for UART1. I think that SVD Conv could detect it has multiple derivatives of one peripheral, in many cases they will be numbered as UART0, UART1, UART2 and so on. Simply using UARTx as a prefix would be much more readable and logical here.