stm32_radio:remove codec version
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@472 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
b2331cb292
commit
0dfef2b35e
@ -42,11 +42,9 @@
|
|||||||
// <i>Default: 1
|
// <i>Default: 1
|
||||||
#define STM32_CONSOLE_USART 1
|
#define STM32_CONSOLE_USART 1
|
||||||
|
|
||||||
// <o> Codec Version <1=>Version 1 <2=>Version 2
|
// <o> LCD Modul Version
|
||||||
// <i>Default: 1
|
// <1=>Version 1:fmt0371
|
||||||
#define CODEC_VERSION 1
|
// <2=>Version 2:ili9320/9325
|
||||||
|
|
||||||
// <o> LCD Modul Version <1=>Version 1 <2=>Version 2
|
|
||||||
// <i>Default: 1
|
// <i>Default: 1
|
||||||
#define LCD_VERSION 1
|
#define LCD_VERSION 1
|
||||||
|
|
||||||
|
@ -344,7 +344,6 @@ void DMA1_Channel4_IRQHandler(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CODEC_VERSION == 1
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Function Name : DMA1_Channel5_IRQHandler
|
* Function Name : DMA1_Channel5_IRQHandler
|
||||||
* Description : This function handles DMA1 Channel 5 interrupt request.
|
* Description : This function handles DMA1 Channel 5 interrupt request.
|
||||||
@ -372,7 +371,6 @@ void DMA1_Channel5_IRQHandler(void)
|
|||||||
/* leave interrupt */
|
/* leave interrupt */
|
||||||
rt_interrupt_leave();
|
rt_interrupt_leave();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Function Name : DMA1_Channel6_IRQHandler
|
* Function Name : DMA1_Channel6_IRQHandler
|
||||||
@ -425,7 +423,6 @@ void EXTI9_5_IRQHandler(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CODEC_VERSION == 1
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Function Name : SPI2_IRQHandler
|
* Function Name : SPI2_IRQHandler
|
||||||
* Description : This function handles SPI2 global interrupt request.
|
* Description : This function handles SPI2 global interrupt request.
|
||||||
@ -445,7 +442,6 @@ void SPI2_IRQHandler(void)
|
|||||||
/* leave interrupt */
|
/* leave interrupt */
|
||||||
rt_interrupt_leave();
|
rt_interrupt_leave();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Function Name : USART1_IRQHandler
|
* Function Name : USART1_IRQHandler
|
||||||
@ -640,55 +636,6 @@ void SDIO_IRQHandler(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CODEC_VERSION == 2
|
|
||||||
/*******************************************************************************
|
|
||||||
* Function Name : SPI3_IRQHandler
|
|
||||||
* Description : This function handles SPI3 global interrupt request.
|
|
||||||
* Input : None
|
|
||||||
* Output : None
|
|
||||||
* Return : None
|
|
||||||
*******************************************************************************/
|
|
||||||
void SPI3_IRQHandler(void)
|
|
||||||
{
|
|
||||||
extern void wm8978_isr(void);
|
|
||||||
|
|
||||||
/* enter interrupt */
|
|
||||||
rt_interrupt_enter();
|
|
||||||
|
|
||||||
wm8978_isr();
|
|
||||||
|
|
||||||
/* leave interrupt */
|
|
||||||
rt_interrupt_leave();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Function Name : DMA2_Channel2_IRQHandler
|
|
||||||
* Description : This function handles DMA2 Channel 2 interrupt request.
|
|
||||||
* Input : None
|
|
||||||
* Output : None
|
|
||||||
* Return : None
|
|
||||||
*******************************************************************************/
|
|
||||||
void DMA2_Channel2_IRQHandler(void)
|
|
||||||
{
|
|
||||||
extern void wm8978_dma_isr(void);
|
|
||||||
|
|
||||||
/* enter interrupt */
|
|
||||||
rt_interrupt_enter();
|
|
||||||
|
|
||||||
if (DMA_GetITStatus(DMA2_IT_TC2))
|
|
||||||
{
|
|
||||||
/* clear DMA flag */
|
|
||||||
DMA_ClearFlag(DMA2_FLAG_TC2 | DMA2_FLAG_TE2);
|
|
||||||
|
|
||||||
/* transmission complete, invoke serial dma tx isr */
|
|
||||||
wm8978_dma_isr();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* leave interrupt */
|
|
||||||
rt_interrupt_leave();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* add on 2009-12-31 for usb */
|
/* add on 2009-12-31 for usb */
|
||||||
extern void CTR_HP(void);
|
extern void CTR_HP(void);
|
||||||
extern void USB_Istr(void);
|
extern void USB_Istr(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user