SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. self.usart.brr.write(|w| unsafe {w.bits(0x2541B4DBF)});
  2.  
  3.  
  4. unsafe {
  5.     asm!("" ::: "memory");}
  6. // This is a compiler fence to prevent re-ordering of memory access in C
  7. // Ensure the s->usart is assigned before enabling interrupts
  8.  
  9. // Driver enable mode (user can activate external transceiver via DE line)
  10. self.usart.cr3.write(|w| w.dem().set_bit());
  11.  
  12. // When this bit is cleared the chip is stopped
  13. self.usart.cr1.write(|w| w.ue().clear_bit());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top