//------------------------------------------------------------------------------
/* priorities */
#define EXTI0_IRQ_PRIORITY		8
#define EXTI1_IRQ_PRIORITY		8
#define EXTI2_IRQ_PRIORITY		8
#define EXTI3_IRQ_PRIORITY		8
#define EXTI4_IRQ_PRIORITY		8
#define EXTI9_5_IRQ_PRIORITY	8
#define EXTI15_10_IRQ_PRIORITY	8

#define TIM1_IRQ_PRIORITY		4
#define TIM2_IRQ_PRIORITY		4
#define TIM3_IRQ_PRIORITY		4
#define TIM4_IRQ_PRIORITY		4

#define	USART1_IRQ_PRIORITY		3
#define	USART2_IRQ_PRIORITY		3
#define	USART3_IRQ_PRIORITY		3

#define	I2C1_IRQ_PRIORITY		2
#define	I2C1_IRQERR_PRIORITY	1
#define	I2C2_IRQ_PRIORITY		2
#define	I2C2_IRQERR_PRIORITY	1

#define SPI1_IRQ_PRIORITY		4
#define SPI2_IRQ_PRIORITY		4

#define ADC1_2_IRQ_PRIORITY		5

