Merge pull request #1604 from martinbudden/bf_fix_cms_test
Added all virtual functions to test displayport in cms_unittest
This commit is contained in:
commit
837a17bbac
|
@ -52,7 +52,19 @@ static int displayPortTestRelease(displayPort_t *displayPort)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int displayPortTestClear(displayPort_t *displayPort)
|
||||
static int displayPortTestClearScreen(displayPort_t *displayPort)
|
||||
{
|
||||
UNUSED(displayPort);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int displayPortTestDrawScreen(displayPort_t *displayPort)
|
||||
{
|
||||
UNUSED(displayPort);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int displayPortTestScreenSize(const displayPort_t *displayPort)
|
||||
{
|
||||
UNUSED(displayPort);
|
||||
return 0;
|
||||
|
@ -67,6 +79,21 @@ static int displayPortTestWrite(displayPort_t *displayPort, uint8_t x, uint8_t y
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int displayPortTestWriteChar(displayPort_t *displayPort, uint8_t x, uint8_t y, uint8_t c)
|
||||
{
|
||||
UNUSED(displayPort);
|
||||
UNUSED(x);
|
||||
UNUSED(y);
|
||||
UNUSED(c);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool displayPortTestIsTransferInProgress(const displayPort_t *displayPort)
|
||||
{
|
||||
UNUSED(displayPort);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int displayPortTestHeartbeat(displayPort_t *displayPort)
|
||||
{
|
||||
UNUSED(displayPort);
|
||||
|
@ -87,8 +114,11 @@ static uint32_t displayPortTestTxBytesFree(const displayPort_t *displayPort)
|
|||
static const displayPortVTable_t testDisplayPortVTable = {
|
||||
.grab = displayPortTestGrab,
|
||||
.release = displayPortTestRelease,
|
||||
.clearScreen = displayPortTestClear,
|
||||
.clearScreen = displayPortTestClearScreen,
|
||||
.drawScreen = displayPortTestDrawScreen,
|
||||
.write = displayPortTestWrite,
|
||||
.writeChar = displayPortTestWriteChar,
|
||||
.isTransferInProgress = displayPortTestIsTransferInProgress,
|
||||
.heartbeat = displayPortTestHeartbeat,
|
||||
.resync = displayPortTestResync,
|
||||
.txBytesFree = displayPortTestTxBytesFree
|
||||
|
|
Loading…
Reference in New Issue