Skip to content

Commit

Permalink
[intermcu_uart] Naming convention: PORT_NR=1 -> PORT=UART1
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter authored and flixr committed May 23, 2014
1 parent 8e43f28 commit 617d990
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions conf/airframes/CDW/TwoSeas.xml
Expand Up @@ -21,7 +21,7 @@
<!-- FBW -->
<subsystem name="actuators" type="dummy"/>
<subsystem name="intermcu" type="uart">
<configure name="INTERMCU_PORT_NR" value="2"/>
<configure name="INTERMCU_PORT" value="UART2"/>
</subsystem>
<!-- AP -->
<subsystem name="control"/>
Expand All @@ -48,7 +48,7 @@
</subsystem>
<!-- FBW <-> AP -->
<subsystem name="intermcu" type="uart">
<configure name="INTERMCU_PORT_NR" value="1"/>
<configure name="INTERMCU_PORT" value="UART1"/>
</subsystem>
<!-- SERVO'S -->
<subsystem name="actuators" type="pwm"/>
Expand Down
4 changes: 2 additions & 2 deletions conf/airframes/examples/separate_fbw_ap.xml
Expand Up @@ -245,7 +245,7 @@
<!-- split of ap/fbw specific subsystems for ap -->
<subsystem name="actuators" type="dummy"/>
<subsystem name="intermcu" type="uart">
<configure name="INTERMCU_PORT_NR" value="5"/>
<configure name="INTERMCU_PORT" value="UART5"/>
</subsystem>

<subsystem name="control"/>
Expand All @@ -265,7 +265,7 @@
<!-- split of ap/fbw specific subsystems for fbw -->
<subsystem name="actuators" type="pwm"/>
<subsystem name="intermcu" type="uart">
<configure name="INTERMCU_PORT_NR" value="2"/>
<configure name="INTERMCU_PORT" value="UART2"/>
</subsystem>
</target>

Expand Down
8 changes: 4 additions & 4 deletions conf/firmwares/subsystems/fixedwing/intermcu_uart.makefile
Expand Up @@ -5,14 +5,14 @@

ifeq ($(TARGET),fbw)
ifeq ($(INTERMCU_PORT),none)
INTERMCU_PORT_NR = 2
INTERMCU_PORT = UART2
endif
fbw.CFLAGS += -DINTERMCU_LINK=UART$(INTERMCU_PORT_NR) -DUSE_UART$(INTERMCU_PORT_NR) -DUART$(INTERMCU_PORT_NR)_BAUD=B57600
fbw.CFLAGS += -DINTERMCU_LINK=$(INTERMCU_PORT) -DUSE_$(INTERMCU_PORT) -D$(INTERMCU_PORT)_BAUD=B57600
else
ifeq ($(INTERMCU_PORT),none)
INTERMCU_PORT_NR = 5
INTERMCU_PORT = UART5
endif
ap.CFLAGS += -DINTERMCU_LINK=UART$(INTERMCU_PORT_NR) -DUSE_UART$(INTERMCU_PORT_NR) -DUART$(INTERMCU_PORT_NR)_BAUD=B57600
ap.CFLAGS += -DINTERMCU_LINK=$(INTERMCU_PORT) -DUSE_$(INTERMCU_PORT) -D$(INTERMCU_PORT)_BAUD=B57600
endif

ifneq ($(TARGET),sim)
Expand Down

0 comments on commit 617d990

Please sign in to comment.