File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -601,8 +601,8 @@ macro_rules! csr_field_enum {
601601#[ macro_export]
602602macro_rules! read_write_csr {
603603 ( $( #[ $doc: meta] ) +
604- $ty: ident: $csr: tt ,
605- mask: $mask: tt $( , ) ?
604+ $ty: ident: $csr: expr ,
605+ mask: $mask: expr $( , ) ?
606606 ) => {
607607 $crate:: csr!( $( #[ $doc] ) + $ty, $mask) ;
608608
@@ -617,17 +617,17 @@ macro_rules! read_write_csr {
617617#[ macro_export]
618618macro_rules! read_only_csr {
619619 ( $( #[ $doc: meta] ) +
620- $ty: ident: $csr: tt ,
621- mask: $mask: tt $( , ) ?
620+ $ty: ident: $csr: expr ,
621+ mask: $mask: expr $( , ) ?
622622 ) => {
623623 $crate:: csr! { $( #[ $doc] ) + $ty, $mask }
624624
625625 $crate:: read_csr_as!( $ty, $csr) ;
626626 } ;
627627
628628 ( $( #[ $doc: meta] ) +
629- $ty: ident: $csr: tt ,
630- mask: $mask: tt ,
629+ $ty: ident: $csr: expr ,
630+ mask: $mask: expr ,
631631 sentinel: $sentinel: tt$( , ) ?,
632632 ) => {
633633 $crate:: csr! { $( #[ $doc] ) + $ty, $mask }
@@ -642,8 +642,8 @@ macro_rules! read_only_csr {
642642#[ macro_export]
643643macro_rules! write_only_csr {
644644 ( $( #[ $doc: meta] ) +
645- $ty: ident: $csr: literal ,
646- mask: $mask: literal $( , ) ?
645+ $ty: ident: $csr: expr ,
646+ mask: $mask: expr $( , ) ?
647647 ) => {
648648 $crate:: csr! { $( #[ $doc] ) + $ty, $mask }
649649
You can’t perform that action at this time.
0 commit comments