Board File can now request extra data bytes in the GMouse structure.
This commit is contained in:
parent
527ebbff48
commit
097bce6aa4
@ -15,6 +15,11 @@
|
||||
// Get the hardware interface
|
||||
#include "gmouse_lld_MCU_board.h"
|
||||
|
||||
// If the board file doesn't specify how many extra bytes it wants - assume 0
|
||||
#ifndef BOARD_DATA_SIZE
|
||||
#define BOARD_DATA_SIZE 0
|
||||
#endif
|
||||
|
||||
const GMouseVMT const GMOUSE_DRIVER_VMT[1] = {{
|
||||
{
|
||||
GDRIVER_TYPE_TOUCH,
|
||||
@ -23,7 +28,7 @@ const GMouseVMT const GMOUSE_DRIVER_VMT[1] = {{
|
||||
// Extra flags for testing only
|
||||
//GMOUSE_VFLG_DEFAULTFINGER|GMOUSE_VFLG_CAL_EXTREMES - Possible
|
||||
//GMOUSE_VFLG_NOPOLL|GMOUSE_VFLG_DYNAMICONLY|GMOUSE_VFLG_SELFROTATION|GMOUSE_VFLG_CAL_LOADFREE - unlikely
|
||||
sizeof(GMouse),
|
||||
sizeof(GMouse)+BOARD_DATA_SIZE,
|
||||
_gmouseInitDriver, _gmousePostInitDriver, _gmouseDeInitDriver
|
||||
},
|
||||
Z_MAX, // z_max
|
||||
|
Loading…
Reference in New Issue
Block a user