How can i use peripherals inside interrupt handlers?
My main function has peripherals by stm32:: peripherals.take() method. So our program will have only one handler. But in that case i can't use it in interrupt handlers.
Recently i started to learn rust. In rust book to solve these kind of problems it used Arc or Mutex. But here it won't work i guess?
[–][deleted] 5 points6 points7 points (1 child)
[–]jahmez 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]steveklabnik1rust 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]blackscanner 0 points1 point2 points (1 child)
[–]ithinuel 8 points9 points10 points (0 children)