Subversion Repositories NaviCtrl

Rev

Rev 141 | Rev 144 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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