diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-10-12 00:55:32 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-10-12 00:55:32 +1000 |
commit | 097bce6aa4df5f4bacef3976cd7b7fab26a72c4a (patch) | |
tree | 6c416244cad187905cbb81b8962406b7d2fc6152 | |
parent | 527ebbff48f6bc16bd5433b9ca6d0d6294138aca (diff) | |
download | uGFX-097bce6aa4df5f4bacef3976cd7b7fab26a72c4a.tar.gz uGFX-097bce6aa4df5f4bacef3976cd7b7fab26a72c4a.tar.bz2 uGFX-097bce6aa4df5f4bacef3976cd7b7fab26a72c4a.zip |
Board File can now request extra data bytes in the GMouse structure.
-rw-r--r-- | drivers/ginput/touch/MCU/gmouse_lld_MCU.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/ginput/touch/MCU/gmouse_lld_MCU.c b/drivers/ginput/touch/MCU/gmouse_lld_MCU.c index 87b39ae4..222b759b 100644 --- a/drivers/ginput/touch/MCU/gmouse_lld_MCU.c +++ b/drivers/ginput/touch/MCU/gmouse_lld_MCU.c @@ -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 |