Subversion Repositories NaviCtrl

Rev

Rev 141 | Rev 144 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
136 killagreg 1
#ifndef _CONFIG_H
2
#define _CONFIG_H
3
 
4
// Configure the interrupt priority  at a level from 0 to 15 (0 is highest priority)
142 killagreg 5
// for each interrupot vector (VIC0 and VIC1)
136 killagreg 6
 
142 killagreg 7
// Vector 0     higher priority than vector 1
8
#define PRIORITY_TIMER1 8       // VIC0.5: system time
9
#define PRIORITY_TIMER2 7       // VIC0.6: servo pwm, must be disabled on UART redirection
10
#define PRIORITY_USB    9               // VIC0.8 VIC 0.9: usb port
11
#define PRIORITY_ADC    15      // VIC0.15: adc conversion
12
// Vector 1     lower priority than vector 0
13
#define PRIORITY_UART0  2       // VIC1.0: uart to GPS/MK3MAG
14
#define PRIORITY_UART2  1               // VIC1.1: uart to FC
15
#define PRIORITY_UART1  0               // VIC1.2: debug uart
16
#define PRIORITY_I2C1   3       // VIC1.4: i2c to MK3MAG
17
#define PRIORITY_SPI0   4               // VIC1.5: timing forced by FC, must be lower than UARTS for flashing FC thrue the NC
18
#define PRIORITY_SDSWITCH 15    // VIC1.10 switch at sd port
19
 
136 killagreg 20
#define UART0_BAUD_RATE 57600           //Baud Rate for the serial interfaces
21
#define UART1_BAUD_RATE 57600           //Baud Rate for the serial interfaces
22
#define UART2_BAUD_RATE 57600           //Baud Rate for the serial interfaces
23
#define I2C1_CLOCK 20000                        // 20 kHz
24
 
25
#endif // _CONFIG_H