File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1863,7 +1863,7 @@ macro_rules! adc {
1863
1863
/// Returns the address of the ADC data register. Primarily useful for configuring DMA.
1864
1864
#[ inline( always) ]
1865
1865
pub fn data_register_address( & self ) -> u32 {
1866
- & self . adc_reg. dr( ) as * const _ as u32
1866
+ self . adc_reg. dr( ) as * const _ as u32
1867
1867
}
1868
1868
1869
1869
/// Calibrate the adc for <Input Type>
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ macro_rules! uart_shared {
501
501
#[ inline( always) ]
502
502
fn address( & self ) -> u32 {
503
503
// unsafe: only the Tx part accesses the Tx register
504
- & unsafe { & * <$USARTX>:: ptr( ) } . tdr( ) as * const _ as u32
504
+ unsafe { & * <$USARTX>:: ptr( ) } . tdr( ) as * const _ as u32
505
505
}
506
506
507
507
type MemSize = u8 ;
@@ -513,7 +513,7 @@ macro_rules! uart_shared {
513
513
#[ inline( always) ]
514
514
fn address( & self ) -> u32 {
515
515
// unsafe: only the Rx part accesses the Rx register
516
- & unsafe { & * <$USARTX>:: ptr( ) } . rdr( ) as * const _ as u32
516
+ unsafe { & * <$USARTX>:: ptr( ) } . rdr( ) as * const _ as u32
517
517
}
518
518
519
519
type MemSize = u8 ;
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ macro_rules! spi {
213
213
// NOTE(read_volatile) read only 1 byte (the svd2rust API only allows
214
214
// reading a half-word)
215
215
return Ok ( unsafe {
216
- ptr:: read_volatile( & self . spi. dr( ) as * const _ as * const W )
216
+ ptr:: read_volatile( self . spi. dr( ) as * const _ as * const W )
217
217
} ) ;
218
218
} else {
219
219
nb:: Error :: WouldBlock
@@ -360,7 +360,7 @@ macro_rules! spi {
360
360
#[ inline( always) ]
361
361
fn address( & self ) -> u32 {
362
362
// unsafe: only the Tx part accesses the Tx register
363
- & unsafe { & * <$SPIX>:: ptr( ) } . dr( ) as * const _ as u32
363
+ unsafe { & * <$SPIX>:: ptr( ) } . dr( ) as * const _ as u32
364
364
}
365
365
366
366
type MemSize = u8 ;
You can’t perform that action at this time.
0 commit comments