fix jsbsim simulation with new sys_time stuff

This commit is contained in:
Felix Ruess
2012-02-13 17:50:04 +01:00
parent 0e94dfea1d
commit 3c3a5a60e1
6 changed files with 48 additions and 19 deletions
@@ -56,8 +56,9 @@ $(TARGET).CFLAGS += -DTRAFFIC_INFO
#
# LEDs
#
$(TARGET).CFLAGS += -DUSE_LED
ifneq ($(ARCH), jsbsim)
$(TARGET).CFLAGS += -DUSE_LED
endif
ifneq ($(ARCH), lpc21)
ifneq ($(ARCH), jsbsim)
$(TARGET).srcs += $(SRC_ARCH)/led_hw.c
@@ -71,7 +72,8 @@ ifndef PERIODIC_FREQUENCY
PERIODIC_FREQUENCY = 60
endif
$(TARGET).CFLAGS += -DPERIODIC_FREQUENCY=$(PERIODIC_FREQUENCY)
$(TARGET).srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
$(TARGET).srcs += mcu_periph/sys_time.c $(SRC_ARCH)/mcu_periph/sys_time_arch.c
$(TARGET).CFLAGS += -DUSE_SYS_TIME -DSYS_TIME_RESOLUTION='(1./$(PERIODIC_FREQUENCY).)'
#
# InterMCU & Commands
@@ -123,11 +125,6 @@ ifneq ($(SYS_TIME_LED),none)
ns_CFLAGS += -DSYS_TIME_LED=$(SYS_TIME_LED)
endif
#
# Sys-time
#
ns_CFLAGS += -DUSE_SYS_TIME -DSYS_TIME_RESOLUTION='(1./$(PERIODIC_FREQUENCY).)'
#
# UARTS