Should the type of deviceOutputUsesInterrupts in console_fns struct be changed ?

Tom ventureg at 163.com
Wed Jul 30 01:27:40 UTC 2014


 
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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140730/e33c9b07/attachment.html>


More information about the devel mailing list