Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit c539bae

Browse files
Merge pull request #11 from swift-nav/pr-719-copy
Pass MAX_CHANNELS value to libswiftnav CMAKE. Verified on VV-1606301020.
2 parents d5d6b49 + c9d7f8a commit c539bae

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ MAKEFLAGS += PIKSI_HW=$(PIKSI_HW)
2626

2727
ifeq ($(PIKSI_HW),v2)
2828
CMAKEFLAGS += -DCMAKE_SYSTEM_PROCESSOR=cortex-m4
29+
CMAKEFLAGS += -DMAX_CHANNELS=11
2930
endif
3031

3132
ifeq ($(PIKSI_HW),v3)
3233
CMAKEFLAGS += -DCMAKE_SYSTEM_PROCESSOR=cortex-a9
34+
CMAKEFLAGS += -DMAX_CHANNELS=31
3335
endif
3436

3537
.PHONY: all tests firmware docs hitl_setup hitl hitlv3 .FORCE

libswiftnav

Submodule libswiftnav updated from 269f95d to b0d4425

src/board/v2/nap/nap_hw.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#ifndef SWIFTNAV_NAP_HW_V2_H
1515
#define SWIFTNAV_NAP_HW_V2_H
1616

17+
#include <libswiftnav/config.h>
1718
#include <libswiftnav/signal.h>
1819

1920
/** \addtogroup nap
@@ -39,7 +40,7 @@
3940
#define NAP_HASH_NOTREADY 2
4041

4142
/** Max number of tracking channels NAP configuration will be built with. */
42-
#define NAP_MAX_N_TRACK_CHANNELS 12
43+
#define NAP_MAX_N_TRACK_CHANNELS (MAX_CHANNELS + 1)
4344

4445
u8 nap_conf_done(void);
4546
u8 nap_hash_rd_done(void);

src/board/v3/nap/nap_hw.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
#ifndef SWIFTNAV_NAP_REGS_H
1414
#define SWIFTNAV_NAP_REGS_H
1515

16+
#include <libswiftnav/config.h>
1617
#include <stdint.h>
1718

1819
/** Max number of tracking channels NAP configuration will be built with. */
19-
#define NAP_MAX_N_TRACK_CHANNELS 32
20+
#define NAP_MAX_N_TRACK_CHANNELS (MAX_CHANNELS + 1)
2021

2122
typedef struct {
2223
volatile uint32_t STATUS;

0 commit comments

Comments
 (0)