RTL00_WEB/project.mk

93 lines
2 KiB
Makefile
Raw Normal View History

2017-05-12 23:31:23 +00:00
#=============================================
# SDK CONFIG
#=============================================
2017-09-26 23:22:56 +00:00
#WEB_INA219_DRV = 1
WEB_MLX90614_DRV = 1
2017-09-06 11:34:28 +00:00
#WEB_ADC_DRV = 1
2017-07-29 19:11:18 +00:00
#USE_SDCARD = 1
2017-09-26 19:05:35 +00:00
#USE_UVC = 1
2017-05-12 23:31:23 +00:00
#USE_AT = 1
2017-07-04 10:51:35 +00:00
#USE_FATFS = 1
#USE_SDIOH = 1
2017-05-12 23:31:23 +00:00
#USE_POLARSSL = 1
#USE_P2P_WPS = 1
#USE_GCC_LIB = 1
USE_MBED = 1
ifndef USE_AT
USE_NEWCONSOLE = 1
USE_WIFI_API = 1
endif
2017-07-11 11:51:06 +00:00
ifdef USE_SDCARD
USE_FATFS = 1
USE_SDIOH = 1
endif
2017-05-12 23:31:23 +00:00
#RTOSDIR=freertos_v8.1.2
RTOSDIR=freertos_v9.0.0
LWIPDIR=lwip_v1.4.1
2017-09-26 19:05:35 +00:00
ifdef USE_UVC
USE_SDRAM = 1
USE_GCC_LIB = 1
endif
2017-05-12 23:31:23 +00:00
include $(SDK_PATH)sdkset.mk
#CFLAGS += -DDEFAULT_BAUDRATE=1562500
CFLAGS += -DLOGUART_STACK_SIZE=1024
#=============================================
# User Files
#=============================================
#user main
ADD_SRC_C += project/src/user/main.c
ADD_SRC_C += project/src/user/user_start.c
# components
ADD_SRC_C += project/src/console/atcmd_user.c
ADD_SRC_C += project/src/console/wifi_console.c
2017-06-28 04:09:45 +00:00
ADD_SRC_C += project/src/console/wlan_tst.c
2017-05-12 23:31:23 +00:00
#ADD_SRC_C += project/src/console/pwm_tst.c
2017-07-01 01:16:36 +00:00
2017-07-11 11:51:06 +00:00
ifdef USE_SDCARD
2017-07-01 01:16:36 +00:00
ADD_SRC_C += project/src/console/sd_fat.c
endif
2017-09-26 19:05:35 +00:00
ifdef USE_UVC
ADD_SRC_C += project/src/console/uvc_capture_tst.c
endif
2017-05-12 23:31:23 +00:00
ifdef WEB_INA219_DRV
ADD_SRC_C += project/src/driver/i2c_drv.c
2017-09-26 19:05:35 +00:00
CFLAGS += -DUSE_I2C_CONSOLE=1
2017-05-12 23:31:23 +00:00
ADD_SRC_C += project/src/ina219/ina219drv.c
CFLAGS += -DWEB_INA219_DRV=1
endif
2017-07-01 01:16:36 +00:00
2017-09-26 23:22:56 +00:00
ifdef WEB_MLX90614_DRV
ADD_SRC_C += project/src/driver/i2c_drv.c
CFLAGS += -DUSE_I2C_CONSOLE=1
ADD_SRC_C += project/src/MLX90614/MLX90614.c
CFLAGS += -DWEB_MLX90614_DRV=1
endif
2017-06-21 00:00:20 +00:00
ifdef WEB_ADC_DRV
ADD_SRC_C += project/src/driver/adc_drv.c
ADD_SRC_C += project/src/adc_ws/adc_ws.c
CFLAGS += -DWEB_ADC_DRV=1
endif
2017-05-12 23:31:23 +00:00
2017-09-26 19:05:35 +00:00
2017-05-12 23:31:23 +00:00
#Web-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
INCLUDES += project/inc/web
ADD_SRC_C += project/src/tcpsrv/tcp_srv_conn.c
ADD_SRC_C += project/src/webfs/webfs.c
ADD_SRC_C += project/src/web/web_srv.c
ADD_SRC_C += project/src/web/web_utils.c
ADD_SRC_C += project/src/web/web_websocket.c
ADD_SRC_C += project/src/web/websock.c
ADD_SRC_C += project/src/web/web_int_callbacks.c
ADD_SRC_C += project/src/web/web_int_vars.c
ADD_SRC_C += project/src/web/web_auth.c
2017-06-24 02:03:03 +00:00
2017-09-26 19:05:35 +00:00