@@ -1039,22 +1039,22 @@ where
1039
1039
1040
1040
// Set the channel in the right sequence field
1041
1041
match sequence {
1042
- config:: Sequence :: One => self . reg . sqr1 . modify ( |_, w| unsafe { w. sq1 ( ) . bits ( channel. into ( ) ) } ) ,
1043
- config:: Sequence :: Two => self . reg . sqr1 . modify ( |_, w| unsafe { w. sq2 ( ) . bits ( channel. into ( ) ) } ) ,
1044
- config:: Sequence :: Three => self . reg . sqr1 . modify ( |_, w| unsafe { w. sq3 ( ) . bits ( channel. into ( ) ) } ) ,
1045
- config:: Sequence :: Four => self . reg . sqr1 . modify ( |_, w| unsafe { w. sq4 ( ) . bits ( channel. into ( ) ) } ) ,
1046
- config:: Sequence :: Five => self . reg . sqr2 . modify ( |_, w| unsafe { w. sq5 ( ) . bits ( channel. into ( ) ) } ) ,
1047
- config:: Sequence :: Six => self . reg . sqr2 . modify ( |_, w| unsafe { w. sq6 ( ) . bits ( channel. into ( ) ) } ) ,
1048
- config:: Sequence :: Seven => self . reg . sqr2 . modify ( |_, w| unsafe { w. sq7 ( ) . bits ( channel. into ( ) ) } ) ,
1049
- config:: Sequence :: Eight => self . reg . sqr2 . modify ( |_, w| unsafe { w. sq8 ( ) . bits ( channel. into ( ) ) } ) ,
1050
- config:: Sequence :: Nine => self . reg . sqr2 . modify ( |_, w| unsafe { w. sq9 ( ) . bits ( channel. into ( ) ) } ) ,
1051
- config:: Sequence :: Ten => self . reg . sqr3 . modify ( |_, w| unsafe { w. sq10 ( ) . bits ( channel. into ( ) ) } ) ,
1052
- config:: Sequence :: Eleven => self . reg . sqr3 . modify ( |_, w| unsafe { w. sq11 ( ) . bits ( channel. into ( ) ) } ) ,
1053
- config:: Sequence :: Twelve => self . reg . sqr3 . modify ( |_, w| unsafe { w. sq12 ( ) . bits ( channel. into ( ) ) } ) ,
1054
- config:: Sequence :: Thirteen => self . reg . sqr3 . modify ( |_, w| unsafe { w. sq13 ( ) . bits ( channel. into ( ) ) } ) ,
1055
- config:: Sequence :: Fourteen => self . reg . sqr3 . modify ( |_, w| unsafe { w. sq14 ( ) . bits ( channel. into ( ) ) } ) ,
1056
- config:: Sequence :: Fifteen => self . reg . sqr4 . modify ( |_, w| unsafe { w. sq15 ( ) . bits ( channel. into ( ) ) } ) ,
1057
- config:: Sequence :: Sixteen => self . reg . sqr4 . modify ( |_, w| unsafe { w. sq16 ( ) . bits ( channel. into ( ) ) } ) ,
1042
+ config:: Sequence :: One => self . reg . sqr1 . modify ( |_, w| w. sq1 ( ) . bits ( channel. into ( ) ) ) ,
1043
+ config:: Sequence :: Two => self . reg . sqr1 . modify ( |_, w| w. sq2 ( ) . bits ( channel. into ( ) ) ) ,
1044
+ config:: Sequence :: Three => self . reg . sqr1 . modify ( |_, w| w. sq3 ( ) . bits ( channel. into ( ) ) ) ,
1045
+ config:: Sequence :: Four => self . reg . sqr1 . modify ( |_, w| w. sq4 ( ) . bits ( channel. into ( ) ) ) ,
1046
+ config:: Sequence :: Five => self . reg . sqr2 . modify ( |_, w| w. sq5 ( ) . bits ( channel. into ( ) ) ) ,
1047
+ config:: Sequence :: Six => self . reg . sqr2 . modify ( |_, w| w. sq6 ( ) . bits ( channel. into ( ) ) ) ,
1048
+ config:: Sequence :: Seven => self . reg . sqr2 . modify ( |_, w| w. sq7 ( ) . bits ( channel. into ( ) ) ) ,
1049
+ config:: Sequence :: Eight => self . reg . sqr2 . modify ( |_, w| w. sq8 ( ) . bits ( channel. into ( ) ) ) ,
1050
+ config:: Sequence :: Nine => self . reg . sqr2 . modify ( |_, w| w. sq9 ( ) . bits ( channel. into ( ) ) ) ,
1051
+ config:: Sequence :: Ten => self . reg . sqr3 . modify ( |_, w| w. sq10 ( ) . bits ( channel. into ( ) ) ) ,
1052
+ config:: Sequence :: Eleven => self . reg . sqr3 . modify ( |_, w| w. sq11 ( ) . bits ( channel. into ( ) ) ) ,
1053
+ config:: Sequence :: Twelve => self . reg . sqr3 . modify ( |_, w| w. sq12 ( ) . bits ( channel. into ( ) ) ) ,
1054
+ config:: Sequence :: Thirteen => self . reg . sqr3 . modify ( |_, w| w. sq13 ( ) . bits ( channel. into ( ) ) ) ,
1055
+ config:: Sequence :: Fourteen => self . reg . sqr3 . modify ( |_, w| w. sq14 ( ) . bits ( channel. into ( ) ) ) ,
1056
+ config:: Sequence :: Fifteen => self . reg . sqr4 . modify ( |_, w| w. sq15 ( ) . bits ( channel. into ( ) ) ) ,
1057
+ config:: Sequence :: Sixteen => self . reg . sqr4 . modify ( |_, w| w. sq16 ( ) . bits ( channel. into ( ) ) ) ,
1058
1058
}
1059
1059
}
1060
1060
0 commit comments