pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
359 B
24 lines
359 B
16 years ago
|
/**
|
||
|
* \file persistentCounter.h
|
||
|
* \author Daniel Otte
|
||
|
* \brief a persistent 24-bit vounter in EEPROM for ATmega µC
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef PERSISTENTCOUNTER_H_
|
||
|
#define PERSISTENTCOUNTER_H_
|
||
|
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define PERSISTENT_COUNTER_BITS 24
|
||
|
|
||
|
void percnt_init(void);
|
||
|
uint32_t percnt_get(void);
|
||
|
void percnt_inc(void);
|
||
|
|
||
|
|
||
|
|
||
|
#endif /*PERSISTENTCOUNTER_H_*/
|