Setup IRQ Level/Mode outside of FTMAC100 driver

Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
This commit is contained in:
Anton D. Kachalov 2015-07-31 14:09:07 +03:00
parent 66eacd32ce
commit 5c413b3a66
3 changed files with 11 additions and 0 deletions

View File

@ -218,6 +218,9 @@ extern "C"
* Public Function Prototypes
************************************************************************************/
inline void ftintc010_set_trig_mode(int irq, int mode);
inline void ftintc010_set_trig_level(int irq, int level);
#undef EXTERN
#if defined(__cplusplus)
}

View File

@ -47,6 +47,8 @@
#include <nuttx/board.h>
#include <nuttx/net/ftmac100.h>
#include <arch/board/board.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -73,6 +75,8 @@ void board_initialize(void)
{
#ifdef CONFIG_NET_FTMAC100
/* Perform board-specific initialization */
ftintc010_set_trig_mode(CONFIG_FTMAC100_IRQ, 0);
ftintc010_set_trig_level(CONFIG_FTMAC100_IRQ, 0);
ftmac100_initialize(0);
#endif

View File

@ -47,6 +47,8 @@
#include <nuttx/board.h>
#include <nuttx/net/ftmac100.h>
#include <arch/board/board.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -75,6 +77,8 @@ int board_app_initialize(void)
#ifndef CONFIG_BOARD_INITIALIZE
#ifdef CONFIG_NET_FTMAC100
/* Perform board-specific initialization */
ftintc010_set_trig_mode(CONFIG_FTMAC100_IRQ, 0);
ftintc010_set_trig_level(CONFIG_FTMAC100_IRQ, 0);
ftmac100_initialize(0);
#endif