Files
rtems/bsps/include/grlib/apbuart_termios.h
Sebastian Huber 3172092576 grlib: Move header files
Update #3678.
2019-01-22 12:46:28 +01:00

42 lines
890 B
C

/*
* COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR).
*
* Modified for LEON3 BSP.
* COPYRIGHT (c) 2004.
* Gaisler Research.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#ifndef APBUART_TERMIOS_H
#define APBUART_TERMIOS_H
#include <rtems/termiostypes.h>
#include "grlib.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
struct apbuart_context {
rtems_termios_device_context base;
struct apbuart_regs *regs;
unsigned int freq_hz;
rtems_vector_number irq;
volatile int sending;
char *buf;
};
extern const rtems_termios_device_handler apbuart_handler_interrupt;
extern const rtems_termios_device_handler apbuart_handler_polled;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* APBUART_TERMIOS_H */