On 07/30/2014 03:27 AM, Tom wrote:
c/src/libchip/serial/serial.h
typedef struct _console_fns {
bool (*deviceProbe)(int minor);
int (*deviceFirstOpen)(int major, int minor, void *arg);
int (*deviceLastClose)(int major, int minor, void *arg);
int (*deviceRead)(int minor);
ssize_t (*deviceWrite)(int minor, const char *buf, size_t len);
void (*deviceInitialize)(int minor);
void (*deviceWritePolled)(int minor, char cChar);
int (*deviceSetAttributes)(int minor, const struct termios *t);
bool deviceOutputUsesInterrupts;
} console_fns;
Now three modes are supported in console : poll, interrupt, task
So, should the type of deviceOutputUsesInterrupts in console_fns struct be changed ?
This libchip serial stuff needs a thorough rewrite for the new Termios
low-level driver interface. All this can be greatly simplified.
http://rtems.org/onlinedocs/doc-current/share/rtems/html/bsp_howto/Console-Driver-Basics.html#Console-Driver-Basics
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel