Rev 465 | Rev 495 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 465 | Rev 471 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | 58 | ||
59 | // ### read datasheet before changing stuff below this line :) |
59 | // ### read datasheet before changing stuff below this line :) |
Line 60... | Line 60... | ||
60 | #define BLINK 0b01001111 // attribute byte for blinking chars |
60 | #define BLINK 0b01001111 // attribute byte for blinking chars |
61 | 61 | ||
62 | /* ########################################################################## |
62 | /* ########################################################################## |
63 | * FLAGS usable during runtime |
63 | * FLAGS usable during runtime that get saved |
64 | * ##########################################################################*/ |
64 | * ##########################################################################*/ |
65 | #define COSD_FLAG_NTSC 1 |
65 | #define COSD_FLAG_NTSC 1 |
66 | #define COSD_FLAG_HUD 2 |
66 | #define COSD_FLAG_HUD 2 |
67 | #define COSD_FLAG_ARTHORIZON 4 |
67 | #define COSD_FLAG_ARTHORIZON 4 |
68 | #define COSD_FLAG_BIGVARIO 8 |
68 | #define COSD_FLAG_BIGVARIO 8 |
69 | #define COSD_FLAG_STATS 16 |
- | |
70 | #define COSD_FLAG_WARNINGS 32 |
- | |
Line -... | Line 69... | ||
- | 69 | #define COSD_FLAG_STATS 16 |
|
- | 70 | #define COSD_FLAG_WARNINGS 32 |
|
- | 71 | ||
71 | #define COSD_ICONS_WRITTEN 64 |
72 | /* ########################################################################## |
- | 73 | * FLAGS only usable during runtime (not saved) |
|
- | 74 | * ##########################################################################*/ |
|
Line 72... | Line 75... | ||
72 | #define COSD_WASFLYING 128 |
75 | #define COSD_FLAG_STROMREC 1 |
73 | 76 | #define COSD_ICONS_WRITTEN 2 |
|
74 | #define COSD_FLAG_STROMREC 1 |
77 | #define COSD_WASFLYING 4 |
75 | 78 | ||
Line 89... | Line 92... | ||
89 | * switch controll |
92 | * switch controll |
90 | * ##########################################################################*/ |
93 | * ##########################################################################*/ |
91 | #define S1_PRESSED !(PINC & (1<<PC5)) |
94 | #define S1_PRESSED !(PINC & (1<<PC5)) |
92 | #define S2_PRESSED !(PINC & (1<<PC4)) |
95 | #define S2_PRESSED !(PINC & (1<<PC4)) |
Line -... | Line 96... | ||
- | 96 | ||
- | 97 | /* ########################################################################## |
|
- | 98 | * extern spi controlled vars |
|
- | 99 | * ##########################################################################*/ |
|
- | 100 | extern volatile uint16_t icnt; |
|
- | 101 | extern volatile unsigned char * iptr; |
|
- | 102 | extern volatile unsigned char spi_cmd_buffer[]; |
|
- | 103 | extern volatile uint8_t spi_ready; |
|
- | 104 | extern int16_t ampere, max_ampere; |
|
- | 105 | extern int32_t ampere_wasted; |