~aleteoryx/muditaos

3bca46838dbfdc9fe942652ccdc6ebea83d931c2 — Wojtek Rzepecki 4 years ago fc3c8fd
[EGD-7845] Fix infinite close time

Fix in cellular to prevent blocking at
system close procedure
1 files changed, 4 insertions(+), 1 deletions(-)

M module-bsp/board/rt1051/bsp/cellular/rt1051_cellular.cpp
M module-bsp/board/rt1051/bsp/cellular/rt1051_cellular.cpp => module-bsp/board/rt1051/bsp/cellular/rt1051_cellular.cpp +4 -1
@@ 150,7 150,6 @@ namespace bsp
        }

        disableRx();
        disableTx();

        NVIC_DisableIRQ(LPUART1_IRQn);
        LPUART_DisableInterrupts(CELLULAR_UART_BASE,


@@ 158,7 157,11 @@ namespace bsp
        LPUART_ClearStatusFlags(CELLULAR_UART_BASE, 0xFFFFFFFF);
        NVIC_ClearPendingIRQ(LPUART1_IRQn);

        // Needed for the last flush in LPUART_Deinit
        enableTx();

        LPUART_Deinit(CELLULAR_UART_BASE);
        disableTx();

        MSPDeinit();
        DMADeinit();