@@ -63,7 +63,7 @@ impl<'a, const N: usize> BBBuffer<N> {
63
63
/// is placed at `static` scope within the `.bss` region, the explicit initialization
64
64
/// will be elided (as it is already performed as part of memory initialization)
65
65
///
66
- /// NOTE: If the `thumbv6 ` feature is selected, this function takes a short critical section
66
+ /// NOTE: If the `cortex-m ` feature is selected, this function takes a short critical section
67
67
/// while splitting.
68
68
///
69
69
/// ```rust
@@ -81,7 +81,7 @@ impl<'a, const N: usize> BBBuffer<N> {
81
81
/// # }
82
82
/// #
83
83
/// # fn main() {
84
- /// # #[cfg(not(feature = "thumbv6 "))]
84
+ /// # #[cfg(not(feature = "cortex-m "))]
85
85
/// # bbqtest();
86
86
/// # }
87
87
/// ```
@@ -123,7 +123,7 @@ impl<'a, const N: usize> BBBuffer<N> {
123
123
/// is placed at `static` scope within the `.bss` region, the explicit initialization
124
124
/// will be elided (as it is already performed as part of memory initialization)
125
125
///
126
- /// NOTE: If the `thumbv6 ` feature is selected, this function takes a short critical
126
+ /// NOTE: If the `cortex-m ` feature is selected, this function takes a short critical
127
127
/// section while splitting.
128
128
pub fn try_split_framed ( & ' a self ) -> Result < ( FrameProducer < ' a , N > , FrameConsumer < ' a , N > ) > {
129
129
let ( producer, consumer) = self . try_split ( ) ?;
@@ -159,7 +159,7 @@ impl<'a, const N: usize> BBBuffer<N> {
159
159
/// # }
160
160
/// #
161
161
/// # fn main() {
162
- /// # #[cfg(not(feature = "thumbv6 "))]
162
+ /// # #[cfg(not(feature = "cortex-m "))]
163
163
/// # bbqtest();
164
164
/// # }
165
165
/// ```
@@ -345,7 +345,7 @@ impl<'a, const N: usize> Producer<'a, N> {
345
345
/// # }
346
346
/// #
347
347
/// # fn main() {
348
- /// # #[cfg(not(feature = "thumbv6 "))]
348
+ /// # #[cfg(not(feature = "cortex-m "))]
349
349
/// # bbqtest();
350
350
/// # }
351
351
/// ```
@@ -443,7 +443,7 @@ impl<'a, const N: usize> Producer<'a, N> {
443
443
/// # }
444
444
/// #
445
445
/// # fn main() {
446
- /// # #[cfg(not(feature = "thumbv6 "))]
446
+ /// # #[cfg(not(feature = "cortex-m "))]
447
447
/// # bbqtest();
448
448
/// # }
449
449
/// ```
@@ -548,7 +548,7 @@ impl<'a, const N: usize> Consumer<'a, N> {
548
548
/// # }
549
549
/// #
550
550
/// # fn main() {
551
- /// # #[cfg(not(feature = "thumbv6 "))]
551
+ /// # #[cfg(not(feature = "cortex-m "))]
552
552
/// # bbqtest();
553
553
/// # }
554
554
/// ```
@@ -674,7 +674,7 @@ impl<const N: usize> BBBuffer<N> {
674
674
/// # }
675
675
/// #
676
676
/// # fn main() {
677
- /// # #[cfg(not(feature = "thumbv6 "))]
677
+ /// # #[cfg(not(feature = "cortex-m "))]
678
678
/// # bbqtest();
679
679
/// # }
680
680
/// ```
@@ -691,7 +691,7 @@ impl<const N: usize> BBBuffer<N> {
691
691
/// automatically be committed with `to_commit()`, then no bytes
692
692
/// will be comitted for writing.
693
693
///
694
- /// If the `thumbv6 ` feature is selected, dropping the grant
694
+ /// If the `cortex-m ` feature is selected, dropping the grant
695
695
/// without committing it takes a short critical section,
696
696
#[ derive( Debug , PartialEq ) ]
697
697
pub struct GrantW < ' a , const N : usize > {
@@ -712,7 +712,7 @@ unsafe impl<'a, const N: usize> Send for GrantW<'a, N> {}
712
712
/// as read.
713
713
///
714
714
///
715
- /// If the `thumbv6 ` feature is selected, dropping the grant
715
+ /// If the `cortex-m ` feature is selected, dropping the grant
716
716
/// without releasing it takes a short critical section,
717
717
#[ derive( Debug , PartialEq ) ]
718
718
pub struct GrantR < ' a , const N : usize > {
@@ -744,7 +744,7 @@ impl<'a, const N: usize> GrantW<'a, N> {
744
744
/// If `used` is larger than the given grant, the maximum amount will
745
745
/// be commited
746
746
///
747
- /// NOTE: If the `thumbv6 ` feature is selected, this function takes a short critical
747
+ /// NOTE: If the `cortex-m ` feature is selected, this function takes a short critical
748
748
/// section while committing.
749
749
pub fn commit ( mut self , used : usize ) {
750
750
self . commit_inner ( used) ;
@@ -770,7 +770,7 @@ impl<'a, const N: usize> GrantW<'a, N> {
770
770
/// # }
771
771
/// #
772
772
/// # fn main() {
773
- /// # #[cfg(not(feature = "thumbv6 "))]
773
+ /// # #[cfg(not(feature = "cortex-m "))]
774
774
/// # bbqtest();
775
775
/// # }
776
776
/// ```
@@ -861,7 +861,7 @@ impl<'a, const N: usize> GrantR<'a, N> {
861
861
/// If `used` is larger than the given grant, the full grant will
862
862
/// be released.
863
863
///
864
- /// NOTE: If the `thumbv6 ` feature is selected, this function takes a short critical
864
+ /// NOTE: If the `cortex-m ` feature is selected, this function takes a short critical
865
865
/// section while releasing.
866
866
pub fn release ( mut self , used : usize ) {
867
867
// Saturate the grant release
@@ -903,7 +903,7 @@ impl<'a, const N: usize> GrantR<'a, N> {
903
903
/// # }
904
904
/// #
905
905
/// # fn main() {
906
- /// # #[cfg(not(feature = "thumbv6 "))]
906
+ /// # #[cfg(not(feature = "cortex-m "))]
907
907
/// # bbqtest();
908
908
/// # }
909
909
/// ```
@@ -969,7 +969,7 @@ impl<'a, const N: usize> SplitGrantR<'a, N> {
969
969
/// If `used` is larger than the given grant, the full grant will
970
970
/// be released.
971
971
///
972
- /// NOTE: If the `thumbv6 ` feature is selected, this function takes a short critical
972
+ /// NOTE: If the `cortex-m ` feature is selected, this function takes a short critical
973
973
/// section while releasing.
974
974
pub fn release ( mut self , used : usize ) {
975
975
// Saturate the grant release
@@ -1004,7 +1004,7 @@ impl<'a, const N: usize> SplitGrantR<'a, N> {
1004
1004
/// # }
1005
1005
/// #
1006
1006
/// # fn main() {
1007
- /// # #[cfg(not(feature = "thumbv6 "))]
1007
+ /// # #[cfg(not(feature = "cortex-m "))]
1008
1008
/// # bbqtest();
1009
1009
/// # }
1010
1010
/// ```
@@ -1102,7 +1102,7 @@ impl<'a, const N: usize> DerefMut for GrantR<'a, N> {
1102
1102
}
1103
1103
}
1104
1104
1105
- #[ cfg( feature = "thumbv6 " ) ]
1105
+ #[ cfg( feature = "cortex-m " ) ]
1106
1106
mod atomic {
1107
1107
use core:: sync:: atomic:: {
1108
1108
AtomicBool , AtomicUsize ,
@@ -1138,7 +1138,7 @@ mod atomic {
1138
1138
}
1139
1139
}
1140
1140
1141
- #[ cfg( not( feature = "thumbv6 " ) ) ]
1141
+ #[ cfg( not( feature = "cortex-m " ) ) ]
1142
1142
mod atomic {
1143
1143
use core:: sync:: atomic:: { AtomicBool , AtomicUsize , Ordering } ;
1144
1144
0 commit comments