Skip to content
Snippets Groups Projects

Add a panic() function

Merged rahix requested to merge rahix/panic into master
All threads resolved!
2 files
+ 7
0
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 5e25bc89
    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>
@@ -31,6 +31,8 @@ void vSerialTask(void *pvParameters);
void serial_enqueue_char(char chr);
void serial_flush(void);
extern TaskHandle_t serial_task_id;
/* Turn off the print queue and do prints synchroneous from now on. */
void serial_return_to_synchronous();
// For the eSetBit xTaskNotify task semaphore trigger
enum serial_notify{
Loading