18 #ifndef _RTEMS_PRINTER_H 19 #define _RTEMS_PRINTER_H 69 return printer != NULL && printer->printer != NULL;
82 printer->context = NULL;
83 printer->printer = NULL;
121 size_t task_stack_size;
129 static inline void rtems_printer_task_initialize(
137 memset( (
void *) context, 0,
sizeof( *context ) );
140 static inline void rtems_printer_task_set_stack_size(
145 context->task_stack_size = stack_size;
148 static inline void rtems_printer_task_set_priority(
153 context->task_priority = priority;
156 static inline void rtems_printer_task_set_file_descriptor(
164 static inline void rtems_printer_task_set_buffer_table(
169 context->buffer_table = buffer_table;
172 static inline void rtems_printer_task_set_buffer_count(
177 context->buffer_count = buffer_count;
180 static inline void rtems_printer_task_set_buffer_size(
185 context->buffer_size = buffer_size;
#define RTEMS_INTERRUPT_LOCK_MEMBER(_designator)
%
int rtems_print_printer_task(rtems_printer *printer, rtems_printer_task_context *context)
Creates a printer task.
void rtems_print_printer_printf(rtems_printer *printer)
Initializes the printer to print via printf().
void rtems_printer_task_drain(rtems_printer_task_context *context)
Drains the work queue of the printer task.
uint32_t rtems_task_priority
%
static bool rtems_print_printer_valid(const rtems_printer *printer)
check if the printer is valid.
int(* rtems_print_printer)(void *, const char *format, va_list ap)
void rtems_print_printer_fprintf(rtems_printer *printer, FILE *file)
Initializes the printer to print via fprintf() using the specified file stream.
void rtems_print_printer_printk(rtems_printer *printer)
Initializes the printer to print via printk().
void rtems_print_printer_fprintf_putc(rtems_printer *printer)
Initializes the printer to print via fprintf() using an unbuffered FILE stream with output through rt...
This header file defines the main parts of the Tasks Manager API.
This header file defines the Interrupt Manager API.
Objects_Id rtems_id
Values of this type identify an RTEMS object.
User print interface to the bspIO print plug in.
static void rtems_print_printer_empty(rtems_printer *printer)
Initializes the printer to print nothing.