Skip to content
  • Damien George's avatar
    stmhal/uart: Add check that UART id is valid for the given board. · 4c7d799b
    Damien George authored
    Previous to this patch trying to construct, but not init, a UART that
    didn't exist on the target board would actually succeed.  Only when
    initialising the UART would it then raise an exception that the UART does
    not exist.
    
    This patch adds an explicit check that the constructed UART does in fact
    exist for the given board.
    4c7d799b