fremoclock  1_3A01
FREMO Clock - Software for UTG
UserInterfaceCommonData.h File Reference

Subroutines for UserInterfaceCommonData. More...

Go to the source code of this file.

Macros

#define SYSTEM_STATUS_DIRTY   0
 dirty bit, set by init, cleared by shutdown More...
 
#define SYSTEM_STATUS_GOT_DIRTY   1
 got dirty bit fromm eeprom -> no shutdown happend More...
 
#define SYSTEM_STATUS_EEPROM_ERASED   2
 eeprom erased; set default parameter. More...
 
#define SYSTEM_STATUS_ENDTIME   6
 end time active? default 0 More...
 

Functions

uint8_t UserInterfaceCommonDataInit (void)
 Read data from EEPROM and initialize common data. More...
 
void UserInterfaceCommonDataShutDown (void)
 Write common data to EEPROM. More...
 

Detailed Description

Subroutines for UserInterfaceCommonData.

With:

  • functions for init and shutdown

Software:

  • AVR-GCC

Targets:

  • AtMega128 on PROTO_128
  • AtMega48/88/168

History:

  • 070406 First implementation (R 0)
  • 150427 StS: Refactoring, code cleanup, unified layout
Version
$Id: UserInterfaceCommonData.h 159 2016-09-03 06:51:47Z pischky $
Author
Bernd Wisotzki [BA] wsb56.nosp@m.@use.nosp@m.rs.so.nosp@m.urce.nosp@m.forge.nosp@m..net
Date
06-Apr-2007

Definition in file UserInterfaceCommonData.h.

Macro Definition Documentation

#define SYSTEM_STATUS_DIRTY   0

dirty bit, set by init, cleared by shutdown

Definition at line 39 of file UserInterfaceCommonData.h.

#define SYSTEM_STATUS_EEPROM_ERASED   2

eeprom erased; set default parameter.

Definition at line 41 of file UserInterfaceCommonData.h.

#define SYSTEM_STATUS_ENDTIME   6

end time active? default 0

Definition at line 45 of file UserInterfaceCommonData.h.

#define SYSTEM_STATUS_GOT_DIRTY   1

got dirty bit fromm eeprom -> no shutdown happend

Definition at line 40 of file UserInterfaceCommonData.h.

Function Documentation

uint8_t UserInterfaceCommonDataInit ( void  )

Read data from EEPROM and initialize common data.

Returns
ucSystemStatus

Definition at line 67 of file UserInterfaceCommonData.c.

Here is the call graph for this function:

void UserInterfaceCommonDataShutDown ( void  )

Write common data to EEPROM.

Definition at line 142 of file UserInterfaceCommonData.c.

Here is the call graph for this function: