Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2248 | - | 1 | /***************************************************************************************************************************** |
2 | * File: eeprom.h |
||
3 | * Purpose: header of eeprom.c |
||
4 | *****************************************************************************************************************************/ |
||
5 | #ifndef _EEPROM_H |
||
6 | #define _EEPROM_H |
||
7 | |||
8 | #define EE_DATENREVISION 80 // Parameter fürs Koptertool; entspricht den EEPROM-Daten von FlightCtrl Version V0.76g |
||
9 | #define MIXER_REVISION 1 // wird angepasst, wenn sich die Mixer-Daten geändert haben |
||
10 | |||
11 | #define EEPROM_ADR_VALID 1 // für EEPROM Datenrevision = 80 bei V0.76g |
||
12 | #define EEPROM_ADR_ACTIVE_SET 2 // für den aktiven Parametersatz 3=Beginner 2=Normal 1=Sport |
||
13 | #define EEPROM_ADR_LAST_OFFSET 3 // Luftdruck Offset siehe analog.c Zeile 44 |
||
14 | #define EEPROM_ADR_ACC_NICK 4 |
||
15 | #define EEPROM_ADR_ACC_ROLL 6 |
||
16 | #define EEPROM_ADR_ACC_Z 8 |
||
17 | #define EEPROM_ADR_MINUTES 10 // FlugMinuten Gesamt über alle Flüge |
||
18 | #define EEPROM_ADR_MINUTES2 14 // FlugMinuten Einzelflug |
||
19 | #define EEPROM_ADR_CHANNELS 80 // Ablageadresse der Kanäle |
||
20 | #define EEPROM_ADR_PARAM_LENGTH 98 // Länge des structs mk_param_struct verwendet für EE_Parameter = 101 |
||
21 | #define EEPROM_ADR_PARAM_BEGIN 100 // Startadresse der Abbilder vom struct mk_param_struct also EE_Parameter |
||
22 | #define EEPROM_ADR_MIXER_TABLE 1000 // 1001 - 1100 |
||
23 | |||
24 | #ifndef EEMEM |
||
25 | #define EEMEM __attribute__ ((section (".eeprom"))) |
||
26 | #endif |
||
27 | |||
28 | //----------------------------------------------------------------------------------------------------------------------------------- |
||
29 | extern unsigned char EEPromArray[]; |
||
30 | |||
31 | |||
32 | //----------------------------------------- declaration of functions -------------------------- |
||
33 | void ReadParameterSet (unsigned char number, unsigned char *buffer, unsigned char length); |
||
34 | void WriteParameterSet(unsigned char number, unsigned char *buffer, unsigned char length); |
||
35 | extern unsigned char GetActiveParamSetNumber(void); |
||
36 | void SetActiveParamSetNumber(unsigned char number); |
||
37 | |||
38 | #endif |
||
39 | //*** EOF: __EEPROM_H *********************************************************************************************************** |