Rev 142 |
Rev 145 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef _CONFIG_H
#define _CONFIG_H
// Configure the interrupt priority at a level from 0 to 15 (0 is highest priority)
// for each interrupot vector (VIC0 and VIC1)
// Vector 0 higher priority than vector 1
#define PRIORITY_TIMER1 8 // VIC0.5: system time
#define PRIORITY_TIMER2 7 // VIC0.6: servo pwm, must be disabled on UART redirection
#define PRIORITY_USB 9 // VIC0.8 VIC 0.9: usb port
#define PRIORITY_ADC 15 // VIC0.15: adc conversion
// Vector 1 lower priority than vector 0
#define PRIORITY_UART0 1 // VIC1.0: uart to GPS/MK3MAG
#define PRIORITY_UART2 2 // VIC1.1: uart to FC
#define PRIORITY_UART1 0 // VIC1.2: debug uart
#define PRIORITY_I2C1 4 // VIC1.4: i2c to MK3MAG
#define PRIORITY_SPI0 3 // VIC1.5: timing forced by FC, must be lower than UARTS for flashing FC thrue the NC
#define PRIORITY_SDSWITCH 15 // VIC1.10 switch at sd port
#define UART0_BAUD_RATE 57600 //Baud Rate for the serial interfaces
#define UART1_BAUD_RATE 57600 //Baud Rate for the serial interfaces
#define UART2_BAUD_RATE 57600 //Baud Rate for the serial interfaces
#define I2C1_CLOCK 20000 // 20 kHz
#endif // _CONFIG_H