Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
51
of
174
Inclusion of
<fcntl.h>
and <unistd.h>
are required for using the POSIX functions:
open, close, ioctl
.
Inclusion of
<errno.h>
is required for retrieving error values on failures.
Inclusion of <
bsp/uart_rtems.h>
is required for accessing the uarts.
5.5.3.2. Parity, framing and overrun error notification
Upon receiving a parity, framing or an overrun error the read call returns 0 and the internal
RX queue is flushed.
5.5.4. Limitations
8 data bits only.
1 stop bit only.
No hardware flow control support.
5.6. Mass memory
5.6.1. Description
This section describes the mass memory driver’s design and usability.
This API represents the driver interface from a user application’s perspective f
or the RTEMS
driver.
The driver functionality is accessed through RTEMS POSIX API for ease of usage. In case
of failure on a function call,
errno
value is set for determining the cause.
#include <bsp.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <bsp/uart_rtems.h>
#define CONFIGURE_APPLICATION_NEEDS_UART_DRIVER
#define CONFIGURE_SEMAPHORES 40
#include <bsp/bsp_confdefs.h>
#include <rtems/confdefs.h>
#define CONFIGURE_INIT
rtems_task Init (rtems_task_argument argument);
rtems_task Init (rtems_task_argument ignored){}