icE1usb fw: Always define NUM_E1_PORTS in Makefile

So that it's available without having to include the USB include ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I0b434cef7a662c19e5f48072285c013e8c02e254
This commit is contained in:
Sylvain Munaut 2024-04-29 19:49:34 +02:00
parent 4f6c775e3f
commit 10f00a6fff
2 changed files with 2 additions and 4 deletions

View File

@ -19,6 +19,8 @@ CFLAGS += -DBUILD_INFO="\"$(GITVER) built $(shell date) on $(shell hostname)\""
ifeq ($(SINGLE_CHANNEL),1)
CFLAGS += -DNUM_E1_PORTS=1
else
CFLAGS += -DNUM_E1_PORTS=2
endif
NO2USB_FW_VERSION=0

View File

@ -7,10 +7,6 @@
#pragma once
#ifndef NUM_E1_PORTS
# define NUM_E1_PORTS 2
#endif
#define USB_INTF_E1(p) (0 + (p))
#define USB_INTF_GPS_CDC_CTL (NUM_E1_PORTS + 0)
#define USB_INTF_GPS_CDC_DATA (NUM_E1_PORTS + 1)