Commit for SWO for HW validation menu updates
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@245 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
|
||||
#include "DisplayDevice.h"
|
||||
|
||||
#include "Logger.h"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Constant and macro definitions
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -78,6 +80,8 @@ ErrorStatus DisplayDevice_construct (struct DisplayDevice* self, struct DisplayD
|
||||
self->_setContrast = setContrast;
|
||||
self->_invert = invert;
|
||||
|
||||
self->initialized = true;
|
||||
|
||||
self->parameters = *parameters;
|
||||
}
|
||||
else
|
||||
@@ -91,7 +95,7 @@ ErrorStatus DisplayDevice_construct (struct DisplayDevice* self, struct DisplayD
|
||||
ErrorStatus DisplayDevice_reset(const struct DisplayDevice* self)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_reset != NULL)
|
||||
{
|
||||
@@ -109,7 +113,7 @@ ErrorStatus DisplayDevice_reset(const struct DisplayDevice* self)
|
||||
ErrorStatus DisplayDevice_setState(const struct DisplayDevice* self, DisplayDevice_functionalState state)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_setState != NULL)
|
||||
{
|
||||
@@ -127,7 +131,7 @@ ErrorStatus DisplayDevice_setState(const struct DisplayDevice* self, DisplayDevi
|
||||
ErrorStatus DisplayDevice_write(const struct DisplayDevice* self, const char* buffer, size_t length, size_t row, size_t column)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_write != NULL)
|
||||
{
|
||||
@@ -145,7 +149,7 @@ ErrorStatus DisplayDevice_write(const struct DisplayDevice* self, const char* bu
|
||||
ErrorStatus DisplayDevice_clear(const struct DisplayDevice* self)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_clear != NULL)
|
||||
{
|
||||
@@ -163,7 +167,7 @@ ErrorStatus DisplayDevice_clear(const struct DisplayDevice* self)
|
||||
ErrorStatus DisplayDevice_clearLine(const struct DisplayDevice* self, size_t row)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_clearLine != NULL)
|
||||
{
|
||||
@@ -181,7 +185,7 @@ ErrorStatus DisplayDevice_clearLine(const struct DisplayDevice* self, size_t row
|
||||
ErrorStatus DisplayDevice_setBrightness(const struct DisplayDevice* self, size_t brightness)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_setBrightness != NULL)
|
||||
{
|
||||
@@ -199,7 +203,7 @@ ErrorStatus DisplayDevice_setBrightness(const struct DisplayDevice* self, size_t
|
||||
ErrorStatus DisplayDevice_setContrast(const struct DisplayDevice* self, size_t contrast)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_setContrast != NULL)
|
||||
{
|
||||
@@ -217,7 +221,7 @@ ErrorStatus DisplayDevice_setContrast(const struct DisplayDevice* self, size_t c
|
||||
ErrorStatus DisplayDevice_invert(const struct DisplayDevice* self)
|
||||
{
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (!self->initialized)
|
||||
if (self->initialized)
|
||||
{
|
||||
if (self->_invert != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user