1

add pit indicator

This commit is contained in:
2022-07-04 17:07:09 +02:00
parent 42a1d719ee
commit 16f814bfcf
4 changed files with 33 additions and 2 deletions

View File

@ -16,12 +16,15 @@
class PIT : public ISR {
private:
PIT(const PIT &copy); // Verhindere Kopieren
PIT(const PIT &copy) = delete; // Verhindere Kopieren
private:
enum { time_base = 838 }; /* ns */
int timer_interval;
char indicator[4] = {'|', '/', '-', '\\'};
unsigned int indicator_pos = 0;
unsigned long last_indicator_refresh = 0;
public:
// Zeitgeber initialisieren.
PIT (int us) {