18 #ifndef _RTEMS_PRINTER_H 19 #define _RTEMS_PRINTER_H 67 static inline bool rtems_print_printer_valid(
const rtems_printer *printer)
69 return printer !=
NULL && printer->printer !=
NULL;
80 static inline void rtems_print_printer_empty(
rtems_printer *printer)
82 printer->context =
NULL;
83 printer->printer =
NULL;
121 size_t task_stack_size;
129 static inline void rtems_printer_task_initialize(
133 memset( context, 0,
sizeof( *context ) );
136 static inline void rtems_printer_task_set_stack_size(
141 context->task_stack_size = stack_size;
144 static inline void rtems_printer_task_set_priority(
149 context->task_priority = priority;
152 static inline void rtems_printer_task_set_file_descriptor(
160 static inline void rtems_printer_task_set_buffer_table(
165 context->buffer_table = buffer_table;
168 static inline void rtems_printer_task_set_buffer_count(
173 context->buffer_count = buffer_count;
176 static inline void rtems_printer_task_set_buffer_size(
181 context->buffer_size = buffer_size;
#define RTEMS_INTERRUPT_LOCK_MEMBER(_designator)
Defines an interrupt lock member.
Definition: intr.h:209
int rtems_print_printer_task(rtems_printer *printer, rtems_printer_task_context *context)
Creates a printer task.
Definition: printertask.c:152
void rtems_print_printer_printf(rtems_printer *printer)
Initializes the printer to print via printf().
Definition: printf_plugin.c:34
void rtems_printer_task_drain(rtems_printer_task_context *context)
Drains the work queue of the printer task.
Definition: printertask.c:193
int(* rtems_print_printer)(void *, const char *format, va_list ap)
Definition: printer.h:49
void rtems_print_printer_fprintf(rtems_printer *printer, FILE *file)
Initializes the printer to print via fprintf() using the specified file stream.
Definition: print_fprintf.c:28
void rtems_print_printer_printk(rtems_printer *printer)
Initializes the printer to print via printk().
Definition: printk_plugin.c:35
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...
Definition: printerfprintfputc.c:62
Classic Task Manager API.
User print interface to the bspIO print plug in.
Definition: printer.h:116
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
#define NULL
Requests a GPIO pin group configuration.
Definition: bestcomm_api.h:77
Definition: mongoose.c:442
uint32_t rtems_task_priority
Definition: tasks.h:54