roboforum.ruТехнический форум по робототехнике. |
|
|
ifeq "$(CONFIG_FILE)" ""
CONFIG_FILE = config.mak
endif
include $(CONFIG_FILE)
include resolve.mak
VOS_TARGET = AVR128
SRC = test.c
EXE = VelaOS
VOS_F_CPU = 14745600L
VOS_USE_SLEEP = 1
#VOS_USE_SIR = 1
VOS_CFG_SIR_ENTRIES = 10
VOS_CFG_PRIORITIES = 5
VOS_USE_VBUS = 1
VOS_VELABUS_BUFSIZE = 2
VOS_USE_MUTEX = 1
VOS_USE_TIMER = 1
VOS_USE_PREEMPTION = 1
VOS_NUM_TIMERS = 4
VOS_USE_QUEUE = 1
VOS_NUM_QUEUES = 4
ifneq "$(VOS_USE_PREEMPTION)" ""
DEFINES += -DVOS_CFG_PRIORITIES=$(VOS_CFG_PRIORITIES)
DEFINES += -DVOS_USE_PREEMPTION
VOS_USE_SIR = 1
else
DEFINES += -DVOS_CFG_PRIORITIES=0
endif
ifneq "$(VOS_USE_SIR)" ""
DEFINES += -DVOS_USE_SIR
endif
include vos/target/resolve.mak
include vos/lib/resolve.mak
include vos/kernel/resolve.mak
ifeq "$(strip $(VOS_F_CPU))" ""
MESSAGES += |F_CPU is 14.7456 MHz by default
VOS_F_CPU = 14745600L
endif
DEFINES += -DF_CPU=$(VOS_F_CPU)
INCLUDES += -includevos/kernel/scheduler.h
INCLUDES += -includevos/kernel/errors.h
ifneq "$(strip $(VOS_TICK_PERIOD))" ""
DEFINES += -DVOS_TICK_PERIOD=$(VOS_TICK_PERIOD)
else
DEFINES += -DVOS_TICK_PERIOD=8000
endif
blindman писал(а):чтобы он драйвер запрашивал для себя n регистров, а ядро возвращало начальный номер
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6