diff --git a/configs/olimex-lpc1766stk/nsh/defconfig b/configs/olimex-lpc1766stk/nsh/defconfig index 31ea6858dc..7643514181 100644 --- a/configs/olimex-lpc1766stk/nsh/defconfig +++ b/configs/olimex-lpc1766stk/nsh/defconfig @@ -204,8 +204,8 @@ CONFIG_LPC17_SSP1=y # CONFIG_PHY_AUTONEG=y CONFIG_NET_EMACRAM_SIZE=8192 -CONFIG_NET_NTXDESC=7 -CONFIG_NET_NRXDESC=7 +CONFIG_NET_NTXDESC=6 +CONFIG_NET_NRXDESC=6 # CONFIG_NET_WOL is not set # CONFIG_NET_HASH is not set # CONFIG_NET_MULTICAST is not set @@ -417,7 +417,7 @@ CONFIG_SPI=y # CONFIG_SPI_OWNBUS is not set # CONFIG_SPI_EXCHANGE is not set # CONFIG_SPI_CMDDATA is not set -CONFIG_SPI_CALLBACK=y +# CONFIG_SPI_CALLBACK is not set # CONFIG_SPI_BITBANG is not set # CONFIG_I2S is not set diff --git a/configs/olimex-lpc1766stk/src/lpc17_ssp.c b/configs/olimex-lpc1766stk/src/lpc17_ssp.c index ab5f208de2..3a4880c0ee 100644 --- a/configs/olimex-lpc1766stk/src/lpc17_ssp.c +++ b/configs/olimex-lpc1766stk/src/lpc17_ssp.c @@ -43,6 +43,7 @@ #include #include +#include #include #ifdef CONFIG_SPI_CALLBACK #include @@ -167,6 +168,8 @@ static void ssp_cdirqsetup(int irq, xcpt_t irqhandler) up_disable_irq(irq); (void)irq_detach(irq); } + + irqrestore(flags); } #endif