reporting in hd44780's ConnectionType functions (Thomas Jarosch)
This commit is contained in:
@@ -170,6 +170,9 @@ typedef struct driver_private_data {
|
||||
typedef struct hwDependentFns {
|
||||
// microsec pauses
|
||||
void (*uPause)(PrivateData *p, int usecs);
|
||||
// report and debug helper
|
||||
void (*drv_report)(const int level, const char *format, .../*args*/);
|
||||
void (*drv_debug)(const int level, const char *format, .../*args*/);
|
||||
|
||||
// Senddata to the LCD
|
||||
// dispID - display to send data to (0 = all displays)
|
||||
|
||||
@@ -369,6 +369,8 @@ HD44780_init(Driver *drvthis)
|
||||
}
|
||||
// pre-set local function pointers (may be overridden by local init function)
|
||||
p->hd44780_functions->uPause = uPause;
|
||||
p->hd44780_functions->drv_report = report;
|
||||
p->hd44780_functions->drv_debug = debug;
|
||||
p->hd44780_functions->senddata = NULL;
|
||||
p->hd44780_functions->backlight = NULL;
|
||||
p->hd44780_functions->set_contrast = NULL;
|
||||
|
||||
Reference in New Issue
Block a user