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:
wuyangyong 2010-03-09 11:39:23 +00:00
parent b2331cb292
commit 0dfef2b35e
2 changed files with 6 additions and 61 deletions

View File

@ -19,7 +19,7 @@
/* board configuration */ /* board configuration */
// <o> SDCard Driver <1=>SDIO sdcard <0=>SPI MMC card // <o> SDCard Driver <1=>SDIO sdcard <0=>SPI MMC card
// <i>Default: 1 // <i>Default: 1
#define STM32_USE_SDIO 1 #define STM32_USE_SDIO 1
/* whether use board external SRAM memory */ /* whether use board external SRAM memory */
// <e>Use external SRAM memory on the board // <e>Use external SRAM memory on the board
@ -40,15 +40,13 @@
// <o> Console on USART: <0=> no console <1=>USART 1 <2=>USART 2 <3=> USART 3 // <o> Console on USART: <0=> no console <1=>USART 1 <2=>USART 2 <3=> USART 3
// <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
// <1=>Version 1:fmt0371
// <2=>Version 2:ili9320/9325
// <i>Default: 1 // <i>Default: 1
#define CODEC_VERSION 1 #define LCD_VERSION 1
// <o> LCD Modul Version <1=>Version 1 <2=>Version 2
// <i>Default: 1
#define LCD_VERSION 1
void rt_hw_board_led_on(int n); void rt_hw_board_led_on(int n);
void rt_hw_board_led_off(int n); void rt_hw_board_led_off(int n);

View File

@ -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);