Subversion Repositories NaviCtrl

Rev

Rev 139 | 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)
141 killagreg 5
#define PRIORITY_SPI0   1               // timing forced by FC
6
#define PRIORITY_I2C1   2       // i2c to MK3MAG
7
#define PRIORITY_USB    3               // usb port
8
#define PRIORITY_UART0  6       // uart to GPS/MK3MAG
9
#define PRIORITY_UART2  5               // uart to FC
10
#define PRIORITY_UART1  4               // debug uart
11
#define PRIORITY_TIMER2 7       // servo pwm
136 killagreg 12
#define PRIORITY_TIMER1 8       // system time
13
#define PRIORITY_ADC 14         // adc conversion
14
#define PRIORITY_SDSWITCH 15    // switch at sd port
15
 
16
#define UART0_BAUD_RATE 57600           //Baud Rate for the serial interfaces
17
#define UART1_BAUD_RATE 57600           //Baud Rate for the serial interfaces
18
#define UART2_BAUD_RATE 57600           //Baud Rate for the serial interfaces
19
#define I2C1_CLOCK 20000                        // 20 kHz
20
 
21
#endif // _CONFIG_H