apple / swift-mmio

Define and operate on type safe MMIO

Home Page:https://swiftpackageindex.com/apple/swift-mmio/documentation/mmio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`namespaceUnderDevice` option of svd2swift defines type in extension of itself

rauhul opened this issue · comments

namespaceUnderDevice currently produces the following code:

extension ExamplePeripheral {
  /// An example peripheral
  @RegisterBlock
  struct ExamplePeripheral {
    /// An example register
    @RegisterBlock(offset: 0x20)
    var exampleregister: Register<ExampleRegister>
  }
}

extension ExamplePeripheral should instead be extension ExampleDevice