PebbleOS v4.45.0-50-g17e860a43
Loading...
Searching...
No Matches
Console

Plain text console on the board's console port: logs, the shell and framed binary data. More...

Functions

void pbl_console_enable_prompt (void)
 Start taking input, once the system can handle commands.
 
void pbl_console_lock (void)
 Hold other users of the port back, recursively.
 
void pbl_console_unlock (void)
 
void pbl_console_putchar (char c)
 Write a character to the port without waiting for it to go out, without taking the lock.
 
void pbl_console_flush (void)
 Wait for what was written to go out.
 
void pbl_console_write_raw (const char *data, size_t len)
 Write to the port without taking the lock, for use in fault handlers and between pbl_console_log_begin() and pbl_console_log_end().
 
void pbl_console_write (const char *data, size_t len)
 Write to the port under the lock.
 
void pbl_console_log_begin (void)
 Start a log line, moving the shell's input line out of the way.
 
void pbl_console_log_end (void)
 End a log line, bringing the shell's input line back.
 
void pbl_console_set_rx_enabled (bool enabled)
 

Detailed Description

Plain text console on the board's console port: logs, the shell and framed binary data.

Function Documentation

◆ pbl_console_enable_prompt()

void pbl_console_enable_prompt ( void  )

Start taking input, once the system can handle commands.

◆ pbl_console_flush()

void pbl_console_flush ( void  )

Wait for what was written to go out.

◆ pbl_console_lock()

void pbl_console_lock ( void  )

Hold other users of the port back, recursively.

Does nothing in interrupt context, or with interrupts or the scheduler locked.

◆ pbl_console_log_begin()

void pbl_console_log_begin ( void  )

Start a log line, moving the shell's input line out of the way.

◆ pbl_console_log_end()

void pbl_console_log_end ( void  )

End a log line, bringing the shell's input line back.

◆ pbl_console_putchar()

void pbl_console_putchar ( char  c)

Write a character to the port without waiting for it to go out, without taking the lock.

◆ pbl_console_set_rx_enabled()

void pbl_console_set_rx_enabled ( bool  enabled)

◆ pbl_console_unlock()

void pbl_console_unlock ( void  )

◆ pbl_console_write()

void pbl_console_write ( const char *  data,
size_t  len 
)

Write to the port under the lock.

◆ pbl_console_write_raw()

void pbl_console_write_raw ( const char *  data,
size_t  len 
)

Write to the port without taking the lock, for use in fault handlers and between pbl_console_log_begin() and pbl_console_log_end().