fn run_uart(uart: Uart<'static, UART1>) -> SpawnToken<impl Sized>
Expand description

Exercise: Receive battery percentage over UART from the power-system

  1. create an infinite loop that
  2. tries to read the Battery Percentage value sent from the Power System,
  3. prints the value on success or the error on failure (using Debug formatting),
  4. Repeat the read every 20 milliseconds