Skip to content
Snippets Groups Projects
Forked from card10 / firmware
Source project has a limited visibility.
  • rahix's avatar
    5e25bc89
    feat(serial): Add function to switch serial to synchronous · 5e25bc89
    rahix authored
    
    In severe error conditions, asynchronous prints will never work.  For
    such cases we need a way to make prints happen synchronously again, the
    same way it works during early boot.  Add a serial_return_to_synchronous()
    function which unconditionally switches the serial driver code to
    synchronous mode.
    
    Only use this function in unrecoverable error conditions!
    
    Signed-off-by: default avatarRahix <rahix@rahix.de>
    5e25bc89
    History
    feat(serial): Add function to switch serial to synchronous
    rahix authored
    
    In severe error conditions, asynchronous prints will never work.  For
    such cases we need a way to make prints happen synchronously again, the
    same way it works during early boot.  Add a serial_return_to_synchronous()
    function which unconditionally switches the serial driver code to
    synchronous mode.
    
    Only use this function in unrecoverable error conditions!
    
    Signed-off-by: default avatarRahix <rahix@rahix.de>