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:
parent
4b6213adef
commit
18cf6aef16
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user