reporting in hd44780's ConnectionType functions (Thomas Jarosch)

This commit is contained in:
marschap
2007-11-01 09:07:20 +00:00
parent 345d47a2fb
commit 5a2a1cc486
4 changed files with 10 additions and 0 deletions
+3
View File
@@ -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)
+2
View File
@@ -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;