boards/nrf9160-dk: enable GNSS for modem_ns config

This commit is contained in:
raiden00pl
2023-11-16 14:19:02 +01:00
committed by Xiang Xiao
parent 42211cc1c3
commit ca88513a0c
2 changed files with 21 additions and 1 deletions
@@ -23,14 +23,17 @@ CONFIG_BUILTIN=y
CONFIG_DEBUG_BUSFAULT=y
CONFIG_DEBUG_FULLOPT=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_DEBUG_UORB=y
CONFIG_DEBUG_USAGEFAULT=y
CONFIG_EXAMPLES_HELLO=y
CONFIG_EXAMPLES_WGET=y
CONFIG_EXPERIMENTAL=y
CONFIG_FS_PROCFS=y
CONFIG_GPSUTILS_MINMEA_LIB=y
CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=2
CONFIG_NET=y
CONFIG_NETDB_DNSCLIENT=y
@@ -58,6 +61,8 @@ CONFIG_RAW_BINARY=y
CONFIG_RR_INTERVAL=200
CONFIG_SCHED_LPWORK=y
CONFIG_SCHED_WAITPID=y
CONFIG_SENSORS=y
CONFIG_SENSORS_GPS=y
CONFIG_STACK_COLORATION=y
CONFIG_STACK_USAGE=y
CONFIG_START_DAY=26
@@ -68,3 +73,6 @@ CONFIG_SYSTEM_CUTERM=y
CONFIG_SYSTEM_NSH=y
CONFIG_TASK_NAME_SIZE=32
CONFIG_UART0_SERIAL_CONSOLE=y
CONFIG_UORB=y
CONFIG_UORB_LISTENER=y
CONFIG_USENSOR=y
@@ -64,7 +64,8 @@
* Pre-processor Definitions
****************************************************************************/
#define NRF91_TIMER (0)
#define NRF91_TIMER (0)
#define NRF91_GNSS_BATCHNUM (10)
/****************************************************************************
* Private Functions
@@ -157,6 +158,17 @@ int nrf91_bringup(void)
}
#endif
#ifdef CONFIG_NRF91_MODEM_GNSS
/* Initialize modem GNSS interface */
ret = nrf91_gnss_register(0, NRF91_GNSS_BATCHNUM);
if (ret < 0)
{
syslog(LOG_ERR,
"ERROR: Failed to initialize GNSS interface%d\n", ret);
}
#endif
#ifdef CONFIG_NRF91_PROGMEM
ret = nrf91_progmem_init();
if (ret < 0)