Subversion Repositories Projects

Rev

Rev 758 | Rev 762 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 758 Rev 761
Line 21... Line 21...
21
#include <avr/io.h>
21
#include <avr/io.h>
22
#include <avr/eeprom.h>
22
#include <avr/eeprom.h>
23
#include <avr/pgmspace.h>
23
#include <avr/pgmspace.h>
24
#include <avr/interrupt.h>
24
#include <avr/interrupt.h>
25
#include <util/delay.h>
25
#include <util/delay.h>
26
//#include <avr/delay.h>
-
 
27
#include "max7456_software_spi.h"
26
#include "max7456_software_spi.h"
28
#include "config.h"
27
#include "config.h"
29
#include "main.h"
28
#include "main.h"
30
#include "buttons.h"
29
#include "buttons.h"
31
#include "usart1.h"
30
#include "usart1.h"
Line 81... Line 80...
81
        eeprom_write_byte(&ee_COSD_FLAGS_MODES, COSD_FLAGS_MODES);
80
    eeprom_write_byte(&ee_COSD_FLAGS_MODES, COSD_FLAGS_MODES);
82
        eeprom_write_byte(&ee_COSD_FLAGS_CONFIG, COSD_FLAGS_CONFIG);
81
    eeprom_write_byte(&ee_COSD_FLAGS_CONFIG, COSD_FLAGS_CONFIG);
83
        eeprom_write_byte(&ee_COSD_DISPLAYMODE, COSD_DISPLAYMODE);
82
    eeprom_write_byte(&ee_COSD_DISPLAYMODE, COSD_DISPLAYMODE);
84
}
83
}
Line 85... Line -...
85
 
-
 
86
 
84
 
87
/**
85
/**
88
 * auto config some stuff on startup, currently only battery cells
86
 * auto config some stuff on startup, currently only battery cells
89
 */
87
 */
90
void init_cosd(uint8_t UBat) {
88
void init_cosd(uint8_t UBat) {
Line 185... Line 183...
185
        } else {
183
    } else {
186
                write_ascii_string_pgm(col, line, PSTR("OFF"));
184
        write_ascii_string_pgm(col, line, PSTR("OFF"));
187
        }
185
    }
188
}
186
}
Line 189... Line -...
189
 
-
 
190
 
187
 
191
/**
188
/**
192
 * helper function for menu updating
189
 * helper function for menu updating
193
 */
190
 */
194
void config_menu_drawings(uint8_t chosen) {
191
void config_menu_drawings(uint8_t chosen) {