nrf91/nrf91_modem.c: add support for board-specific modem configuration

this can be used to configure an antenna that is specific to a given board
This commit is contained in:
raiden00pl 2023-11-16 14:11:48 +01:00 committed by Xiang Xiao
parent 4b6213adef
commit 18cf6aef16
2 changed files with 29 additions and 0 deletions

View File

@ -120,7 +120,27 @@ int nrf91_modem_initialize(void)
if (ret < 0)
{
nerr("nrf_modem_init failed %d\n", ret);
goto errout;
}
/* Initial modem configuration */
ret = nrf91_modem_config();
if (ret < 0)
{
nerr("nrf91_modem_config failed %d\n", ret);
goto errout;
}
/* Board-specific modem configuration */
ret = nrf91_modem_board_init();
if (ret < 0)
{
nerr("nrf91_modem_board_init failed %d\n", ret);
goto errout;
}
errout:
return ret;
}

View File

@ -76,6 +76,15 @@
* Public Functions Prototypes
****************************************************************************/
/****************************************************************************
* Name: nrf91_modem_board_init
*
* This function must be provided by board-spcific logic.
*
****************************************************************************/
int nrf91_modem_board_init(void);
/****************************************************************************
* Name: nrf91_modem_initialize
****************************************************************************/