Fixed a display error
display has now a refresh timer to totally refresh the display contents (to prevent EMC issues) Fixed PCBA names git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@229 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -68,6 +68,9 @@ struct Display
|
||||
SemaphoreHandle_t displayShadowAccessSemaphore;
|
||||
struct DisplayCharacter displayShadow[DISPLAY_MAX_ROWS][DISPLAY_MAX_COLUMNS];
|
||||
int maxCharactersPerTransmit;
|
||||
int refreshFeedCounter;
|
||||
int refreshFeedFrequency_ms;
|
||||
int refreshPeriod_ms;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -94,7 +97,7 @@ struct Display
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern ErrorStatus Display_construct(struct Display* self, struct DisplayDevice* displayDevice, int TaskPriority, uint16_t stackSize, int maxCharactersPerTransmit);
|
||||
extern ErrorStatus Display_construct(struct Display* self, struct DisplayDevice* displayDevice, int TaskPriority, uint16_t stackSize, int maxCharactersPerTransmit, int refreshFeedFrequency_ms, int refreshPeriod);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
@@ -197,4 +200,19 @@ extern ErrorStatus Display_setContrast(struct Display* self, size_t contrast);
|
||||
*/
|
||||
extern ErrorStatus Display_write(struct Display* self, const char* buffer, unsigned int length, size_t row, size_t column);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* Display_feedRefreshCounter
|
||||
* Feeds the refresh counter for display content
|
||||
* Must be called regulary. Count rhythm and limits are defined in self
|
||||
*
|
||||
* @param self The display instance
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void Display_feedRefreshCounter(struct Display* self);
|
||||
|
||||
#endif /* DISPLAY_H_ */
|
||||
|
||||
Reference in New Issue
Block a user