Setup IRQ Level/Mode outside of FTMAC100 driver
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
This commit is contained in:
parent
66eacd32ce
commit
5c413b3a66
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user