Skip to content

Commit

Permalink
Pull request project-chip#1762: ncp_commissioning_fix_if_lcd_disabled
Browse files Browse the repository at this point in the history
Merge in WMN_TOOLS/matter from ncp_fixes_if_lcd_disabled to RC_2.3.0-1.3

Squashed commit of the following:

commit 7a93b89c6ce5d8b0fa248455321f5ae2d17516f3
Author: bhmanda <[email protected]>
Date:   Tue Apr 16 17:08:26 2024 +0530

    build error resolved

commit eb302ffa7e0a002dfaf18f256302b3ca243dac42
Author: bhmanda <[email protected]>
Date:   Tue Apr 16 16:54:01 2024 +0530

    Removed semaphore release call in pre lcd spi transfer and as it should be released in post lcd spi transfer

commit 4f9ec7914a0d4fe1de1d85e68bf8245e1eeb9910
Author: bhmanda <[email protected]>
Date:   Tue Apr 16 16:37:31 2024 +0530

    Added fixes for 917NCP if LCD disabled
  • Loading branch information
bhmanda-silabs authored and chirag-silabs committed Apr 16, 2024
1 parent 54adeea commit e1a7cb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions examples/platform/silabs/efr32/rs911x/hal/efx32_ncp_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@ static void efx32_spi_init(void)

// Enable USART interface pins
GPIO->USARTROUTE[SPI_USART_ROUTE_INDEX].ROUTEEN = GPIO_USART_ROUTEEN_RXPEN | // MISO
GPIO_USART_ROUTEEN_TXPEN | // MOSI
GPIO_USART_ROUTEEN_CLKPEN;
GPIO_USART_ROUTEEN_TXPEN | // MOSI
#if !SL_SPICTRL_MUX
GPIO_USART_ROUTEEN_CSPEN |
#endif
GPIO_USART_ROUTEEN_CLKPEN;

// Set slew rate for alternate usage pins
GPIO_SlewrateSet(SPI_CLOCK_PIN.port, 7, 7);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ sl_status_t sl_wfx_host_pre_lcd_spi_transfer(void)
if (SL_STATUS_OK == status)
{
SPIDRV_SetBaudrate(SL_SPIDRV_LCD_BITRATE);
}
#if SL_SPICTRL_MUX
xSemaphoreGive(spi_sem_sync_hdl);
#endif // SL_SPICTRL_MUX
}
return status;
}

Expand Down

0 comments on commit e1a7cb4

Please sign in to comment.