diff --git a/Sources/MMIO/MMIOMacros.swift b/Sources/MMIO/MMIOMacros.swift index cb982cd0..e4dc3210 100644 --- a/Sources/MMIO/MMIOMacros.swift +++ b/Sources/MMIO/MMIOMacros.swift @@ -30,17 +30,17 @@ public macro Register(bitWidth: Int) = // external macro declarations. However, this parameter will never be used by // expansion for reserved bitfields, so it is omitted to avoid programmer use. @attached(accessor) -public macro Reserved(bits: Range) = +public macro Reserved(bits: Range...) = #externalMacro(module: "MMIOMacros", type: "ReservedMacro") @attached(accessor) -public macro ReadWrite(bits: Range, as: Any? = nil) = +public macro ReadWrite(bits: Range..., as: Any? = nil) = #externalMacro(module: "MMIOMacros", type: "ReadWriteMacro") @attached(accessor) -public macro ReadOnly(bits: Range, as: Any? = nil) = +public macro ReadOnly(bits: Range..., as: Any? = nil) = #externalMacro(module: "MMIOMacros", type: "ReadOnlyMacro") @attached(accessor) -public macro WriteOnly(bits: Range, as: Any? = nil) = +public macro WriteOnly(bits: Range..., as: Any? = nil) = #externalMacro(module: "MMIOMacros", type: "WriteOnlyMacro")