Add a flush method to the hardware depended functions. It is called whenever

a sequence of characters or commands have to be terminated (common_init,
position, flush).  Modify the lcd2usb subdriver to implement a small command
buffer and implement flush().
This commit is contained in:
mmdolze
2010-01-23 17:48:00 +00:00
parent 287b933e79
commit c9623a72da
5 changed files with 58 additions and 28 deletions
+5
View File
@@ -216,6 +216,10 @@ typedef struct hwDependentFns {
// ch - character to display or instruction value
void (*senddata)(PrivateData *p, unsigned char dispID, unsigned char flags, unsigned char ch);
// Flush data to the display. To be used by subdrivers that
// queue from senddata internally.
void (*flush)(PrivateData *p);
// Switch the backlight on or off
// state - to be or not to be on
void (*backlight)(PrivateData *p, unsigned char state);
@@ -242,6 +246,7 @@ typedef struct hwDependentFns {
// Close the interface on shutdown
void (*close)(PrivateData *p);
} HD44780_functions; /* for want of a better name :-) */