Subversion Repositories NaviCtrl

Rev

Rev 927 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
41 ingob 1
#ifndef _UART1_H
2
#define _UART1_H
3
 
4
#define UART_FLIGHTCTRL 0
5
#define UART_MK3MAG     1
6
#define UART_MKGPS      2
7
 
92 killagreg 8
#include "ubx.h"
495 killagreg 9
#include "waypoints.h"
41 ingob 10
 
256 killagreg 11
#define NC_ERROR0_SPI_RX                                0x01
12
#define NC_ERROR0_COMPASS_RX                    0x02
13
#define NC_ERROR0_FC_INCOMPATIBLE               0x04
14
#define NC_ERROR0_COMPASS_INCOMPATIBLE  0x08
15
#define NC_ERROR0_GPS_RX                                0x10
16
#define NC_ERROR0_COMPASS_VALUE                 0x20
156 killagreg 17
 
675 holgerb 18
#define DISABLE_FC_UART GPIO_WriteBit(GPIO3, GPIO_Pin_7, Bit_SET);
19
#define  ENABLE_FC_UART GPIO_WriteBit(GPIO3, GPIO_Pin_7, Bit_RESET);
848 holgerb 20
extern u32 Uart1Baudrate;
675 holgerb 21
 
848 holgerb 22
#define MAX_BD_RATES 11
819 holgerb 23
extern const u32 BAUDRATES[MAX_BD_RATES];
927 holgerb 24
extern u8 FromKopterToolFlags[7];
25
#define FLAG_ALTIMETER_M                                0x01
819 holgerb 26
 
62 killagreg 27
typedef struct
92 killagreg 28
{
112 killagreg 29
        u8 SWMajor;
30
        u8 SWMinor;
31
        u8 ProtoMajor;
598 holgerb 32
        u8 LabelTextCRC;
112 killagreg 33
        u8 SWPatch;
454 holgerb 34
    u8 HardwareError[2];
35
    u8 HWMajor;
548 holgerb 36
    u8 BL_Firmware;  
454 holgerb 37
    u8 Flags;
161 killagreg 38
} __attribute__((packed)) UART_VersionInfo_t;
112 killagreg 39
 
40
extern UART_VersionInfo_t UART_VersionInfo;
41
 
454 holgerb 42
//VersionInfo.Flags
43
#define NC_VERSION_FLAG_MK3MAG_PRESENT      0x01
44
#define NC_VERSION_FLAG_GPS_PRESENT             0x02
45
 
112 killagreg 46
typedef struct
47
{
161 killagreg 48
        s16 AngleNick;  // in 0.1 deg
49
        s16 AngleRoll;   // in 0.1 deg
50
        s16 Heading;    // in 0.1 deg
358 holgerb 51
    u8 StickNick;
52
    u8 StickRoll;
53
    u8 StickYaw;
54
    u8 StickGas;
739 holgerb 55
        s16 Altimeter_5cm; // in 5cm -> devide by 20 to get meters & multiply with 5 to get cm
588 holgerb 56
        u8 reserve[2];
61 holgerb 57
} __attribute__((packed)) Data3D_t;
58
 
59
extern Data3D_t Data3D;
60
 
112 killagreg 61
 
62
extern const u8 ANALOG_LABEL[32][16];
63
 
338 holgerb 64
#define AMPEL_FC                0x01
65
#define AMPEL_BL                0x02
66
#define AMPEL_NC                0x04
67
#define AMPEL_COMPASS   0x08
68
 
41 ingob 69
typedef struct
70
{
338 holgerb 71
        u8 StatusGreen;
72
        u8 StatusRed;
41 ingob 73
        u16 Analog[32];    // Debugwerte
74
} __attribute__((packed)) DebugOut_t;
75
 
76
extern DebugOut_t DebugOut;
77
 
682 holgerb 78
/*
41 ingob 79
typedef struct
80
{
81
        u8      Digital[2];
82
        u8      RemoteButtons;
83
        s8      Nick;
84
        s8      Roll;
85
        s8      Yaw;
86
        u8      Gas;
87
        s8      Height;
88
        u8      free;
89
        u8      Frame;
90
        u8      Config;
91
} __attribute__((packed)) ExternControl_t;
682 holgerb 92
*/
41 ingob 93
 
824 holgerb 94
#define EC_VALID                                0x01 // only valid if this is 1
95
#define EC_GAS_ADD                              0x02 // if 1 -> use the GAS Value not as MAX
96
#define EC_ONLY_IF_MOTOR_OFF    0x10 // use these Stick Positions only if the motors are not running -> Claibrate etc.
97
#define EC_USE_SWITCH                   0x20 // if 1 -> use the Switches for further control
98
#define EC_IGNORE_RC_STICK              0x40 // direct control (do nor add to RC-Stick)
99
#define EC_IGNORE_RC_LOST               0x80 // if 1 -> for Flying without RC-Control 
682 holgerb 100
 
689 holgerb 101
// defines for ExternalControl.Switches -> control GPS Modes etc. if(Config & EC_USE_SWITCH)
102
#define EC2_PH                          0x01 // GPS-Mode: PH
103
#define EC2_CH                          0x02 // GPS-Mode: CH
104
#define EC2_CAREFREE            0x10 // 
105
#define EC2_ALTITUDE            0x20 // 
106
#define EC2_AUTOSTART           0x40 // 
107
#define EC2_AUTOLAND            0x80 // 
108
 
682 holgerb 109
typedef struct
110
{
689 holgerb 111
 signed char Nick;
112
 signed char Roll;
113
 signed char Gier;
114
 signed char Gas;
115
 unsigned char Frame; // will return a confirm frame with this value
682 holgerb 116
 unsigned char Config;
689 holgerb 117
 unsigned char Switches;
118
 unsigned char Free1; // these two don't need capacity in the ASCII data string
119
 unsigned char Free2;
682 holgerb 120
} __attribute__((packed)) ExternControl_t;
41 ingob 121
extern ExternControl_t ExternControl;
689 holgerb 122
extern u8 NewExternalControlFrame; // flag that sends the Frame to FC
865 holgerb 123
extern u8 FromFC_ExternalCtrlCfg,FromFC_ExternalCtrlSwitch; // answer from FC
41 ingob 124
 
689 holgerb 125
#define SERIAL_POTI_START 17
126
#define WP_EVENT_PPM_IN   29
127
#define PPM_IN_OFF        30
128
#define PPM_IN_MAX        31
129
#define PPM_IN_MID        32
41 ingob 130
typedef struct
131
{
689 holgerb 132
 signed char   Ch[12];
133
} __attribute__((packed)) SerialChannel_t;
134
extern SerialChannel_t SerialChannel;
135
extern u8 NewSerialChannelFrame; // flag that sends the Frame to FC
136
 
137
typedef struct
138
{
41 ingob 139
        s16 Nick;
140
        s16 Roll;
141
        s16 Compass;                                    // angle between north and head of the MK
161 killagreg 142
} __attribute__((packed)) Attitude_t;
41 ingob 143
 
494 killagreg 144
 
145
typedef struct
146
{
737 holgerb 147
        u16 Distance_dm;                                        // distance to target in dm
92 killagreg 148
        s16 Bearing;                                    // course to target in deg
161 killagreg 149
} __attribute__((packed)) GPS_PosDev_t;
41 ingob 150
 
294 holgerb 151
#define NAVIDATA_VERSION 5
89 killagreg 152
 
789 holgerb 153
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
154
//+ old protocol
155
//+ start abbo communication with: 'O' + Interval [10ms] 
156
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
157
typedef struct   // 84 Bytes    (note: this is the old protocol)
41 ingob 158
{
768 holgerb 159
        u8 Version;                                             // version of the data structure = 5 
491 killagreg 160
        GPS_Pos_t CurrentPosition;              // see gpspos.h for details
41 ingob 161
        GPS_Pos_t TargetPosition;
162
        GPS_PosDev_t TargetPositionDeviation;
163
        GPS_Pos_t HomePosition;
164
        GPS_PosDev_t HomePositionDeviation;
165
        u8  WaypointIndex;                              // index of current waypoints running from 0 to WaypointNumber-1
166
        u8  WaypointNumber;                             // number of stored waypoints
89 killagreg 167
        u8  SatsInUse;                                  // number of satellites used for position solution
739 holgerb 168
        s16 Altimeter_5cm;                              // hight according to air pressure
41 ingob 169
        s16 Variometer;                                 // climb(+) and sink(-) rate
170
        u16 FlyingTime;                                 // in seconds
171
        u8  UBat;                                               // Battery Voltage in 0.1 Volts
172
        u16 GroundSpeed;                                // speed over ground in cm/s (2D)
89 killagreg 173
        s16 Heading;                                    // current flight direction in ° as angle to north
174
        s16     CompassHeading;                         // current compass value in °
41 ingob 175
        s8  AngleNick;                                  // current Nick angle in 1°
176
        s8  AngleRoll;                                  // current Rick angle in 1°
177
        u8  RC_Quality;                                 // RC_Quality
789 holgerb 178
        u8  FCStatusFlags;                              // Flags from FC see main.c FC_STATUS_xxx
179
        u8  NCFlags;                                    // Flags from NC see main.h NC_FLAG_xxx
41 ingob 180
        u8  Errorcode;                                  // 0 --> okay
532 holgerb 181
        u8  WP_OperatingRadius;                 // current WP operation radius around the Home Position in m
89 killagreg 182
        s16 TopSpeed;                                   // velocity in vertical direction in cm/s
125 killagreg 183
        u8  TargetHoldTime;                             // time in s to stay at the given target, counts down to 0 if target has been reached
294 holgerb 184
        u8  FCStatusFlags2;                             // StatusFlags2 (since version 5 added)
924 holgerb 185
        s16 SetpointAltitude_5cm;               // setpoint for altitude
789 holgerb 186
        u8  Gas;                                                // current gas (thrust)
206 killagreg 187
        u16 Current;                                    // actual current in 0.1A steps
188
        u16 UsedCapacity;                               // used capacity in mAh
768 holgerb 189
        u8 reserve1;                                    // to fit into 84 bytes (must be divisible by 3) 
190
        u8 reserve2;                                    // to fit into 84 bytes (must be divisible by 3)
41 ingob 191
} __attribute__((packed)) NaviData_t;
192
extern NaviData_t NaviData;
193
 
789 holgerb 194
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
195
//+ New protocol
196
//+ start abbo communication with: 'O' + Interval 1byte [10ms] + MaxBytesPerSecond (2Bytes)
197
//+ i.e. 'O'+10+1024
198
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
199
 
824 holgerb 200
typedef struct // Index:10 (15 Bytes need 27 ASCII-characters) -> 7+(x/3)*4
598 holgerb 201
{
789 holgerb 202
        u8 Index;                               // Index to identify this data set
203
        s32 ActualLongitude;    // 
204
        s32 ActualLatitude;             // 
927 holgerb 205
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 206
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
207
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
208
        u8 CamCtrlChar;                 // Status from a connected CamCtrl unit: 'R' = REC  'c' = Ready  '!' = Error  ...etc
209
u8 reserve1;                     
598 holgerb 210
} __attribute__((packed)) NaviData_Tiny_t;
211
extern NaviData_Tiny_t NaviData_Tiny;
212
 
213
#define START_PAYLOAD_DATA  13  // 
214
 
789 holgerb 215
typedef struct  // Index:11 (24 Bytes need 39 ASCII-characters)
598 holgerb 216
{
789 holgerb 217
        u8 Index;                               // Index to identify this data set
218
        s32 ActualLongitude;    // 
219
        s32 ActualLatitude;             // 
927 holgerb 220
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 221
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
222
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
223
        u8 OSDStatusFlags2;             // see main.h for definitions OSD_FLAG2_xxx
224
        u8  NCFlags;                    // Flags from NC
225
u8 ReserveFlags;
226
        u8  Errorcode;                  // 0 --> okay  see http://wiki.mikrokopter.de/ErrorCodes
227
        u8 SpeakHoTT;                   // voice output SPEAK_xxx (see spi_slave.h)
228
        u8 VarioCharacter;              // display as ascii character ('+' = 'climb' etc)
229
        u8 GPS_ModeCharacter;   // display as ascii character ('H' = 'Home' etc)
230
        u8 BL_MinOfMaxPWM;              // status byte of the BL-Ctrls
598 holgerb 231
} __attribute__((packed)) NaviData_Flags_t;
232
extern NaviData_Flags_t NaviData_Flags;
233
 
789 holgerb 234
typedef struct  // Index:12  (27 Bytes need 43 ASCII-characters)
598 holgerb 235
{
789 holgerb 236
        u8 Index;                               // Index to identify this data set
237
        s32 ActualLongitude;    // 
238
        s32 ActualLatitude;             // 
927 holgerb 239
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 240
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
241
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
242
        s32 TargetLongitude;    // 
243
        s32 TargetLatitude;             // 
244
        s16 TargetAltitude;     // hight according to air pressure
245
        u8  RC_Quality;                 // RC_Quality
598 holgerb 246
} __attribute__((packed)) NaviData_Target_t;
247
extern NaviData_Target_t NaviData_Target;
248
 
789 holgerb 249
typedef struct  // Index:13  (30 Bytes need 47 ASCII-characters)
250
{                                          
251
        u8 Index;                               // Index to identify this data set
252
        s32 ActualLongitude;    // 
253
        s32 ActualLatitude;             // 
927 holgerb 254
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 255
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
256
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
257
        s32 HomeLongitude;              // 
258
        s32 HomeLatitude;               // 
259
        s16 HomeAltitude;               // hight according to air pressure
260
        u16 WP_OperatingRadius; // current WP operation radius around the Home Position in m
598 holgerb 261
        u8 LipoCellCount;
789 holgerb 262
        u8 DescendRange;                // in [10m]
263
        u8 ManualFlyingRange;   // in [10m]
807 holgerb 264
        u8 OSDStatusFlags3;
622 holgerb 265
u8 reserve1;
598 holgerb 266
} __attribute__((packed)) NaviData_Home_t;
267
extern NaviData_Home_t NaviData_Home;
268
 
789 holgerb 269
typedef struct   // Index:14    (24 Bytes need 39 ASCII-characters)
600 holgerb 270
{
789 holgerb 271
        u8 Index;                               // Index to identify this data set
272
        s32 ActualLongitude;    // 
273
        s32 ActualLatitude;             // 
927 holgerb 274
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 275
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
276
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
277
        u16 FlyingTime;                 // in seconds
278
        u16 DistanceToHome;             // [10cm] (100 = 10m)
279
        u8  HeadingToHome;              // in 2° (100 = 200°)
280
        u16 DistanceToTarget;   // [10cm] (100 = 10m)   
281
        u8  HeadingToTarget;    // in 2° (100 = 200°)
282
        s8  AngleNick;                  // current Nick angle in 1°
283
        s8  AngleRoll;                  // current Rick angle in 1°
284
        u8  SatsInUse;                  // number of satellites used for position solution
285
} __attribute__((packed)) NaviData_Deviation_t;
286
extern NaviData_Deviation_t NaviData_Deviation;
600 holgerb 287
 
789 holgerb 288
typedef struct // Index:15 (18 Bytes need 31 ASCII-characters)
621 holgerb 289
{
789 holgerb 290
        u8 Index;                               // Index to identify this data set
291
        s32 ActualLongitude;    // 
292
        s32 ActualLatitude;             // 
927 holgerb 293
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 294
        u8  GroundSpeed;                // speed over ground in 10cm/s (2D) (255 = 91km/h)
295
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
296
        u8  WaypointIndex;              // index of current waypoints running from 0 to WaypointNumber-1
297
        u8  WaypointNumber;             // number of stored waypoints
298
        u8  TargetHoldTime;             // time in s to stay at the given target, counts down to 0 if target has been reached
299
        u8 WP_Eventchannel;             // the current value of the event channel
598 holgerb 300
u8 reserve;
301
} __attribute__((packed)) NaviData_WP_t;
302
extern NaviData_WP_t NaviData_WP;
303
 
789 holgerb 304
typedef struct // Index:16  (27 Bytes need 43 ASCII-characters)
598 holgerb 305
{
789 holgerb 306
        u8 Index;                               // Index to identify this data set
307
        s32 ActualLongitude;    // 
308
        s32 ActualLatitude;             // 
927 holgerb 309
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 310
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
311
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
312
        u16 UBat;                               // Battery Voltage in 0.1 Volts
313
        u16 Current;                    // actual current in 0.1A steps
314
        u16 UsedCapacity;               // used capacity in mAh
315
        s8  Variometer;                 // climb(+) and sink(-) rate
316
        u8  Heading;                    // Current moving direction in 2° (100 = 200°)
317
        u8      CompassHeading;         // current compass value in 2°
318
        u8  Gas;                                // current gas (thrust)
319
        u16 ShutterCounter;             // counts every time a Out1 was activated
320
        s16 SetpointAltitude;   // setpoint for altitude
598 holgerb 321
} __attribute__((packed)) NaviData_Volatile_t;
322
extern NaviData_Volatile_t NaviData_Volatile;
323
 
324
 
789 holgerb 325
typedef struct  // Index:17  (21 Bytes need 35 ASCII-characters)
326
{
327
        u8 Index;                               // Index to identify this data set
328
        s32 ActualLongitude;    // 
329
        s32 ActualLatitude;             // 
927 holgerb 330
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
789 holgerb 331
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
332
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
333
        s32 Longitude;                  // Failsafe-Position
334
        s32 Latitude;                   // Failsafe-Position
335
} __attribute__((packed)) NaviData_FS_Pos_t;
336
extern NaviData_FS_Pos_t NaviData_Failsafe;
598 holgerb 337
 
789 holgerb 338
typedef struct // Index:18  (9 Bytes need 19 ASCII-characters)
339
{
340
        u8 Index;                               // Index to identify this data set
341
        s32 Longitude;                  // Trigger Position
342
        s32 Latitude;                   // Trigger Position
343
} __attribute__((packed)) NaviData_Out_t;
344
extern NaviData_Out_t NaviData_Out1Trigger;
598 holgerb 345
 
346
 
824 holgerb 347
typedef struct  // Index:19  (36 Bytes need 55 ASCII-characters) -> 7+(x/3)*4
348
{
349
        u8 Index;                               // Index to identify this data set
350
        s32 ActualLongitude;    // 
351
        s32 ActualLatitude;             // 
927 holgerb 352
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
824 holgerb 353
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
354
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
355
        u8 HoTT_DisplayText[21];
830 holgerb 356
        u8 HoTT_TextLevel;          // Level of the Message: 0 = Nothing special; 1 = OEM-Name ;  2 = Waypoint Data ; 3 = Simulation ; 4 = "Calibrate"  ; 5 = "Load&Safe" ; 6 = "Setting name"  ; 7-10 = Error
843 holgerb 357
        u8 MagnetField;                 // 100% = okay
824 holgerb 358
} __attribute__((packed)) NaviData_HoTT_Text_t;
359
extern NaviData_HoTT_Text_t NaviData_HoTT_Text;
360
 
852 holgerb 361
typedef struct // Index:20 (15 Bytes need 27 ASCII-characters) -> 7+(x/3)*4      -> sending only if LaserCtrl is connected
362
{
363
        u8 Index;                               // Index to identify this data set
364
        s32 ActualLongitude;    // 
365
        s32 ActualLatitude;             // 
927 holgerb 366
        s16 Altimeter_5cm_or_m; // hight -> devide by 20 to get meters & multiply with 5 to get cm or in meters in the new protocol
852 holgerb 367
        u8 GroundSpeed;                 // speed over ground in 10cm/s (2D) (255 = 91km/h)
368
        u8 OSDStatusFlags;              // see main.h for definitions OSD_FLAG_xxx
369
        u16 Distance;
370
} __attribute__((packed)) NaviData_Laser_t;
371
extern NaviData_Laser_t NaviData_Laser;
372
 
373
typedef struct
374
{
375
 u8 ComingHomeAltitude;
376
 u8 FailsafeAltitude;
377
 u8 TriggerMask;                        // Trigger Bitmask
378
 u8 Flags;                              // 0x01  = Ignore RC lost (Lizenz feature!) -  default aus
379
 u8 reserved[32];
380
} __attribute__((packed)) WP_MissionParameter_t;
381
extern WP_MissionParameter_t WP_MissionParameter;
382
 
383
#define MISSION_IGNORE_RC_LOST          0x01
384
#define MISSION_TRIGGER_DELAY           0x02
385
 
871 holgerb 386
#define MISSION_DATA_RECEIVED           0x80    // wird bei Empfang auf Eins gesetzt
852 holgerb 387
 
871 holgerb 388
 
852 holgerb 389
/*
390
NaviMaxFlyingRange
391
NaviDescendRange
392
FailSafeTime -> ignore RC-Lost
393
AutoPhotoAtitudes
394
FailSafeAltitude -> Bei Punkt?
395
J16Bitmask
396
*/
397
 
41 ingob 398
extern UART_TypeDef *DebugUART;
92 killagreg 399
extern volatile u8 SerialLinkOkay;
349 ingob 400
extern Buffer_t UART1_tx_buffer;
380 holgerb 401
extern Buffer_t UART1_rx_buffer;
773 holgerb 402
extern u16 UART1_BaudrateFallbackTimeout;
41 ingob 403
 
404
void UART1_Init(void);
405
void UART1_Transmit(void);
406
void UART1_TransmitTxData(void);
407
void UART1_ProcessRxData(void);
408
 
110 killagreg 409
s16  UART1_Putchar(char c);
410
void UART1_PutString(u8 *s);
150 killagreg 411
extern u8 text[]; // globally used text buffer
110 killagreg 412
extern u8 UART1_Request_SendFollowMe;
360 holgerb 413
extern u8 LastTransmittedFCStatusFlags2;
519 holgerb 414
extern u8 UART1_Request_ReadPoint;
495 killagreg 415
extern WPL_Store_t WPL_Store;
598 holgerb 416
extern u8 CalculateDebugLableCrc(void);
626 holgerb 417
extern u8 NaviData_Flags_SpeakHoTT_Processed;
904 holgerb 418
extern u8 FTP_Mode;                                             // PC initiates FTP-Mode
532 holgerb 419
 
772 ingob 420
extern void UART1_Configure(u32 baudrate);
819 holgerb 421
extern void GetBaudrateFromSdCard(u32 oldBd);
772 ingob 422
 
532 holgerb 423
typedef struct
424
{
425
        u8 User[128];
426
        u8 eMail[128];
427
        u8 Feature[128];
428
        u8 Expire[11];
429
        u8 License[16];
763 holgerb 430
} __attribute__((packed)) LicenseS_t;
529 holgerb 431
extern u8 *LicensePtr;
495 killagreg 432
 
460 holgerb 433
extern u32 NMEA_Interval;// in ms
529 holgerb 434
#define LICENSE_SIZE            480
435
#define LICENSE_SIZE_TEXT       411
460 holgerb 436
 
41 ingob 437
#endif //_UART1_H