mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
commit
7cc7df8c0e
352 files changed
-195425
No files matched your search
@@ -1 +0,0 @@
|
|||||||
*.exe
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
SDK ?= $(shell cat sdk.version)
|
|
||||||
SRC_DIR ?= $(realpath ../../..)
|
|
||||||
PORT ?= auto
|
|
||||||
|
|
||||||
.PHONY: all clean
|
|
||||||
|
|
||||||
MAKEFLAGS += w
|
|
||||||
|
|
||||||
all clean:
|
|
||||||
docker run --rm -i -v $(SRC_DIR):/src $(SDK) \
|
|
||||||
/bin/bash -c "\
|
|
||||||
make -C /src/mongoose mongoose.c mongoose.h && \
|
|
||||||
make -C /src/mongoose/examples/CC3200 -f Makefile.build $@ -$(MAKEFLAGS) \
|
|
||||||
"
|
|
||||||
|
|
||||||
ifeq ("$(PORT)", "auto")
|
|
||||||
PORT = $(shell ls -1 /dev/ttyUSB* | tail -n 1)
|
|
||||||
endif
|
|
||||||
flash:
|
|
||||||
docker run --rm -it --privileged -v $(SRC_DIR):/src $(SDK) /bin/bash -c "\
|
|
||||||
cd /usr/local/bin; \
|
|
||||||
./cc3200prog $(PORT) /src/fw/platforms/cc3200/firmware/fw.bin \
|
|
||||||
"
|
|
||||||
|
|
||||||
debug:
|
|
||||||
docker run --rm -it --privileged -v $(SRC_DIR):/src $(SDK) \
|
|
||||||
/bin/bash -c "cd /src/fw/platforms/cc3200 && tools/gdb.sh"
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
# -*- mode: makefile -*-
|
|
||||||
# This file is executed inside Docker build container.
|
|
||||||
# It can be used without container too if SDK_PATH is configured.
|
|
||||||
|
|
||||||
PLATFORM = CC3200
|
|
||||||
SDK_PATH ?= /cc3200-sdk
|
|
||||||
REPO_PATH ?= ../../..
|
|
||||||
BUILD_DIR ?= ./.build
|
|
||||||
FW_DIR ?= ./out
|
|
||||||
SLFS_PATH ?= ./slfs
|
|
||||||
|
|
||||||
BINDIR = $(FW_DIR)
|
|
||||||
OBJDIR = $(BUILD_DIR)
|
|
||||||
|
|
||||||
include $(SDK_PATH)/tools/gcc_scripts/makedefs
|
|
||||||
|
|
||||||
.PHONY: all clean flash
|
|
||||||
|
|
||||||
PROG = cc3200_example
|
|
||||||
|
|
||||||
IPATH = . ../.. $(REPO_PATH)
|
|
||||||
|
|
||||||
VPATH = ../..
|
|
||||||
|
|
||||||
MONGOOSE_FEATURES = -DMG_ENABLE_SSL -DMG_ENABLE_HTTP_STREAMING_MULTIPART
|
|
||||||
|
|
||||||
SDK_FLAGS = -DUSE_FREERTOS -DSL_PLATFORM_MULTI_THREADED
|
|
||||||
# -DTARGET_IS_CC3200 would reduce code size by using functions in ROM
|
|
||||||
# but then the code won't work on pre-release chips (XCC3200HZ).
|
|
||||||
|
|
||||||
CFLAGS += -Os -Wall -Werror \
|
|
||||||
$(SDK_FLAGS) -DCS_PLATFORM=4 -DCC3200_FS_SLFS \
|
|
||||||
$(MONGOOSE_FEATURES) $(CFLAGS_EXTRA)
|
|
||||||
|
|
||||||
FW_ELF = $(FW_DIR)/$(PROG).axf
|
|
||||||
FW_BIN = $(FW_DIR)/$(PROG).bin
|
|
||||||
FW_MANIFEST = $(FW_DIR)/manifest.json
|
|
||||||
FW_ZIP = $(FW_DIR)/firmware.zip
|
|
||||||
BUILD_INFO_JSON = $(OBJDIR)/build_info.json
|
|
||||||
SLFS_FILES = $(wildcard $(SLFS_PATH)/*)
|
|
||||||
|
|
||||||
.PHONY: all clean flash
|
|
||||||
|
|
||||||
all: $(OBJDIR) $(FW_DIR) $(FW_ZIP)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@rm -rf $(OBJDIR) $(wildcard *~)
|
|
||||||
@rm -rf $(FW_DIR) $(wildcard *~)
|
|
||||||
|
|
||||||
$(OBJDIR):
|
|
||||||
@echo " MKDIR $@"
|
|
||||||
@mkdir -p $(OBJDIR) $(FS_BUILD_DIR)
|
|
||||||
|
|
||||||
$(FW_DIR):
|
|
||||||
@echo " MKDIR $@"
|
|
||||||
@mkdir -p $(FW_DIR)
|
|
||||||
|
|
||||||
$(FW_ZIP): $(FW_ELF) $(FW_BIN) $(SLFS_FILES)
|
|
||||||
@echo " Code size: $(shell ls -l $(FW_BIN) | awk '{print $$5}')"
|
|
||||||
@echo " GEN $(FW_MANIFEST)"
|
|
||||||
@fw_meta gen_build_info \
|
|
||||||
--json_output=$(BUILD_INFO_JSON)
|
|
||||||
@cp -v $(SLFS_FILES) out/
|
|
||||||
@cp $(CC3200_SP_FILE)* $(FW_DIR)
|
|
||||||
@fw_meta create_manifest \
|
|
||||||
--name=$(PROG) --platform=$(PLATFORM) \
|
|
||||||
--build_info=$(BUILD_INFO_JSON) \
|
|
||||||
--output=$(FW_MANIFEST) \
|
|
||||||
--src_dir=$(FW_DIR) \
|
|
||||||
/sys/servicepack.ucf:type=slfile,src=$(CC3200_SP_FILE),falloc=60416,sign=$(notdir $(CC3200_SP_FILE)).sign \
|
|
||||||
$(notdir $(CC3200_SP_FILE)).sign:type=signature,src=$(CC3200_SP_FILE).sign \
|
|
||||||
/sys/mcuimg.bin:type=app,src=$(notdir $(FW_BIN)) \
|
|
||||||
$(foreach f,$(SLFS_FILES), $(notdir $(f)):type=slfile,src=$(notdir $(f)))
|
|
||||||
@echo " ZIP $@"
|
|
||||||
@fw_meta create_fw \
|
|
||||||
--manifest=$(FW_MANIFEST) \
|
|
||||||
--src_dir=$(FW_DIR) \
|
|
||||||
--output=$@
|
|
||||||
|
|
||||||
FREERTOS_SRCS = timers.c list.c queue.c tasks.c port.c heap_3.c osi_freertos.c
|
|
||||||
DRIVER_SRCS = cpu.c gpio.c gpio_if.c i2c.c i2c_if.c interrupt.c pin.c prcm.c spi.c uart.c udma.c utils.c
|
|
||||||
SL_SRCS = socket.c wlan.c driver.c device.c netapp.c netcfg.c network_common.c cc_pal.c fs.c
|
|
||||||
SDK_SRCS = startup_gcc.c $(FREERTOS_SRCS) $(DRIVER_SRCS) $(SL_SRCS)
|
|
||||||
IPATH += $(SDK_PATH) $(SDK_PATH)/inc $(SDK_PATH)/driverlib \
|
|
||||||
$(SDK_PATH)/example/common $(SDK_PATH)/oslib \
|
|
||||||
$(SDK_PATH)/simplelink $(SDK_PATH)/simplelink/include \
|
|
||||||
$(SDK_PATH)/simplelink_extlib/provisioninglib \
|
|
||||||
$(SDK_PATH)/third_party/FreeRTOS/source \
|
|
||||||
$(SDK_PATH)/third_party/FreeRTOS/source/include \
|
|
||||||
$(SDK_PATH)/third_party/FreeRTOS/source/portable/GCC/ARM_CM4
|
|
||||||
VPATH += $(SDK_PATH)/driverlib $(SDK_PATH)/example/common $(SDK_PATH)/oslib \
|
|
||||||
$(SDK_PATH)/simplelink $(SDK_PATH)/simplelink/source \
|
|
||||||
$(SDK_PATH)/third_party/FreeRTOS/source \
|
|
||||||
$(SDK_PATH)/third_party/FreeRTOS/source/portable/GCC/ARM_CM4 \
|
|
||||||
$(SDK_PATH)/third_party/FreeRTOS/source/portable/MemMang \
|
|
||||||
|
|
||||||
APP_SRCS = main.c bm222.c data.c mongoose.c tmp006.c wifi.c $(SDK_SRCS)
|
|
||||||
APP_OBJS = $(addprefix $(OBJDIR)/,$(patsubst %.c,%.o,$(APP_SRCS)))
|
|
||||||
|
|
||||||
$(FW_ELF): $(APP_OBJS)
|
|
||||||
|
|
||||||
SCATTERgcc_$(PROG) = $(PROG).ld
|
|
||||||
ENTRY_$(PROG) = ResetISR
|
|
||||||
|
|
||||||
# Disable certain warnings on SDK sources, we have no control over them anyway.
|
|
||||||
|
|
||||||
SDK_OBJS = $(addprefix $(OBJDIR)/,$(patsubst %.c,%.o,$(SDK_SRCS)))
|
|
||||||
$(SDK_OBJS): CFLAGS += -include mongoose.h -Wno-missing-braces -Wno-strict-aliasing -Wno-parentheses -Wno-unused-variable
|
|
||||||
@@ -1,105 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "bm222.h"
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
#include "cs_dbg.h"
|
|
||||||
|
|
||||||
#include "i2c_if.h"
|
|
||||||
|
|
||||||
#define BM222_REG_FIFO_STATUS 0x0e
|
|
||||||
|
|
||||||
#define BM222_REG_PMU_BW 0x10
|
|
||||||
#define BM222_PMU_BW_7_81_HZ 0x8
|
|
||||||
#define BM222_PMU_BW_31_25_HZ 0xA
|
|
||||||
#define BM222_PMU_BW_62_5_HZ 0xB
|
|
||||||
#define BM222_PMU_BW_125_HZ 0xC
|
|
||||||
|
|
||||||
#define BM222_REG_BGW_SOFTRESET 0x14
|
|
||||||
#define BM222_DO_SOFT_RESET 0xB6
|
|
||||||
|
|
||||||
#define BM222_REG_FIFO_CONFIG_1 0x3e
|
|
||||||
#define BM222_FIFO_MODE_FIFO 0x40
|
|
||||||
#define BM222_FIFO_DATA_ALL 0
|
|
||||||
|
|
||||||
#define BM222_REG_FIFO_DATA 0x3f
|
|
||||||
|
|
||||||
struct bm222_ctx *bm222_init(uint8_t addr) {
|
|
||||||
struct bm222_ctx *ctx = (struct bm222_ctx *) calloc(1, sizeof(*ctx));
|
|
||||||
if (ctx == NULL) return NULL;
|
|
||||||
ctx->addr = addr;
|
|
||||||
{
|
|
||||||
unsigned char val[2] = {BM222_REG_BGW_SOFTRESET, BM222_DO_SOFT_RESET};
|
|
||||||
if (I2C_IF_Write(addr, val, 2, 1) != 0) goto out_err;
|
|
||||||
osi_Sleep(2 /* ms */); /* t_w,up1 = 1.8 ms */
|
|
||||||
}
|
|
||||||
if (!bm222_fifo_init(ctx)) return false;
|
|
||||||
{
|
|
||||||
unsigned char val[2] = {BM222_REG_PMU_BW, BM222_PMU_BW_125_HZ};
|
|
||||||
if (I2C_IF_Write(addr, val, 2, 1) != 0) goto out_err;
|
|
||||||
}
|
|
||||||
return ctx;
|
|
||||||
out_err:
|
|
||||||
free(ctx);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool bm222_fifo_init(struct bm222_ctx *ctx) {
|
|
||||||
unsigned char val[2] = {BM222_REG_FIFO_CONFIG_1,
|
|
||||||
BM222_FIFO_MODE_FIFO | BM222_FIFO_DATA_ALL};
|
|
||||||
return (I2C_IF_Write(ctx->addr, val, 2, 1) == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool bm222_get_data(struct bm222_ctx *ctx) {
|
|
||||||
unsigned char reg = BM222_REG_FIFO_STATUS;
|
|
||||||
unsigned char val;
|
|
||||||
if (I2C_IF_ReadFrom(ctx->addr, ®, 1, &val, 1) < 0) return false;
|
|
||||||
unsigned char len = (val & 0x7f);
|
|
||||||
unsigned char overflow = (val & 0x80 ? 1 : 0);
|
|
||||||
LOG(LL_DEBUG, ("FIFO len: %d (ovf? %d)", len, overflow));
|
|
||||||
reg = BM222_REG_FIFO_DATA;
|
|
||||||
int8_t fifo[32 * 6], *v = fifo;
|
|
||||||
if (I2C_IF_ReadFrom(ctx->addr, ®, 1, (unsigned char *) fifo, len * 6) <
|
|
||||||
0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
double now = mg_time();
|
|
||||||
/* Of potentially multiple samples, pick one with maximum difference. */
|
|
||||||
int32_t max_d = 0;
|
|
||||||
bool sampled = false;
|
|
||||||
struct bm222_sample *ls = ctx->data + ctx->last_index, *s = NULL;
|
|
||||||
if (ls->ts == 0) {
|
|
||||||
/* The very first sample. */
|
|
||||||
ls->ts = now;
|
|
||||||
ls->x = v[1];
|
|
||||||
ls->y = v[3];
|
|
||||||
ls->z = v[5];
|
|
||||||
v += 6;
|
|
||||||
len--;
|
|
||||||
sampled = true;
|
|
||||||
s = ls;
|
|
||||||
}
|
|
||||||
for (; len > 0; v += 6, len--) {
|
|
||||||
int32_t dx = ((int32_t) v[1]) - ((int32_t) ls->x);
|
|
||||||
int32_t dy = ((int32_t) v[3]) - ((int32_t) ls->y);
|
|
||||||
int32_t dz = ((int32_t) v[5]) - ((int32_t) ls->z);
|
|
||||||
int32_t d = dx * dx + dy * dy + dz * dz;
|
|
||||||
if ((d > 2 && d > max_d) || (!sampled && now - ls->ts > 1.0)) {
|
|
||||||
if (!sampled) {
|
|
||||||
ctx->last_index = (ctx->last_index + 1) % BM222_NUM_SAMPLES;
|
|
||||||
s = ctx->data + ctx->last_index;
|
|
||||||
sampled = true;
|
|
||||||
}
|
|
||||||
s->ts = now;
|
|
||||||
s->x = v[1];
|
|
||||||
s->y = v[3];
|
|
||||||
s->z = v[5];
|
|
||||||
if (d > max_d) max_d = d;
|
|
||||||
LOG(LL_VERBOSE_DEBUG, ("dx %d dy %d dz %d d %d", dx, dy, dz, d));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return (overflow ? bm222_fifo_init(ctx) : true); /* Clear the ovf flag. */
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_MONGOOSE_EXAMPLES_CC3200_BM222_H_
|
|
||||||
#define CS_MONGOOSE_EXAMPLES_CC3200_BM222_H_
|
|
||||||
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#define BM222_NUM_SAMPLES 64
|
|
||||||
struct bm222_ctx {
|
|
||||||
uint8_t addr;
|
|
||||||
struct bm222_sample {
|
|
||||||
double ts;
|
|
||||||
int8_t x;
|
|
||||||
int8_t y;
|
|
||||||
int8_t z;
|
|
||||||
} data[BM222_NUM_SAMPLES];
|
|
||||||
int last_index;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct bm222_ctx *bm222_init(uint8_t addr);
|
|
||||||
bool bm222_fifo_init(struct bm222_ctx *ctx);
|
|
||||||
bool bm222_get_data(struct bm222_ctx *ctx);
|
|
||||||
|
|
||||||
#endif /* CS_MONGOOSE_EXAMPLES_CC3200_BM222_H_ */
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
/*****************************************************************************
|
|
||||||
* app.ld
|
|
||||||
*
|
|
||||||
* GCC Linker script for Mongoose OS. Based on TI's example "blinky.ld".
|
|
||||||
*
|
|
||||||
* Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the
|
|
||||||
* distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
HEAP_SIZE = 0xB000;
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
/* SRAM size of 240KB (0x3C000) for cc3200 ES 1.33 device onward,
|
|
||||||
* 176KB (0x2C000) for XCC3200HZ (pre-release device). */
|
|
||||||
SRAM (rwx) : ORIGIN = 0x20004000, LENGTH = 0x3C000
|
|
||||||
}
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
_text = .;
|
|
||||||
KEEP(*(.intvecs))
|
|
||||||
*(.text*)
|
|
||||||
*(.rodata*)
|
|
||||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
|
||||||
. = ALIGN(8);
|
|
||||||
_etext = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
.ARM : {
|
|
||||||
__exidx_start = .;
|
|
||||||
*(.ARM.exidx*)
|
|
||||||
__exidx_end = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
__init_data = .;
|
|
||||||
|
|
||||||
.data : AT(__init_data)
|
|
||||||
{
|
|
||||||
_data = .;
|
|
||||||
*(.data*)
|
|
||||||
. = ALIGN (8);
|
|
||||||
_edata = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
_bss = .;
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
_ebss = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
_heap = .;
|
|
||||||
. = . + HEAP_SIZE;
|
|
||||||
. = ALIGN(8);
|
|
||||||
_eheap = .;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<?ccsproject version="1.0"?>
|
|
||||||
<projectOptions>
|
|
||||||
<deviceVariant value="Cortex M.CC3200"/>
|
|
||||||
<deviceFamily value="TMS470"/>
|
|
||||||
<deviceEndianness value="little"/>
|
|
||||||
<codegenToolVersion value="5.2.7"/>
|
|
||||||
<isElfFormat value="true"/>
|
|
||||||
<connection value="common/targetdb/connections/Stellaris_ICDI_Connection.xml"/>
|
|
||||||
<linkerCommandFile value="cc3200v1p32.cmd"/>
|
|
||||||
<rts value="libc.a"/>
|
|
||||||
<createSlaveProjects value=""/>
|
|
||||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectWithMainTemplate,"/>
|
|
||||||
<isTargetManual value="false"/>
|
|
||||||
</projectOptions>
|
|
||||||
@@ -1,218 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143" name="Debug" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.DebugToolchain.929985441" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerDebug.273728804">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.258663176" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.CC3200"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=cc3200v1p32.cmd"/>
|
|
||||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.324606890" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformDebug.1595303251" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformDebug"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderDebug.664577987" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderDebug"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerDebug.239238133" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE.1334773591" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="SL_PLATFORM_MULTI_THREADED=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="USE_FREERTOS"/>
|
|
||||||
<listOptionValue builtIn="false" value="cc3200"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.731249297" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.1786958507" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.1146878710" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.627547538" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.vfplib" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN.1274157874" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH.1258458633" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink_extlib/provisioninglib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/inc""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/example/common""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../Mongoose""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL.441599099" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.1882962798" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER.988736284" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING.108721469" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.1654856947" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.610557791" name="Speed vs. size trade-offs (--opt_for_speed, -mf)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS.82765394" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS.1309113096" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS.637644727" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS.1237578949" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS.1197212538" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerDebug.273728804" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE.1521937237" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE.384792165" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE" value="0xB000" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE.1759256980" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE.223170305" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY.941567896" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../Mongoose/Debug/Mongoose.lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/ccs/OS/simplelink.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/ccs/Release/driverlib.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib/ccs/free_rtos/free_rtos.a""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH.1487719636" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER.527313065" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.470008330" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO.1060401668" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.UNUSED_SECTION_ELIMINATION.1518364136" name="Eliminate sections not needed in the executable (--unused_section_elimination)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.UNUSED_SECTION_ELIMINATION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.UNUSED_SECTION_ELIMINATION.on" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS.703137823" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS.1106081123" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS.1215238770" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex.537525921" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex"/>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings">
|
|
||||||
<externalSettings containerId="Mongoose;com.ti.ccstudio.buildDefinitions.TMS470.Debug.491265557" factoryId="org.eclipse.cdt.core.cfg.export.settings.sipplier"/>
|
|
||||||
</storageModule>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039" name="Release" parent="com.ti.ccstudio.buildDefinitions.TMS470.Release" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.ReleaseToolchain.203807862" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerRelease.603260672">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1946983343" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.CC3200"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=cc3200v1p32.cmd"/>
|
|
||||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.541661556" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformRelease.1731528219" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformRelease"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderRelease.1517621311" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderRelease"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerRelease.1511107079" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE.709446512" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="SL_PLATFORM_MULTI_THREADED=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="USE_FREERTOS"/>
|
|
||||||
<listOptionValue builtIn="false" value="cc3200"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.25059129" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.1599303984" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.462249516" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.628710870" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.vfplib" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING.1313521771" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER.1137425146" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.1217155594" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH.1877995914" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink_extlib/provisioninglib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/inc""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/example/common""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../Mongoose""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN.1313166043" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.release.1366420658" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.release" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.1169603203" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS.884396305" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS.1552076672" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS.1932242817" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS.564471106" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerRelease.603260672" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE.999455186" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE" value="0x512" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE.1142745068" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE" value="0x0" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE.592894575" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE.767606951" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO.88933399" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER.670906651" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.69171285" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH.2058160037" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY.1140912133" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../Mongoose/Release/Mongoose.lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/ccs/OS/simplelink.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/ccs/Release/driverlib.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib/ccs/free_rtos/free_rtos.a""/>
|
|
||||||
</option>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS.852025912" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS.445406552" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS.1688064227" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex.1751465904" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex"/>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings">
|
|
||||||
<externalSettings containerId="Mongoose;com.ti.ccstudio.buildDefinitions.TMS470.Release.900958360" factoryId="org.eclipse.cdt.core.cfg.export.settings.sipplier"/>
|
|
||||||
</storageModule>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="MG_hello.com.ti.ccstudio.buildDefinitions.TMS470.ProjectType.218900570" name="ARM" projectType="com.ti.ccstudio.buildDefinitions.TMS470.ProjectType"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="scannerConfiguration"/>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
|
||||||
<project-mappings>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
</project-mappings>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="refreshScope"/>
|
|
||||||
</cproject>
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>MG_hello</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
<project>Mongoose</project>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
<linkedResources>
|
|
||||||
<link>
|
|
||||||
<name>gpio_if.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>CC3200_SDK_ROOT/example/common/gpio_if.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>network_common.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>CC3200_SDK_ROOT/example/common/network_common.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>startup_ccs.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>CC3200_SDK_ROOT/example/common/startup_ccs.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>wifi.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/wifi.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>wifi.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/wifi.h</locationURI>
|
|
||||||
</link>
|
|
||||||
</linkedResources>
|
|
||||||
<variableList>
|
|
||||||
<variable>
|
|
||||||
<name>CC3200_SDK_ROOT</name>
|
|
||||||
<value>$%7BTI_PRODUCTS_DIR%7D/CC3200SDK_1.2.0/cc3200-sdk</value>
|
|
||||||
</variable>
|
|
||||||
</variableList>
|
|
||||||
</projectDescription>
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
//*****************************************************************************
|
|
||||||
// cc3200v1p32.cmd
|
|
||||||
//
|
|
||||||
// CCS linker configuration file for cc3200 ES 1.32.
|
|
||||||
//
|
|
||||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// Redistribution and use in source and binary forms, with or without
|
|
||||||
// modification, are permitted provided that the following conditions
|
|
||||||
// are met:
|
|
||||||
//
|
|
||||||
// Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
//
|
|
||||||
// Redistributions in binary form must reproduce the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer in the
|
|
||||||
// documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
//
|
|
||||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
// its contributors may be used to endorse or promote products derived
|
|
||||||
// from this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
|
|
||||||
|
|
||||||
--retain=g_pfnVectors
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// The following command line options are set as part of the CCS project.
|
|
||||||
// If you are building using the command line, or for some reason want to
|
|
||||||
// define them here, you can uncomment and modify these lines as needed.
|
|
||||||
// If you are using CCS for building, it is probably better to make any such
|
|
||||||
// modifications in your CCS project and leave this file alone.
|
|
||||||
//*****************************************************************************
|
|
||||||
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// The starting address of the application. Normally the interrupt vectors
|
|
||||||
// must be located at the beginning of the application.
|
|
||||||
//*****************************************************************************
|
|
||||||
#define RAM_BASE 0x20004000
|
|
||||||
|
|
||||||
/* System memory map */
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
/* Application uses internal RAM for program and data */
|
|
||||||
SRAM_CODE (RWX) : origin = 0x20004000, length = 0x20000
|
|
||||||
SRAM_DATA (RWX) : origin = 0x20024000, length = 0x1C000
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Section allocation in memory */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.intvecs: > RAM_BASE
|
|
||||||
.init_array : > SRAM_CODE
|
|
||||||
.vtable : > SRAM_CODE
|
|
||||||
.text : > SRAM_CODE
|
|
||||||
.const : > SRAM_CODE
|
|
||||||
.cinit : > SRAM_CODE
|
|
||||||
.pinit : > SRAM_CODE
|
|
||||||
.data : > SRAM_DATA
|
|
||||||
.bss : > SRAM_DATA
|
|
||||||
.sysmem : > SRAM_DATA
|
|
||||||
.stack : > SRAM_DATA(HIGH)
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,246 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Set up an AP or connect to existing WiFi network. */
|
|
||||||
#define WIFI_AP_SSID "Mongoose"
|
|
||||||
#define WIFI_AP_PASS ""
|
|
||||||
#define WIFI_AP_CHAN 6
|
|
||||||
// #define WIFI_STA_SSID "YourWiFi"
|
|
||||||
// #define WIFI_STA_PASS "YourPass"
|
|
||||||
|
|
||||||
#define MGOS_TASK_PRIORITY 3
|
|
||||||
#define MG_TASK_STACK_SIZE 8192
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <inc/hw_types.h>
|
|
||||||
#include <inc/hw_ints.h>
|
|
||||||
#include <inc/hw_memmap.h>
|
|
||||||
|
|
||||||
#include <driverlib/gpio.h>
|
|
||||||
#include <driverlib/interrupt.h>
|
|
||||||
#include <driverlib/pin.h>
|
|
||||||
#include <driverlib/prcm.h>
|
|
||||||
#include <driverlib/rom.h>
|
|
||||||
#include <driverlib/rom_map.h>
|
|
||||||
|
|
||||||
#include <example/common/gpio_if.h>
|
|
||||||
|
|
||||||
/* Mongoose.h brings in SimpleLink support. Do not include simplelink.h. */
|
|
||||||
#include <mongoose.h>
|
|
||||||
|
|
||||||
#include <simplelink/include/device.h>
|
|
||||||
|
|
||||||
#include "cs_dbg.h"
|
|
||||||
#include "wifi.h"
|
|
||||||
|
|
||||||
void fs_slfs_set_new_file_size(const char *name, size_t size);
|
|
||||||
|
|
||||||
static const char *upload_form =
|
|
||||||
"\
|
|
||||||
<h1>Upload file</h1> \
|
|
||||||
<form action='/upload' method='POST' enctype='multipart/form-data'> \
|
|
||||||
<input type='file' name='file'> \
|
|
||||||
<input type='submit' value='Upload'> \
|
|
||||||
</form>";
|
|
||||||
|
|
||||||
static struct mg_str upload_fname(struct mg_connection *nc,
|
|
||||||
struct mg_str fname) {
|
|
||||||
struct mg_str lfn;
|
|
||||||
char *fn = malloc(fname.len + 4);
|
|
||||||
memcpy(fn, "SL:", 3);
|
|
||||||
memcpy(fn + 3, fname.p, fname.len);
|
|
||||||
fn[3 + fname.len] = '\0';
|
|
||||||
if (nc->user_data != NULL) {
|
|
||||||
intptr_t cl = (intptr_t) nc->user_data;
|
|
||||||
if (cl >= 0) {
|
|
||||||
fs_slfs_set_new_file_size(fn + 3, cl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
lfn.len = fname.len + 4;
|
|
||||||
lfn.p = fn;
|
|
||||||
return lfn;
|
|
||||||
}
|
|
||||||
|
|
||||||
void mg_ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|
||||||
LOG(LL_DEBUG, ("%p ev %d", nc, ev));
|
|
||||||
|
|
||||||
switch (ev) {
|
|
||||||
case MG_EV_ACCEPT: {
|
|
||||||
char addr[32];
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
LOG(LL_INFO, ("Connection %p from %s", nc, addr));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_REQUEST: {
|
|
||||||
char addr[32];
|
|
||||||
struct http_message *hm = (struct http_message *) ev_data;
|
|
||||||
cs_stat_t st;
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
LOG(LL_INFO,
|
|
||||||
("HTTP request from %s: %.*s %.*s", addr, (int) hm->method.len,
|
|
||||||
hm->method.p, (int) hm->uri.len, hm->uri.p));
|
|
||||||
if (mg_vcmp(&hm->uri, "/upload") == 0 ||
|
|
||||||
(mg_vcmp(&hm->uri, "/") == 0 && mg_stat("SL:index.html", &st) != 0)) {
|
|
||||||
mg_send(nc, upload_form, strlen(upload_form));
|
|
||||||
nc->flags |= MG_F_SEND_AND_CLOSE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
struct mg_serve_http_opts opts;
|
|
||||||
memset(&opts, 0, sizeof(opts));
|
|
||||||
opts.document_root = "SL:";
|
|
||||||
mg_serve_http(nc, hm, opts);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_CLOSE: {
|
|
||||||
LOG(LL_INFO, ("Connection %p closed", nc));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
/* SimpleLink FS requires pre-declaring max file size. We use Content-Length
|
|
||||||
* for that purpose - it will not exactly match file size, but is guaranteed
|
|
||||||
* to exceed it and should be close enough. */
|
|
||||||
case MG_EV_HTTP_MULTIPART_REQUEST: {
|
|
||||||
struct http_message *hm = (struct http_message *) ev_data;
|
|
||||||
struct mg_str *cl_header = mg_get_http_header(hm, "Content-Length");
|
|
||||||
intptr_t cl = -1;
|
|
||||||
if (cl_header != NULL && cl_header->len < 20) {
|
|
||||||
char buf[20];
|
|
||||||
memcpy(buf, cl_header->p, cl_header->len);
|
|
||||||
buf[cl_header->len] = '\0';
|
|
||||||
cl = atoi(buf);
|
|
||||||
if (cl < 0) cl = -1;
|
|
||||||
}
|
|
||||||
nc->user_data = (void *) cl;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_PART_BEGIN:
|
|
||||||
case MG_EV_HTTP_PART_DATA:
|
|
||||||
case MG_EV_HTTP_PART_END: {
|
|
||||||
struct mg_http_multipart_part *mp =
|
|
||||||
(struct mg_http_multipart_part *) ev_data;
|
|
||||||
if (ev == MG_EV_HTTP_PART_BEGIN) {
|
|
||||||
LOG(LL_INFO, ("Begin file upload: %s", mp->file_name));
|
|
||||||
} else if (ev == MG_EV_HTTP_PART_END) {
|
|
||||||
LOG(LL_INFO, ("End file upload: %s", mp->file_name));
|
|
||||||
}
|
|
||||||
mg_file_upload_handler(nc, ev, ev_data, upload_fname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void mg_init(struct mg_mgr *mgr) {
|
|
||||||
LOG(LL_INFO, ("MG task running"));
|
|
||||||
|
|
||||||
stop_nwp(); /* See function description in wifi.c */
|
|
||||||
LOG(LL_INFO, ("Starting NWP..."));
|
|
||||||
int role = sl_Start(0, 0, 0);
|
|
||||||
if (role < 0) {
|
|
||||||
LOG(LL_ERROR, ("Failed to start NWP"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
LOG(LL_INFO, ("NWP started"));
|
|
||||||
|
|
||||||
sl_fs_init();
|
|
||||||
|
|
||||||
#if defined(WIFI_STA_SSID)
|
|
||||||
if (!wifi_setup_sta(WIFI_STA_SSID, WIFI_STA_PASS)) {
|
|
||||||
LOG(LL_ERROR, ("Error setting up WiFi station"));
|
|
||||||
}
|
|
||||||
#elif defined(WIFI_AP_SSID)
|
|
||||||
if (!wifi_setup_ap(WIFI_AP_SSID, WIFI_AP_PASS, WIFI_AP_CHAN)) {
|
|
||||||
LOG(LL_ERROR, ("Error setting up WiFi AP"));
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#error WiFi not configured
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* We don't need SimpleLink's web server. */
|
|
||||||
sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID);
|
|
||||||
|
|
||||||
const char *err = "";
|
|
||||||
struct mg_bind_opts opts;
|
|
||||||
memset(&opts, 0, sizeof(opts));
|
|
||||||
opts.error_string = &err;
|
|
||||||
|
|
||||||
struct mg_connection *nc = mg_bind(mgr, "80", mg_ev_handler);
|
|
||||||
if (nc != NULL) {
|
|
||||||
mg_set_protocol_http_websocket(nc);
|
|
||||||
} else {
|
|
||||||
LOG(LL_ERROR, ("Failed to create listener: %s", err));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef USE_TIRTOS
|
|
||||||
/* Int vector table, defined in startup_gcc.c */
|
|
||||||
extern void (*const g_pfnVectors[])(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
#ifndef USE_TIRTOS
|
|
||||||
MAP_IntVTableBaseSet((unsigned long) &g_pfnVectors[0]);
|
|
||||||
#endif
|
|
||||||
MAP_IntEnable(FAULT_SYSTICK);
|
|
||||||
MAP_IntMasterEnable();
|
|
||||||
PRCMCC3200MCUInit();
|
|
||||||
|
|
||||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
|
||||||
setvbuf(stderr, NULL, _IOLBF, 0);
|
|
||||||
cs_log_set_level(LL_INFO);
|
|
||||||
cs_log_set_file(stdout);
|
|
||||||
|
|
||||||
LOG(LL_INFO, ("Hello, world!"));
|
|
||||||
|
|
||||||
/* Set up the red LED. Note that amber and green cannot be used as they share
|
|
||||||
* pins with I2C. */
|
|
||||||
MAP_PRCMPeripheralClkEnable(PRCM_GPIOA1, PRCM_RUN_MODE_CLK);
|
|
||||||
MAP_PinTypeGPIO(PIN_64, PIN_MODE_0, false);
|
|
||||||
MAP_GPIODirModeSet(GPIOA1_BASE, 0x2, GPIO_DIR_MODE_OUT);
|
|
||||||
GPIO_IF_LedConfigure(LED1);
|
|
||||||
GPIO_IF_LedOn(MCU_RED_LED_GPIO);
|
|
||||||
|
|
||||||
if (VStartSimpleLinkSpawnTask(8) != 0) {
|
|
||||||
LOG(LL_ERROR, ("Failed to create SL task"));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mg_start_task(MGOS_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
|
|
||||||
LOG(LL_ERROR, ("Failed to create MG task"));
|
|
||||||
}
|
|
||||||
|
|
||||||
osi_start();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* These are FreeRTOS hooks for various life situations. */
|
|
||||||
void vApplicationMallocFailedHook(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void vApplicationIdleHook(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void vApplicationStackOverflowHook(OsiTaskHandle *th, signed char *tn) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkHttpServerCallback(SlHttpServerEvent_t *e,
|
|
||||||
SlHttpServerResponse_t *resp) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkSockEventHandler(SlSockEvent_t *e) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkGeneralEventHandler(SlDeviceEvent_t *e) {
|
|
||||||
LOG(LL_ERROR, ("status %d sender %d", e->EventData.deviceEvent.status,
|
|
||||||
e->EventData.deviceEvent.sender));
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<configurations XML_version="1.2" id="configurations_0">
|
|
||||||
<configuration XML_version="1.2" id="configuration_0">
|
|
||||||
<instance XML_version="1.2" desc="Stellaris In-Circuit Debug Interface" href="connections/Stellaris_ICDI_Connection.xml" id="Stellaris In-Circuit Debug Interface" xml="Stellaris_ICDI_Connection.xml" xmlpath="connections"/>
|
|
||||||
<connection XML_version="1.2" id="Stellaris In-Circuit Debug Interface">
|
|
||||||
<instance XML_version="1.2" href="drivers/cc3200_cs_icepick.xml" id="drivers" xml="cc3200_cs_icepick.xml" xmlpath="drivers"/>
|
|
||||||
<instance XML_version="1.2" href="drivers/stellaris_cs_dap.xml" id="drivers" xml="stellaris_cs_dap.xml" xmlpath="drivers"/>
|
|
||||||
<instance XML_version="1.2" href="drivers/cc3200_cortex_m4.xml" id="drivers" xml="cc3200_cortex_m4.xml" xmlpath="drivers"/>
|
|
||||||
<platform XML_version="1.2" id="platform_0">
|
|
||||||
<instance XML_version="1.2" desc="CC3200" href="devices/CC3200.xml" id="CC3200" xml="CC3200.xml" xmlpath="devices"/>
|
|
||||||
</platform>
|
|
||||||
</connection>
|
|
||||||
</configuration>
|
|
||||||
</configurations>
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
|
||||||
on the device and connection settings specified in your project on the Properties > General page.
|
|
||||||
|
|
||||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
|
||||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
|
||||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
|
||||||
you may create your own target-configuration file for this project and manage it manually. You can
|
|
||||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
|
||||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<?ccsproject version="1.0"?>
|
|
||||||
<projectOptions>
|
|
||||||
<deviceVariant value="Cortex M.CC3200"/>
|
|
||||||
<deviceFamily value="TMS470"/>
|
|
||||||
<deviceEndianness value="little"/>
|
|
||||||
<codegenToolVersion value="5.2.7"/>
|
|
||||||
<isElfFormat value="true"/>
|
|
||||||
<connection value="common/targetdb/connections/Stellaris_ICDI_Connection.xml"/>
|
|
||||||
<linkerCommandFile value="cc3200v1p32.cmd"/>
|
|
||||||
<rts value="libc.a"/>
|
|
||||||
<createSlaveProjects value=""/>
|
|
||||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectWithMainTemplate,"/>
|
|
||||||
<isTargetManual value="false"/>
|
|
||||||
</projectOptions>
|
|
||||||
@@ -1,218 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143" name="Debug" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.2139411143." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.DebugToolchain.929985441" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerDebug.273728804">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.258663176" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.CC3200"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=cc3200v1p32.cmd"/>
|
|
||||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.324606890" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformDebug.1595303251" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformDebug"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderDebug.664577987" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderDebug"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerDebug.239238133" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE.1334773591" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="SL_PLATFORM_MULTI_THREADED=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="USE_FREERTOS"/>
|
|
||||||
<listOptionValue builtIn="false" value="cc3200"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.731249297" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.1786958507" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.1146878710" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.627547538" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.vfplib" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN.1274157874" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH.1258458633" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink_extlib/provisioninglib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/inc""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/example/common""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../Mongoose""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL.441599099" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.1882962798" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER.988736284" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING.108721469" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.1654856947" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.610557791" name="Speed vs. size trade-offs (--opt_for_speed, -mf)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS.1171949946" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS.1309113096" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS.637644727" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS.1237578949" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS.1197212538" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerDebug.273728804" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE.1521937237" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE" value="0x100" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE.384792165" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE" value="0xB000" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE.1759256980" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE.223170305" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY.941567896" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../Mongoose/Debug/Mongoose.lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/ccs/OS/simplelink.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/ccs/Release/driverlib.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib/ccs/free_rtos/free_rtos.a""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH.1487719636" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER.527313065" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.470008330" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO.1060401668" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.UNUSED_SECTION_ELIMINATION.1575545300" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.UNUSED_SECTION_ELIMINATION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.UNUSED_SECTION_ELIMINATION.on" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS.703137823" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS.1106081123" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS.1215238770" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex.537525921" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex"/>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings">
|
|
||||||
<externalSettings containerId="Mongoose;com.ti.ccstudio.buildDefinitions.TMS470.Debug.491265557" factoryId="org.eclipse.cdt.core.cfg.export.settings.sipplier"/>
|
|
||||||
</storageModule>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039" name="Release" parent="com.ti.ccstudio.buildDefinitions.TMS470.Release" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Release.2030896039." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.ReleaseToolchain.203807862" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerRelease.603260672">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1946983343" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.CC3200"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=cc3200v1p32.cmd"/>
|
|
||||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.541661556" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformRelease.1731528219" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.targetPlatformRelease"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderRelease.1517621311" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.builderRelease"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerRelease.1511107079" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.compilerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE.709446512" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="SL_PLATFORM_MULTI_THREADED=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="USE_FREERTOS"/>
|
|
||||||
<listOptionValue builtIn="false" value="cc3200"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.25059129" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.1599303984" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.462249516" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.628710870" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.vfplib" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING.1313521771" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER.1137425146" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.1217155594" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH.1877995914" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink_extlib/provisioninglib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/inc""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/example/common""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../Mongoose""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN.1313166043" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.release.1366420658" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.release" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.1169603203" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS.884396305" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS.1552076672" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS.1932242817" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS.564471106" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerRelease.603260672" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exe.linkerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE.999455186" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.STACK_SIZE" value="0x512" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE.1142745068" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.HEAP_SIZE" value="0x0" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE.592894575" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE.767606951" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO.88933399" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER.670906651" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.69171285" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH.2058160037" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY.1140912133" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.linkerID.LIBRARY" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_ROOT}/../Mongoose/Release/Mongoose.lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/ccs/OS/simplelink.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/driverlib/ccs/Release/driverlib.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib/ccs/free_rtos/free_rtos.a""/>
|
|
||||||
</option>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS.852025912" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS.445406552" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__CMD2_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS.1688064227" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.exeLinker.inputType__GEN_CMDS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex.1751465904" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.hex"/>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings">
|
|
||||||
<externalSettings containerId="Mongoose;com.ti.ccstudio.buildDefinitions.TMS470.Release.900958360" factoryId="org.eclipse.cdt.core.cfg.export.settings.sipplier"/>
|
|
||||||
</storageModule>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="MG_sensor_demo.com.ti.ccstudio.buildDefinitions.TMS470.ProjectType.218900570" name="ARM" projectType="com.ti.ccstudio.buildDefinitions.TMS470.ProjectType"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="scannerConfiguration"/>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
|
||||||
<project-mappings>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
</project-mappings>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="refreshScope"/>
|
|
||||||
</cproject>
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>MG_sensor_demo</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
<project>Mongoose</project>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
<linkedResources>
|
|
||||||
<link>
|
|
||||||
<name>bm222.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/bm222.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>bm222.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/bm222.h</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>data.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/data.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>data.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/data.h</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>gpio_if.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>CC3200_SDK_ROOT/example/common/gpio_if.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>i2c_if.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>CC3200_SDK_ROOT/example/common/i2c_if.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>main.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/main.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>network_common.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>CC3200_SDK_ROOT/example/common/network_common.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>startup_ccs.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>CC3200_SDK_ROOT/example/common/startup_ccs.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>tmp006.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/tmp006.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>tmp006.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/tmp006.h</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>wifi.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/wifi.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>wifi.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-2-PROJECT_LOC/wifi.h</locationURI>
|
|
||||||
</link>
|
|
||||||
</linkedResources>
|
|
||||||
<variableList>
|
|
||||||
<variable>
|
|
||||||
<name>CC3200_SDK_ROOT</name>
|
|
||||||
<value>$%7BTI_PRODUCTS_DIR%7D/CC3200SDK_1.2.0/cc3200-sdk</value>
|
|
||||||
</variable>
|
|
||||||
</variableList>
|
|
||||||
</projectDescription>
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
//*****************************************************************************
|
|
||||||
// cc3200v1p32.cmd
|
|
||||||
//
|
|
||||||
// CCS linker configuration file for cc3200 ES 1.32.
|
|
||||||
//
|
|
||||||
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// Redistribution and use in source and binary forms, with or without
|
|
||||||
// modification, are permitted provided that the following conditions
|
|
||||||
// are met:
|
|
||||||
//
|
|
||||||
// Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
//
|
|
||||||
// Redistributions in binary form must reproduce the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer in the
|
|
||||||
// documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
//
|
|
||||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
// its contributors may be used to endorse or promote products derived
|
|
||||||
// from this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
|
|
||||||
|
|
||||||
--retain=g_pfnVectors
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// The following command line options are set as part of the CCS project.
|
|
||||||
// If you are building using the command line, or for some reason want to
|
|
||||||
// define them here, you can uncomment and modify these lines as needed.
|
|
||||||
// If you are using CCS for building, it is probably better to make any such
|
|
||||||
// modifications in your CCS project and leave this file alone.
|
|
||||||
//*****************************************************************************
|
|
||||||
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// The starting address of the application. Normally the interrupt vectors
|
|
||||||
// must be located at the beginning of the application.
|
|
||||||
//*****************************************************************************
|
|
||||||
#define RAM_BASE 0x20004000
|
|
||||||
|
|
||||||
/* System memory map */
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
/* Application uses internal RAM for program and data */
|
|
||||||
SRAM_CODE (RWX) : origin = 0x20004000, length = 0x20000
|
|
||||||
SRAM_DATA (RWX) : origin = 0x20024000, length = 0x1C000
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Section allocation in memory */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.intvecs: > RAM_BASE
|
|
||||||
.init_array : > SRAM_CODE
|
|
||||||
.vtable : > SRAM_CODE
|
|
||||||
.text : > SRAM_CODE
|
|
||||||
.const : > SRAM_CODE
|
|
||||||
.cinit : > SRAM_CODE
|
|
||||||
.pinit : > SRAM_CODE
|
|
||||||
.data : > SRAM_DATA
|
|
||||||
.bss : > SRAM_DATA
|
|
||||||
.sysmem : > SRAM_DATA
|
|
||||||
.stack : > SRAM_DATA(HIGH)
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<configurations XML_version="1.2" id="configurations_0">
|
|
||||||
<configuration XML_version="1.2" id="configuration_0">
|
|
||||||
<instance XML_version="1.2" desc="Stellaris In-Circuit Debug Interface" href="connections/Stellaris_ICDI_Connection.xml" id="Stellaris In-Circuit Debug Interface" xml="Stellaris_ICDI_Connection.xml" xmlpath="connections"/>
|
|
||||||
<connection XML_version="1.2" id="Stellaris In-Circuit Debug Interface">
|
|
||||||
<instance XML_version="1.2" href="drivers/cc3200_cs_icepick.xml" id="drivers" xml="cc3200_cs_icepick.xml" xmlpath="drivers"/>
|
|
||||||
<instance XML_version="1.2" href="drivers/stellaris_cs_dap.xml" id="drivers" xml="stellaris_cs_dap.xml" xmlpath="drivers"/>
|
|
||||||
<instance XML_version="1.2" href="drivers/cc3200_cortex_m4.xml" id="drivers" xml="cc3200_cortex_m4.xml" xmlpath="drivers"/>
|
|
||||||
<platform XML_version="1.2" id="platform_0">
|
|
||||||
<instance XML_version="1.2" desc="CC3200" href="devices/CC3200.xml" id="CC3200" xml="CC3200.xml" xmlpath="devices"/>
|
|
||||||
</platform>
|
|
||||||
</connection>
|
|
||||||
</configuration>
|
|
||||||
</configurations>
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
|
||||||
on the device and connection settings specified in your project on the Properties > General page.
|
|
||||||
|
|
||||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
|
||||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
|
||||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
|
||||||
you may create your own target-configuration file for this project and manage it manually. You can
|
|
||||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
|
||||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
clean:
|
|
||||||
rm -rf */Debug */Release */.launches */.settings */.xdchelp */src
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<?ccsproject version="1.0"?>
|
|
||||||
<projectOptions>
|
|
||||||
<deviceVariant value="Cortex M.CC3200"/>
|
|
||||||
<deviceFamily value="TMS470"/>
|
|
||||||
<deviceEndianness value="little"/>
|
|
||||||
<codegenToolVersion value="5.2.7"/>
|
|
||||||
<isElfFormat value="true"/>
|
|
||||||
<connection value="common/targetdb/connections/Stellaris_ICDI_Connection.xml"/>
|
|
||||||
<createSlaveProjects value=""/>
|
|
||||||
<templateProperties value="id=com.ti.common.project.core.emptyProjectWithMainTemplate,"/>
|
|
||||||
<isTargetManual value="false"/>
|
|
||||||
</projectOptions>
|
|
||||||
@@ -1,166 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.491265557">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.491265557" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="lib" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.491265557" name="Debug" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.491265557." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.libraryDebugToolchain.244233268" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.libraryDebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.librarianDebug.1509527371">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1442571441" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.CC3200"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=staticLibrary"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1832131686" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.targetPlatformDebug.299496807" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.targetPlatformDebug"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.builderDebug.120381516" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.builderDebug"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.compilerDebug.272902152" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.compilerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE.2068422510" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="SL_PLATFORM_MULTI_THREADED=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="cc3200"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.1338331575" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.1347923655" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.1255051417" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.776774167" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.vfplib" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL.42164570" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING.1942824714" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER.1603355331" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.236456106" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH.1427839717" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink_extlib/provisioninglib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN.2146523713" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.1654856947" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.610557791" name="Speed vs. size trade-offs (--opt_for_speed, -mf)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS.184955523" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS.677106420" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS.844089326" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS.512556736" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS.845246795" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.librarianDebug.1509527371" name="ARM Archiver" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.librarianDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.archiverID.OUTPUT_FILE.1154288099" name="Output file" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.archiverID.OUTPUT_FILE" value=""${ProjName}.lib"" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.TMS470.Release.900958360">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.900958360" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="lib" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Release.900958360" name="Release" parent="com.ti.ccstudio.buildDefinitions.TMS470.Release" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Release.900958360." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.ReleaseToolchain.1361429433" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.librarianRelease.761130555">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.684085319" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=Cortex M.CC3200"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=staticLibrary"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1385252318" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.targetPlatformRelease.1983840374" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.targetPlatformRelease"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.builderRelease.1696443488" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.builderRelease"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.compilerRelease.1871833554" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.compilerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE.1633469996" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="SL_PLATFORM_MULTI_THREADED=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="cc3200"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.627114921" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.297847373" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.906178230" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.1539769902" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.FLOAT_SUPPORT.vfplib" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING.498836379" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER.1464954868" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.1547084924" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH.1070323914" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink_extlib/provisioninglib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CC3200_SDK_ROOT}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN.1988330306" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.library.release.1366420658" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.library.release" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.1169603203" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS.2007627314" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS.800017124" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS.198177467" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS.1388857952" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.librarianRelease.761130555" name="ARM Archiver" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.library.librarianRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.TMS470_5.2.archiverID.OUTPUT_FILE.1312006799" name="Output file" superClass="com.ti.ccstudio.buildDefinitions.TMS470_5.2.archiverID.OUTPUT_FILE" value=""${ProjName}.lib"" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="cc3200v1p32.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="Mongoose.com.ti.ccstudio.buildDefinitions.TMS470.ProjectType.368747604" name="ARM" projectType="com.ti.ccstudio.buildDefinitions.TMS470.ProjectType"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="scannerConfiguration"/>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
|
||||||
<project-mappings>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
</project-mappings>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
|
||||||
<configuration configurationName="Release">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/Mongoose"/>
|
|
||||||
</configuration>
|
|
||||||
<configuration configurationName="Debug">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/Mongoose"/>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
</cproject>
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>Mongoose</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
<linkedResources>
|
|
||||||
<link>
|
|
||||||
<name>mongoose.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-4-PROJECT_LOC/mongoose.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>mongoose.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-4-PROJECT_LOC/mongoose.h</locationURI>
|
|
||||||
</link>
|
|
||||||
</linkedResources>
|
|
||||||
<variableList>
|
|
||||||
<variable>
|
|
||||||
<name>CC3200_SDK_ROOT</name>
|
|
||||||
<value>$%7BTI_PRODUCTS_DIR%7D/CC3200SDK_1.2.0/cc3200-sdk</value>
|
|
||||||
</variable>
|
|
||||||
</variableList>
|
|
||||||
</projectDescription>
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
# Code Composer Studio example projects
|
|
||||||
|
|
||||||
To run them you will need:
|
|
||||||
- [CC3200-LAUNCHXL](http://www.ti.com/tool/cc3200-launchxl) dev board.
|
|
||||||
- [CC3200SDK 1.2.0](http://www.ti.com/tool/cc3200sdk) installed in `TI_PRODUCTS_DIR/CC3200SDK_1.2.0` (typically `C:\ti\CC3200SDK_1.2.0` on Windows, `/home/USER/ti/CC3200SDK_1.2.0` on Linux).
|
|
||||||
- The latest CC3200SDK-SERVICEPACK should also be installed and flashed to the device
|
|
||||||
- Code Composer Studio 6 IDE
|
|
||||||
- Mongoose source code. Either clone the [Git repo](https://github.com/cesanta/mongoose.git) or download the [ZIP archive](https://github.com/cesanta/mongoose/archive/master.zip).
|
|
||||||
|
|
||||||
## Mongoose - The library project
|
|
||||||
This project produces `Mongoose.lib` - a static library meant to be used by other projects.
|
|
||||||
Feel free to use it as a dependency for your own projects or just copy `mongoose.c` and `mongoose.h`.
|
|
||||||
Note that by default a lot of features are enabled, including file serving (which we use in our examples).
|
|
||||||
You can trim a lot of fat by turning various build options off.
|
|
||||||
A minimal HTTP serving configuration is about 25 K (compiled for ARM® Cortex®M4 with GCC 4.9 with size optimization on).
|
|
||||||
|
|
||||||
## MG_hello - A simple demo
|
|
||||||
MG_hello project is a simple web server that serves files from the SimpleLink file system and allows them to be uploaded.
|
|
||||||
This project depends on the Mongoose library project, make sure you import them both.
|
|
||||||
When importing, ensure the “copy project to workspace” checkbox is *unchecked*, otherwise file references will be broken.
|
|
||||||
|
|
||||||
When built and run on the device, by default, the example will set up a Wi-Fi network called “Mongoose” (no password).
|
|
||||||
|
|
||||||
Assuming everything works, you should see the following output in CIO:
|
|
||||||
|
|
||||||
```
|
|
||||||
main Hello, world!
|
|
||||||
mg_init MG task running
|
|
||||||
mg_init Starting NWP...
|
|
||||||
mg_init NWP started
|
|
||||||
wifi_setup_ap WiFi: AP Mongoose configured
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: If the demo does not proceed past “Starting NWP…”, please reset the board (possibly related to [this](https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/p/499123/1806610#1806610) and our [workaround](https://github.com/cesanta/mongoose/commit/848c884fff80de03051344e230392a68d4b51b84) is not always effective).
|
|
||||||
|
|
||||||
And after connecting to Wi-Fi network Mongoose, the following page on http://192.168.4.1/:
|
|
||||||
|
|
||||||
<img src="upload_form.png" width="364" height="239">
|
|
||||||
|
|
||||||
Pick a small file (say favicon.ico) and upload.
|
|
||||||
You should get “Ok, favicon.ico - 16958 bytes.” and it will be served back to you ([link](http://192.168.4.1/)).
|
|
||||||
If you upload index.html, it will be served instead of the form (but the form will be accessible at [/upload](http://192.168.4.1/upload)).
|
|
||||||
|
|
||||||
## MG_sensor_demo - A more elaborate demo project
|
|
||||||
|
|
||||||
This demo shows the use of [timers](https://docs.cesanta.com/mongoose/latest/#/c-api/net.h/mg_set_timer/) and serving a WebSocket data stream to (potentially) multiple subscribers.
|
|
||||||
Data from the on-board temperature sensors and accelerometer is streamed to any clients connected over WebSocket, which allows building of responsive, near-real time dashboards.
|
|
||||||
|
|
||||||
The main [event handler function](https://github.com/cesanta/mongoose/blob/master/examples/CC3200/main.c#L81) in main.c does everything MG_hello’s function does, but also handles the websocket connection event - when `MG_EV_WEBSOCKET_HANDSHAKE_DONE` arrives, it switches the event handler to a different one - data_conn_handler (defined [here](https://github.com/cesanta/mongoose/blob/master/examples/CC3200/data.c#L144) in data.c). Doing this is not required, but it keeps the code modular and function size manageable.
|
|
||||||
|
|
||||||
Data acquisition is performed at regular intervals by a timer. Mongoose timers are not very accurate (remember - everything is executed in single thread), but good enough for this case.The timer is first set [in mg_init()](https://github.com/cesanta/mongoose/blob/master/examples/CC3200/main.c#L200), and the `MG_EV_TIMER` event is handled [in the main handler](https://github.com/cesanta/mongoose/blob/master/examples/CC3200/main.c#L123). Mongoose timers must be re-armed manually.
|
|
||||||
|
|
||||||
To try this demo from Code Composer Studio IDE, follow the steps above for MG_hello. Same as for MG_hello, you will only see an upload for initially. Please upload `main.js` and `index.html` from the [slfs directory](https://github.com/cesanta/mongoose/tree/master/examples/CC3200/slfs) and reload the page. You should see something like this:
|
|
||||||
|
|
||||||
<img src="sensor_demo.png" width="770" height="856">
|
|
||||||
|
|
||||||
[This short video](https://youtu.be/T0aFUKIBZxk) shows the demo in action.
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 137 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB |
@@ -1,78 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_COMMON_CS_DBG_H_
|
|
||||||
#define CS_COMMON_CS_DBG_H_
|
|
||||||
|
|
||||||
#if CS_ENABLE_STDIO
|
|
||||||
#include <stdio.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CS_ENABLE_DEBUG
|
|
||||||
#define CS_ENABLE_DEBUG 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CS_LOG_ENABLE_TS_DIFF
|
|
||||||
#define CS_LOG_ENABLE_TS_DIFF 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
enum cs_log_level {
|
|
||||||
LL_NONE = -1,
|
|
||||||
LL_ERROR = 0,
|
|
||||||
LL_WARN = 1,
|
|
||||||
LL_INFO = 2,
|
|
||||||
LL_DEBUG = 3,
|
|
||||||
LL_VERBOSE_DEBUG = 4,
|
|
||||||
|
|
||||||
_LL_MIN = -2,
|
|
||||||
_LL_MAX = 5,
|
|
||||||
};
|
|
||||||
|
|
||||||
void cs_log_set_level(enum cs_log_level level);
|
|
||||||
|
|
||||||
#if CS_ENABLE_STDIO
|
|
||||||
|
|
||||||
void cs_log_set_file(FILE *file);
|
|
||||||
|
|
||||||
extern enum cs_log_level cs_log_level;
|
|
||||||
void cs_log_print_prefix(const char *func);
|
|
||||||
void cs_log_printf(const char *fmt, ...);
|
|
||||||
|
|
||||||
#define LOG(l, x) \
|
|
||||||
if (cs_log_level >= l) { \
|
|
||||||
cs_log_print_prefix(__func__); \
|
|
||||||
cs_log_printf x; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef CS_NDEBUG
|
|
||||||
|
|
||||||
#define DBG(x) \
|
|
||||||
if (cs_log_level >= LL_VERBOSE_DEBUG) { \
|
|
||||||
cs_log_print_prefix(__func__); \
|
|
||||||
cs_log_printf x; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#else /* NDEBUG */
|
|
||||||
|
|
||||||
#define DBG(x)
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#else /* CS_ENABLE_STDIO */
|
|
||||||
|
|
||||||
#define LOG(l, x)
|
|
||||||
#define DBG(x)
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#endif /* CS_COMMON_CS_DBG_H_ */
|
|
||||||
@@ -1,179 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "data.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#include "gpio_if.h"
|
|
||||||
|
|
||||||
#include "bm222.h"
|
|
||||||
#include "tmp006.h"
|
|
||||||
#include "cs_dbg.h"
|
|
||||||
|
|
||||||
struct temp_data {
|
|
||||||
double ts;
|
|
||||||
double volt;
|
|
||||||
double temp;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct conn_state {
|
|
||||||
struct temp_data td;
|
|
||||||
double last_sent_td;
|
|
||||||
unsigned char led;
|
|
||||||
double last_sent_led;
|
|
||||||
double last_sent_acc;
|
|
||||||
};
|
|
||||||
|
|
||||||
static int s_tmp006_addr;
|
|
||||||
static struct temp_data s_temp_data;
|
|
||||||
static struct bm222_ctx *s_accel_ctx;
|
|
||||||
|
|
||||||
void data_init_sensors(int tmp006_addr, int bm222_addr) {
|
|
||||||
s_tmp006_addr = tmp006_addr;
|
|
||||||
if (!tmp006_init(tmp006_addr, TMP006_CONV_2, false)) {
|
|
||||||
LOG(LL_ERROR, ("Failed to init temperature sensor"));
|
|
||||||
} else {
|
|
||||||
LOG(LL_INFO, ("Temperature sensor initialized"));
|
|
||||||
}
|
|
||||||
s_accel_ctx = bm222_init(bm222_addr);
|
|
||||||
if (s_accel_ctx == NULL) {
|
|
||||||
LOG(LL_ERROR, ("Failed to init accelerometer"));
|
|
||||||
} else {
|
|
||||||
LOG(LL_INFO, ("Accelerometer initialized"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void data_collect(void) {
|
|
||||||
double volt = tmp006_read_sensor_voltage(s_tmp006_addr);
|
|
||||||
double temp = tmp006_read_die_temp(s_tmp006_addr);
|
|
||||||
if (volt != TMP006_INVALID_READING && temp != TMP006_INVALID_READING) {
|
|
||||||
s_temp_data.temp = temp;
|
|
||||||
s_temp_data.volt = volt;
|
|
||||||
s_temp_data.ts = mg_time();
|
|
||||||
LOG(LL_DEBUG, ("V = %lf mV, T = %lf C", volt, temp));
|
|
||||||
}
|
|
||||||
bm222_get_data(s_accel_ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void send_temp(struct mg_connection *nc, const struct temp_data *td) {
|
|
||||||
if (td->ts == 0) return;
|
|
||||||
mg_printf_websocket_frame(nc, WEBSOCKET_OP_TEXT,
|
|
||||||
"{\"t\": 0, \"ts\": %lf, \"sv\": %lf, \"dt\": %lf}",
|
|
||||||
td->ts, td->volt, td->temp);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void send_led(struct mg_connection *nc, double ts, unsigned char led) {
|
|
||||||
if (ts == 0) return;
|
|
||||||
mg_printf_websocket_frame(nc, WEBSOCKET_OP_TEXT,
|
|
||||||
"{\"t\": 1, \"ts\": %lf, \"v\": %d}", ts, led);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void send_acc_sample(struct mg_connection *nc,
|
|
||||||
const struct bm222_sample *s) {
|
|
||||||
if (s->ts == 0) return;
|
|
||||||
mg_printf_websocket_frame(
|
|
||||||
nc, WEBSOCKET_OP_TEXT,
|
|
||||||
"{\"t\": 2, \"ts\": %lf, \"x\": %d, \"y\": %d, \"z\": %d}", s->ts, s->x,
|
|
||||||
s->y, s->z);
|
|
||||||
}
|
|
||||||
|
|
||||||
static double send_acc_data_since(struct mg_connection *nc,
|
|
||||||
const struct bm222_ctx *ctx, double since) {
|
|
||||||
int i = (ctx->last_index + 1) % BM222_NUM_SAMPLES, n = BM222_NUM_SAMPLES;
|
|
||||||
double last_sent_ts = 0;
|
|
||||||
for (; n > 0; i = (i + 1) % BM222_NUM_SAMPLES, n--) {
|
|
||||||
const struct bm222_sample *s = ctx->data + i;
|
|
||||||
if (s->ts <= since) continue;
|
|
||||||
send_acc_sample(nc, s);
|
|
||||||
last_sent_ts = s->ts;
|
|
||||||
}
|
|
||||||
return last_sent_ts;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void process_command(struct mg_connection *nc, unsigned char *data,
|
|
||||||
size_t len) {
|
|
||||||
// TODO(lsm): use proper JSON parser
|
|
||||||
int cmd, val;
|
|
||||||
if (sscanf((char *) data, "{\"t\":%d,\"v\":%d}", &cmd, &val) != 2) {
|
|
||||||
LOG(LL_ERROR, ("Invalid request: %.*s", (int) len, data));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (cmd == 1) {
|
|
||||||
switch (val) {
|
|
||||||
case '0': {
|
|
||||||
GPIO_IF_LedOff(MCU_RED_LED_GPIO);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case '1': {
|
|
||||||
GPIO_IF_LedOn(MCU_RED_LED_GPIO);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case '2': {
|
|
||||||
GPIO_IF_LedToggle(MCU_RED_LED_GPIO);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default: {
|
|
||||||
LOG(LL_ERROR, ("Invalid value: %.*s", (int) len, data));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
LOG(LL_ERROR, ("Unknown command: %.*s", (int) len, data));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void data_conn_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|
||||||
struct conn_state *cs = (struct conn_state *) nc->user_data;
|
|
||||||
if (cs == NULL) {
|
|
||||||
cs = (struct conn_state *) calloc(1, sizeof(*cs));
|
|
||||||
nc->user_data = cs;
|
|
||||||
}
|
|
||||||
switch (ev) {
|
|
||||||
case MG_EV_POLL:
|
|
||||||
case MG_EV_TIMER: {
|
|
||||||
const double now = mg_time();
|
|
||||||
const unsigned char led = GPIO_IF_LedStatus(MCU_RED_LED_GPIO);
|
|
||||||
/* Send if there was a change or repeat last data every second. */
|
|
||||||
if (s_temp_data.volt != cs->td.volt || s_temp_data.temp != cs->td.temp ||
|
|
||||||
now > cs->last_sent_td + 1.0) {
|
|
||||||
memcpy(&cs->td, &s_temp_data, sizeof(cs->td));
|
|
||||||
send_temp(nc, &cs->td);
|
|
||||||
cs->last_sent_td = now;
|
|
||||||
}
|
|
||||||
if (led != cs->led || now > cs->last_sent_led + 1.0) {
|
|
||||||
send_led(nc, now, led);
|
|
||||||
cs->led = led;
|
|
||||||
cs->last_sent_led = now;
|
|
||||||
}
|
|
||||||
if (s_accel_ctx != NULL) {
|
|
||||||
const struct bm222_sample *ls =
|
|
||||||
s_accel_ctx->data + s_accel_ctx->last_index;
|
|
||||||
if (cs->last_sent_acc == 0) {
|
|
||||||
send_acc_sample(nc, ls);
|
|
||||||
cs->last_sent_acc = ls->ts;
|
|
||||||
} else {
|
|
||||||
double last_sent_ts =
|
|
||||||
send_acc_data_since(nc, s_accel_ctx, cs->last_sent_acc);
|
|
||||||
if (last_sent_ts > 0) cs->last_sent_acc = last_sent_ts;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
nc->ev_timer_time = now + 0.05;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_WEBSOCKET_FRAME: {
|
|
||||||
struct websocket_message *wm = (struct websocket_message *) ev_data;
|
|
||||||
process_command(nc, wm->data, wm->size);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_CLOSE: {
|
|
||||||
LOG(LL_INFO, ("%p closed", nc));
|
|
||||||
free(cs);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_MONGOOSE_EXAMPLES_CC3200_DATA_H_
|
|
||||||
#define CS_MONGOOSE_EXAMPLES_CC3200_DATA_H_
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
|
|
||||||
void data_collect(void);
|
|
||||||
void data_init_sensors(int tmp006_addr, int bm222_addr);
|
|
||||||
void data_conn_handler(struct mg_connection *nc, int ev, void *p);
|
|
||||||
|
|
||||||
#endif /* CS_MONGOOSE_EXAMPLES_CC3200_DATA_H_ */
|
|
||||||
@@ -1,296 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <inc/hw_types.h>
|
|
||||||
#include <inc/hw_ints.h>
|
|
||||||
#include <inc/hw_memmap.h>
|
|
||||||
|
|
||||||
#include <driverlib/gpio.h>
|
|
||||||
#include <driverlib/interrupt.h>
|
|
||||||
#include <driverlib/pin.h>
|
|
||||||
#include <driverlib/prcm.h>
|
|
||||||
#include <driverlib/rom.h>
|
|
||||||
#include <driverlib/rom_map.h>
|
|
||||||
#include <driverlib/uart.h>
|
|
||||||
#include <driverlib/utils.h>
|
|
||||||
|
|
||||||
#include <example/common/gpio_if.h>
|
|
||||||
#include <example/common/i2c_if.h>
|
|
||||||
|
|
||||||
/* Mongoose.h brings in SimpleLink support. Do not include simplelink.h. */
|
|
||||||
#include <mongoose.h>
|
|
||||||
#include "cs_dbg.h"
|
|
||||||
#include <simplelink/include/device.h>
|
|
||||||
|
|
||||||
#include "data.h"
|
|
||||||
#include "wifi.h"
|
|
||||||
|
|
||||||
/* Set up an AP or connect to existing WiFi network. */
|
|
||||||
#define WIFI_AP_SSID "Mongoose"
|
|
||||||
#define WIFI_AP_PASS ""
|
|
||||||
#define WIFI_AP_CHAN 6
|
|
||||||
// #define WIFI_STA_SSID "YourWiFi"
|
|
||||||
// #define WIFI_STA_PASS "YourPass"
|
|
||||||
|
|
||||||
#define DATA_COLLECTION_INTERVAL_MS 20
|
|
||||||
|
|
||||||
#define CONSOLE_BAUD_RATE 115200
|
|
||||||
#define CONSOLE_UART UARTA0_BASE
|
|
||||||
#define CONSOLE_UART_PERIPH PRCM_UARTA0
|
|
||||||
#define MGOS_TASK_PRIORITY 3
|
|
||||||
#define MG_TASK_STACK_SIZE 8192
|
|
||||||
|
|
||||||
#define BM222_ADDR 0x18
|
|
||||||
#define TMP006_ADDR 0x41
|
|
||||||
|
|
||||||
void fs_slfs_set_new_file_size(const char *name, size_t size);
|
|
||||||
|
|
||||||
static const char *upload_form =
|
|
||||||
"\
|
|
||||||
<h1>Upload file</h1> \
|
|
||||||
<form action='/upload' method='POST' enctype='multipart/form-data'> \
|
|
||||||
<input type='file' name='file'> \
|
|
||||||
<input type='submit' value='Upload'> \
|
|
||||||
</form>";
|
|
||||||
|
|
||||||
static struct mg_str upload_fname(struct mg_connection *nc,
|
|
||||||
struct mg_str fname) {
|
|
||||||
struct mg_str lfn;
|
|
||||||
char *fn = malloc(fname.len + 4);
|
|
||||||
memcpy(fn, "SL:", 3);
|
|
||||||
memcpy(fn + 3, fname.p, fname.len);
|
|
||||||
fn[3 + fname.len] = '\0';
|
|
||||||
if (nc->user_data != NULL) {
|
|
||||||
intptr_t cl = (intptr_t) nc->user_data;
|
|
||||||
if (cl >= 0) {
|
|
||||||
fs_slfs_set_new_file_size(fn + 3, cl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
lfn.len = fname.len + 4;
|
|
||||||
lfn.p = fn;
|
|
||||||
return lfn;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void mg_ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|
||||||
switch (ev) {
|
|
||||||
case MG_EV_ACCEPT: {
|
|
||||||
char addr[32];
|
|
||||||
mg_conn_addr_to_str(nc, addr, sizeof(addr), MG_SOCK_STRINGIFY_REMOTE |
|
|
||||||
MG_SOCK_STRINGIFY_IP |
|
|
||||||
MG_SOCK_STRINGIFY_PORT);
|
|
||||||
LOG(LL_INFO, ("%p conn from %s", nc, addr));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_REQUEST: {
|
|
||||||
char addr[32];
|
|
||||||
struct http_message *hm = (struct http_message *) ev_data;
|
|
||||||
cs_stat_t st;
|
|
||||||
mg_conn_addr_to_str(nc, addr, sizeof(addr), MG_SOCK_STRINGIFY_REMOTE |
|
|
||||||
MG_SOCK_STRINGIFY_IP |
|
|
||||||
MG_SOCK_STRINGIFY_PORT);
|
|
||||||
LOG(LL_INFO,
|
|
||||||
("HTTP request from %s: %.*s %.*s", addr, (int) hm->method.len,
|
|
||||||
hm->method.p, (int) hm->uri.len, hm->uri.p));
|
|
||||||
if (mg_vcmp(&hm->uri, "/upload") == 0 ||
|
|
||||||
(mg_vcmp(&hm->uri, "/") == 0 && mg_stat("SL:index.html", &st) != 0)) {
|
|
||||||
mg_send(nc, upload_form, strlen(upload_form));
|
|
||||||
nc->flags |= MG_F_SEND_AND_CLOSE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
struct mg_serve_http_opts opts;
|
|
||||||
memset(&opts, 0, sizeof(opts));
|
|
||||||
opts.document_root = "SL:";
|
|
||||||
mg_serve_http(nc, hm, opts);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_CLOSE: {
|
|
||||||
LOG(LL_INFO, ("%p closed", nc));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_WEBSOCKET_HANDSHAKE_DONE: {
|
|
||||||
LOG(LL_INFO, ("%p switching to data mode", nc));
|
|
||||||
nc->handler = data_conn_handler;
|
|
||||||
nc->ev_timer_time = mg_time(); /* Immediately */
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_TIMER: {
|
|
||||||
data_collect();
|
|
||||||
nc->ev_timer_time = mg_time() + (DATA_COLLECTION_INTERVAL_MS * 0.001);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
/* SimpleLink FS requires pre-declaring max file size. We use Content-Length
|
|
||||||
* for that purpose - it will not exactly match file size, but is guaranteed
|
|
||||||
* to exceed it and should be close enough. */
|
|
||||||
case MG_EV_HTTP_MULTIPART_REQUEST: {
|
|
||||||
struct http_message *hm = (struct http_message *) ev_data;
|
|
||||||
struct mg_str *cl_header = mg_get_http_header(hm, "Content-Length");
|
|
||||||
intptr_t cl = -1;
|
|
||||||
if (cl_header != NULL && cl_header->len < 20) {
|
|
||||||
char buf[20];
|
|
||||||
memcpy(buf, cl_header->p, cl_header->len);
|
|
||||||
buf[cl_header->len] = '\0';
|
|
||||||
cl = atoi(buf);
|
|
||||||
if (cl < 0) cl = -1;
|
|
||||||
}
|
|
||||||
nc->user_data = (void *) cl;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_PART_BEGIN:
|
|
||||||
case MG_EV_HTTP_PART_DATA:
|
|
||||||
case MG_EV_HTTP_PART_END: {
|
|
||||||
struct mg_http_multipart_part *mp =
|
|
||||||
(struct mg_http_multipart_part *) ev_data;
|
|
||||||
if (ev == MG_EV_HTTP_PART_BEGIN) {
|
|
||||||
LOG(LL_INFO, ("Begin file upload: %s", mp->file_name));
|
|
||||||
} else if (ev == MG_EV_HTTP_PART_END) {
|
|
||||||
LOG(LL_INFO, ("End file upload: %s", mp->file_name));
|
|
||||||
}
|
|
||||||
mg_file_upload_handler(nc, ev, ev_data, upload_fname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void mg_init(struct mg_mgr *mgr) {
|
|
||||||
LOG(LL_INFO, ("MG task running"));
|
|
||||||
|
|
||||||
stop_nwp(); /* See function description in wifi.c */
|
|
||||||
LOG(LL_INFO, ("Starting NWP..."));
|
|
||||||
int role = sl_Start(0, 0, 0);
|
|
||||||
if (role < 0) {
|
|
||||||
LOG(LL_ERROR, ("Failed to start NWP"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
SlVersionFull ver;
|
|
||||||
unsigned char opt = SL_DEVICE_GENERAL_VERSION;
|
|
||||||
unsigned char len = sizeof(ver);
|
|
||||||
|
|
||||||
memset(&ver, 0, sizeof(ver));
|
|
||||||
sl_DevGet(SL_DEVICE_GENERAL_CONFIGURATION, &opt, &len,
|
|
||||||
(unsigned char *) (&ver));
|
|
||||||
LOG(LL_INFO, ("NWP v%d.%d.%d.%d started, host v%d.%d.%d.%d",
|
|
||||||
ver.NwpVersion[0], ver.NwpVersion[1], ver.NwpVersion[2],
|
|
||||||
ver.NwpVersion[3], SL_MAJOR_VERSION_NUM, SL_MINOR_VERSION_NUM,
|
|
||||||
SL_VERSION_NUM, SL_SUB_VERSION_NUM));
|
|
||||||
}
|
|
||||||
|
|
||||||
GPIO_IF_LedToggle(MCU_RED_LED_GPIO);
|
|
||||||
|
|
||||||
data_init_sensors(TMP006_ADDR, BM222_ADDR);
|
|
||||||
|
|
||||||
sl_fs_init();
|
|
||||||
|
|
||||||
#if defined(WIFI_STA_SSID)
|
|
||||||
if (!wifi_setup_sta(WIFI_STA_SSID, WIFI_STA_PASS)) {
|
|
||||||
LOG(LL_ERROR, ("Error setting up WiFi station"));
|
|
||||||
}
|
|
||||||
#elif defined(WIFI_AP_SSID)
|
|
||||||
if (!wifi_setup_ap(WIFI_AP_SSID, WIFI_AP_PASS, WIFI_AP_CHAN)) {
|
|
||||||
LOG(LL_ERROR, ("Error setting up WiFi AP"));
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#error WiFi not configured
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* We don't need SimpleLink's web server. */
|
|
||||||
sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID);
|
|
||||||
|
|
||||||
const char *err = "";
|
|
||||||
struct mg_bind_opts opts;
|
|
||||||
memset(&opts, 0, sizeof(opts));
|
|
||||||
opts.error_string = &err;
|
|
||||||
|
|
||||||
struct mg_connection *nc = mg_bind_opt(mgr, "80", mg_ev_handler, opts);
|
|
||||||
if (nc != NULL) {
|
|
||||||
mg_set_protocol_http_websocket(nc);
|
|
||||||
nc->ev_timer_time = mg_time(); /* Start data collection */
|
|
||||||
} else {
|
|
||||||
LOG(LL_ERROR, ("Failed to create listener: %s", err));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef USE_TIRTOS
|
|
||||||
/* Int vector table, defined in startup_gcc.c */
|
|
||||||
extern void (*const g_pfnVectors[])(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
#ifndef USE_TIRTOS
|
|
||||||
MAP_IntVTableBaseSet((unsigned long) &g_pfnVectors[0]);
|
|
||||||
#endif
|
|
||||||
MAP_IntEnable(FAULT_SYSTICK);
|
|
||||||
MAP_IntMasterEnable();
|
|
||||||
PRCMCC3200MCUInit();
|
|
||||||
|
|
||||||
/* Console UART init. */
|
|
||||||
MAP_PRCMPeripheralClkEnable(CONSOLE_UART_PERIPH, PRCM_RUN_MODE_CLK);
|
|
||||||
MAP_PinTypeUART(PIN_55, PIN_MODE_3); /* PIN_55 -> UART0_TX */
|
|
||||||
MAP_PinTypeUART(PIN_57, PIN_MODE_3); /* PIN_57 -> UART0_RX */
|
|
||||||
MAP_UARTConfigSetExpClk(
|
|
||||||
CONSOLE_UART, MAP_PRCMPeripheralClockGet(CONSOLE_UART_PERIPH),
|
|
||||||
CONSOLE_BAUD_RATE,
|
|
||||||
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE));
|
|
||||||
MAP_UARTFIFOLevelSet(CONSOLE_UART, UART_FIFO_TX1_8, UART_FIFO_RX4_8);
|
|
||||||
MAP_UARTFIFOEnable(CONSOLE_UART);
|
|
||||||
|
|
||||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
|
||||||
setvbuf(stderr, NULL, _IOLBF, 0);
|
|
||||||
cs_log_set_level(LL_INFO);
|
|
||||||
cs_log_set_file(stdout);
|
|
||||||
|
|
||||||
LOG(LL_INFO, ("Hello, world!"));
|
|
||||||
|
|
||||||
MAP_PinTypeI2C(PIN_01, PIN_MODE_1); /* SDA */
|
|
||||||
MAP_PinTypeI2C(PIN_02, PIN_MODE_1); /* SCL */
|
|
||||||
I2C_IF_Open(I2C_MASTER_MODE_FST);
|
|
||||||
|
|
||||||
/* Set up the red LED. Note that amber and green cannot be used as they share
|
|
||||||
* pins with I2C. */
|
|
||||||
MAP_PRCMPeripheralClkEnable(PRCM_GPIOA1, PRCM_RUN_MODE_CLK);
|
|
||||||
MAP_PinTypeGPIO(PIN_64, PIN_MODE_0, false);
|
|
||||||
MAP_GPIODirModeSet(GPIOA1_BASE, 0x2, GPIO_DIR_MODE_OUT);
|
|
||||||
GPIO_IF_LedConfigure(LED1);
|
|
||||||
GPIO_IF_LedOn(MCU_RED_LED_GPIO);
|
|
||||||
|
|
||||||
if (VStartSimpleLinkSpawnTask(8) != 0) {
|
|
||||||
LOG(LL_ERROR, ("Failed to create SL task"));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mg_start_task(MGOS_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
|
|
||||||
LOG(LL_ERROR, ("Failed to create MG task"));
|
|
||||||
}
|
|
||||||
|
|
||||||
osi_start();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* These are FreeRTOS hooks for various life situations. */
|
|
||||||
void vApplicationMallocFailedHook(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void vApplicationIdleHook(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void vApplicationStackOverflowHook(OsiTaskHandle *th, signed char *tn) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkHttpServerCallback(SlHttpServerEvent_t *e,
|
|
||||||
SlHttpServerResponse_t *resp) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkSockEventHandler(SlSockEvent_t *e) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkGeneralEventHandler(SlDeviceEvent_t *e) {
|
|
||||||
LOG(LL_ERROR, ("status %d sender %d", e->EventData.deviceEvent.status,
|
|
||||||
e->EventData.deviceEvent.sender));
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
docker.cesanta.com/cc3200-build:1.2.0-r8
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
@@ -1,83 +0,0 @@
|
|||||||
l<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>CC3200 Mongoose sensor demo</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<script type="text/javascript" src="main.js"></script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
* {
|
|
||||||
outline: none;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background: #7cf;
|
|
||||||
color: #555;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font: 16px/1.4 Helvetica, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.content {
|
|
||||||
width: 800px;
|
|
||||||
margin: 1em auto;
|
|
||||||
padding: 2em;
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:link, a:visited {
|
|
||||||
color: #69c;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#graphs {
|
|
||||||
margin-top: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.graph {
|
|
||||||
min-height: 12em;
|
|
||||||
border: 0px solid #ccc;
|
|
||||||
position: relative;
|
|
||||||
margin: 0;
|
|
||||||
padding-right: 5px;
|
|
||||||
width: 100%;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.graph_title {
|
|
||||||
position: absolute;
|
|
||||||
top: 0.5em; left: 1em;
|
|
||||||
color: #ccc;
|
|
||||||
font-weight: bold;
|
|
||||||
z-index: 999;
|
|
||||||
}
|
|
||||||
|
|
||||||
button { font-size: 100%; }
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="content">
|
|
||||||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABECAYAAAA85kOPAAAWc0lEQVR42u1bCXxU1dUPiAKCpUqxlYqKYmttq1W6fLbWtVXR2vpVsbQfS5pltrfct81kI2TYioKoiBtFFAHZFAVUrCwiFMQKik0IW1YgBBKEBJIQssyc73/ezIRJMkCA4Jev+n7en8Pkvjf3/u85//M/594XF/f19fX19fWfcqU4HL1cuv5dlyvUNE27TNf17l95YLzeFKHq+nuq0N9TVO19oemLTNMc9JUGZdCgQV3TMjLfBSgkNMNu+NygGVaW3+/v8h81WUyoszs19eK29LUscQNAyHG5pYDbIxM3WRF1iqK96PMlXHSq+wcPHnyex+Pp2eFBcVnWpYqmJWi6Oc1U1YGn6i/L2kOSLMoASPA4MFoAbQl45pJT3N7ZMLy/A7CTFEX5jX+w/4IOB0hCQsJFqqrer2r6LKz4XrhEQNeN9+SEhL4t+4I/voWJ3IT+d3tk8ZJHUmoioHCTZJXbDkXosiSJ22RZvi4WGeMZt8OytghhsIVl67o5Gv1+7HA4zu8wwGBA9+jC/EyW1cbwxEhRRYNheuckhF2CgZBVMUFV9cWq0D6RhZYHa6mMtpZIA1j1sqLuwzNyFU1fi/tew31CMozvhZ91rSyLj0HWdPz3tKOqpi2VdP2HHQYYhNibVc3IgbU0myD+fVRR1fdgQfN1wyrEv6vxfSODgclHQIjZ3BKeEerDfRtUYRwyTCsHAEyXJHUlntX0DG4MEixniSSZV3YYYB50+C/EQOeiNbZcff6OIw1/Bsk2TUINR6Hwqgfw/zr0rZcw4egoFQ02A4FwXof+jS3dD1ZVDddM7VCuFDJvU8HkKqJXseXgwRtBEHOl0MzNsjAWAoAJumm6oGP+IrzGw5ppPgLOGA7XBHcbzwqhLQNvFQjdrGWATvRs/pusalvBX7d2OALGoG4DdxQwACHrCJu4ooX8X2ibMemnNM26Q5Kk3qfSKRz2hw0b1kNRvNcI4R0OEBeCc3YBhEAMl8Vv6IuThPh2hwJFUczrEWLnww2OHh+sGuCVxqqvklQtCTx0FfdlU5dlX18hxBUcbRiAtvxGfHx8N48QP5NVdYwitO0AqjGap8A7+xD+fW532zTUOb+EMH+mqmINc0WEOPG5UbALGFZyRI8wAADjVo9HneN2qzlut5wLTpiLyd6K0Nu1rb9HRJ0cCOH43eckWamBhQabXBU8he8nsCT4kixC6RrL9BE2B8JS1sKMm3gEYbUWofQNt7BuiPTz+D09XR6P0yMZJeP+NolmzZlNs+fMowmPTeTJlEOvqKebOEL1XgArGQZu2QzijQanXgj9MYy5Tyz3bKuFtuXqJAuRCK6Ix49dwyZtg2Uq18Ok/wEyDZmyPSj9EAY1Cj/eM9oFXJKUoArfwVdffY5Kd2QQHXQQ1a2iffv30auz5hDuQWgWI88kPxJucQPc9S3WTVERqhGAZTkcKb24z7BhVg9Y0XVYsIcNw7ipnaKN8Uuswl4mOIDwEbjCAlD3os2Gu0SRn7ZfVTWlxYp0gtsM9Ki+nJmvTKIjxX8mKj2PqAAeUfpromA+1R2ro5kzZ7JmqZVU/dEz1FFXqULMAzh1YVfmRToIsnfquvc+VbOykD5sYNkACTA3ljWdXkLI+kTVXwPSNtGxdbC20HSjGCtT32QpilYG1StacEWnhATfRYrqnf7EExlU9O8H6WBuHyre0JsaCjpREC1wcAwoo5YqKytoypRnyOmSP3c43A+wFXg82g+wuv18Pt9FbRmrLFv9Acgc1kI8Lpm1ktBLNN3aZRg+e+y8gFi8A/DbEWenaA0jHtqjzONRKCLQbB6B6Ue5z2FYVYYFc201WGH8yevTj61eeg/VFFxMC2bcShPHDqadG75LweI4Cuy6nujYZuIrJyeXkpLdAYdTKnA63esSEpPf/2tCwtzExOTHk5I8wxmoU4IDd2H3joRzJQQO8fgj4tK2bqGtlpFXnXH5ACbqw4OYTClGPsOWwiH5ZQtZdcv7h0OrYACfTn5sOH2xpRf9e1V/rJaLho7w0Yxn76Wq7d1DLlU5kWqPEa1d9ym9vugdWrN+Ey17fx3NmfcuTZk6g7KyxtcpwihzOF1rHG4pXVGMG082bgk5GQDZ0VLrRBoDhYBRjNB+5sUwnjBMMhM/dCSWqIJZbgZ4t8QWfGqSBHH3/qKBdCTvQpoy8SGQrJNGpg+nx8c9SgXr+4aA2TuQyoufpvzNbqo9MIqoajI1HH6Fqg8tp4MHtlFh8R7a8K9cmv3aIsoYOara4fRsTHJ5xqSm+q86UbAAt6iw9MqI2DyeT+lsRTsBHnRV/DfPyp0c4BlJ0pIA0N5oQYUfqMb3abHuSU39y8UeyftBVmYCVed1p88/6E8LX/k1bV1zJe39rDflb7iMDuX0pEAh3KmwC9XlX0zBoovQelGwEK34UgruvhoEfTvRFzI1HplFVVU7aWdeCc1fuJj5ojoxybkS3HF3zAV1WZdCW70ZnbsBpAZY8DronN+2Wz7FlTIkfYbpTSGXjTz7qf5RRM22CqGyGByfkFL90Ts/JtodRyWf9KbDuRdiwp2IiuIAAIi3EA0W06zlh1oQn4OF3EDShV0pUPRNCu65kYKHRlHt0a2UnZNP/tGPBZKSHMVQwi4eX+toqj/KkTK8mEHZjpre+89Bkmi8yxHJI8mITGaF0C05thgc0DXRMXL+OH881eWdbwMRQASiwrjWQMRo3J/b0R1xuD/OBpaKQ2AF+Hm7r6dg1XTavSeHpk59gbgC6PHIvvh4f7dm40hL68PFdc7cw0R8hGs67QoKiyKoTLvSxmUBEO4GSQoVjVoDYz3oktLKPnzrJntSbQEj0hrzO9MeWNe6ZbfT5vUSrVo6hN5bcDMVbOhLdTvPD4Gbz5bWHdZj0BeV1bRgwVIEAfWg2y2lsbxoVkAzfQ7wYHXY/Rs50Wxr+I9rm0ZQfZz/hJE/hh97JlZ+o/h8lyclp659fNz/BCq29AhbS9tbff55tHbJD+jJJycgfOfRrNlz4QaCZs/Mom3rb6GarV2P999zM1H1HDpypJxef+MfHI7LYTmJnEs1pSK6PgBRaCuTMIAJqsLIQdj/SfvlSkLM53TfjkaqKFcUMbx1eB98gdttTYYCrdv4/nW2+Z8OKHaDRZRu6kXPT4mnZxCq09NGwkJ9tGhuAh3c0pdqdlxAjU39macuINp3F1WUL6cXpr0KHeTcpERJfiZZSIpFkYgKkMp13Xq0XUCBnrkED9/IiNuoq9p2SYhfxMiy73W5rd3zZ/yWGnafZ5PnaQPDpAuC3rmuL02d9CCNHT2C/v7M72jXx71DPBPDAoP5nF4MoLzc6ZSZNS6Y5JAzoxNSkK4vErYRlWosy5fl98edVSJpm6Tu8/0USd4uZna7BKmI9Q6HuKLZNmtKSq9EV9q8v40d0ViefXFoAvlnBgxbDZWAb3Z1oortPRC2OxPtCX3fsm9d3nloXWzQ6kDKS9/IRGBIXeN0qtc2CT4hfqeEas2svepV3ZzXhq2Z1rUORUnrI8v6jzl5NFNS7hWm90k8+EhYCzRCPC3U9Se7N+eg9EGQ/7tWLx5IgeLOJ594fttAo11xNiC2S8bqj5BfAD303oKf0rY1fWFVfejteYPI6/UecSspDzTRgKHcyGE7wjMAJ1e3fImQGr9SVfVHHuRjpyx5QOn2kFXDAkl9AivJRrK4Gw+tiarE1yG5fir6Ht4JTHakvTjxb0MbSz//VgvC5QjSJRRqI6AUfgufe565RUVcCMBs+2c/8IaLLDORxmQOoRTvCIg/PajrPjMyWQSJy5HSNJVcOTox1zApgyLW8Q6GrGl3xNJCTVdion4JYv1s0/KFCswhlKMldS2E3pgWRfCBLk/KZ4tn30HH8s9vxi2NBZ2peucAOlZ4gy3/A4g6dHAkBcsd+Nz5rIDhVrW9G8164S47/4pPMCnZgTRFGGQYFheqvsHjc7vdF0uKsj06pbFrNqFSCVcLjsJDIBJPspPJDwG5zuQU/QQJ2FGh6yOj73F6vMNNUzmweeX3Q4q2hS4p3zKQSnY8Dd64GX+/Atn0RgJiFCy966yB4UU4kPMNWvjyrylr5FDyWkmkG5is7h2bENYrbNHQOTmxkkpedBhCNajCyVH1ZDuKl2iaMceC9OcHSS0shoGBxWRF9e+e6EgdN3pUfP3uTX1ihuiKLb3p0w1PUcW+JUSHM6nmSB7tL6ui+prVFNx7y1m7FHPRsaLzqQRuvOrNmygzw93oljOaLIAtB5af23J/KlwGZQurl1RNOmndObQHrY2Dy+zjPSKEOnvzqwkYiDsA93ikf1qa1DshOeWlqZMfoUN5V2KQ3WJEjs60aeUt9OGHy6mhvpIqK7+gefMXISEsImr4GODcBqkfd1YA8YLQvjj6dPn1lJqifOHwjLrzeGnV8x2AkB8BhgGxN/qg4PFdFeZXhHzrLydNLLkGw3VdkBGijBiqaIYm7G1PpTYS7uBmMyO1WcjryxOTfIvmvDyEDuQ9RPWFl7bWL/j3oZxu9O7CP9Db766hQxVVNPW5F2jM+ClUUnoAbrWFaP8QCuw4c3Ds3GpnV3r9lUEYY8oKruYdpwfxfeRTJSHrh7XISqkQ2osILibcaATm+yAs/7vRivmE+oUZmhFkoHQ99R6guj+8hxyACl4VKUwpyshrXJK2fOrTKr01789wm14x0wAGqwLZ9YKXBwGQaZTlH02mNpTGjHmM9paWYUyH8J+fAjvPDBzOybavv4rSU52NSY6U1Gi3QEi+U1a0SrvcqYhGRKJlsiz35/nxTkN4kTudQQKZ0Q+mlxNRvgh92ViFG8LJ5feQAnzgcln01ON/xOQvOmF+xOA0FJ9Haxb/kCaMeYQ+XHwjPT/5LjINi7JzYDXUQFS7FATd77TAYTc6CAJ+dvKjlOjwfiyEuKFF+cGBBLgxbPG1UL6Line truncated
|
|
||||||
" style="float:right; height: 50px; border-radius: 3px;">
|
|
||||||
<h1>Mongoose on CC3200 LaunchPad</h1>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
This web page demonstrates how Mongoose embedded networking library can be
|
|
||||||
used to implement real-time data exchange. Here, a TI CC3200 board pushes
|
|
||||||
JSON-encoded WebSocket frames to the connected browser, which in turn
|
|
||||||
graphs the data. Also, the browser can send commands to the device wrapped
|
|
||||||
into a WebSocket frame to turn an LED on/off.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<button id="on_off_button">Switch LED off</button>
|
|
||||||
|
|
||||||
<div id="graphs"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,587 +0,0 @@
|
|||||||
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
|
|
||||||
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^Line truncated
|
|
||||||
|
|
||||||
return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var
Line truncated
|
|
||||||
return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[cLine truncated
|
|
||||||
|
|
||||||
/* Javascript plotting library for jQuery, version 0.8.3.
|
|
||||||
|
|
||||||
Copyright (c) 2007-2014 IOLA and Ole Laursen.
|
|
||||||
Licensed under the MIT license.
|
|
||||||
|
|
||||||
*/
|
|
||||||
(function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){return"rgb("+[o.r,o.g,o.b].join(",")+")"}else{return"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a)};return o.normalize()};$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();if(c!=""&&c!="transparent")break;elem=elem.parent()}while(elem.length&&!$.nodeName(elem.get(0),"body"));if(c=="rgba(0, 0, 0, 0)")c="transparent";return $.color.parse(c)};$.color.parse=function(str){var res,m=$.color.make;if(res=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10));if(res=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10),parseFloat(res[4]));if(res=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55);if(res=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55,parseFloat(res[4]));if(res=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))return m(parseInt(res[1],16),parseInt(res[2],16),parseInt(res[3],16));if(res=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(str))return m(parseInt(res[1]+res[1],16),parseInt(res[2]+res[2],16),parseInt(res[3]+res[3],16));var name=$.trim(str).toLowerCase();if(name=="transparent")return m(255,255,255,0);else{res=lookupColors[name]||[0,0,0];return m(res[0],res[1],res[2])}};var lookupColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);(function($){var hasOwnProperty=Object.prototype.hasOwnProperty;if(!$.fn.detach){$.fn.detach=function(){return this.each(function(){if(this.parentNode){this.parentNode.removeChild(this)}})}}function Canvas(cls,container){var element=container.children("."+cls)[0];if(element==null){element=document.createElement("canvas");element.className=cls;$(element).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(container);if(!element.getContext){if(window.G_vmlCanvasManager){element=window.G_vmlCanvasManager.initElement(element)}else{throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.")}}}this.element=element;var context=this.context=element.getContext("2d");var devicePixelRatio=window.devicePixelRatio||1,backingStoreRatio=context.webkitBackingStorePixelRatio||context.mozBackingStorePixelRatio||context.msBackingStorePixelRatio||context.oBackingStorePixelRatio||context.backingStorePixelRatio||1;this.pixelRatio=devicePixelRatio/backingStoreRatio;this.resize(container.width(),container.height());this.textContainer=null;this.text={};this._textCache={}}Canvas.prototype.resize=function(width,height){if(width<=0||height<=0){throw new Error("Invalid dimensions for plot, width = "+width+", height = "+height)}var element=this.element,context=this.context,pixelRatio=this.pixelRatio;if(this.width!=width){element.width=width*pixelRatio;element.style.width=width+"px";this.width=width}if(this.height!=height){element.height=height*pixelRatio;element.style.height=height+"px";this.height=height}context.restore();context.save();context.scale(pixelRatio,pixelRatio)};Canvas.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)};Canvas.prototype.render=function(){vaLine truncated
|
|
||||||
if(yrange.from==null)yrange.from=yrange.axis.min;if(yrange.to==null)yrange.to=yrange.axis.max;if(xrange.to<xrange.axis.min||xrange.from>xrange.axis.max||yrange.to<yrange.axis.min||yrange.from>yrange.axis.max)continue;xrange.from=Math.max(xrange.from,xrange.axis.min);xrange.to=Math.min(xrange.to,xrange.axis.max);yrange.from=Math.max(yrange.from,yrange.axis.min);yrange.to=Math.min(yrange.to,yrange.axis.max);var xequal=xrange.from===xrange.to,yequal=yrange.from===yrange.to;if(xequal&&yequal){continue}xrange.from=Math.floor(xrange.axis.p2c(xrange.from));xrange.to=Math.floor(xrange.axis.p2c(xrange.to));yrange.from=Math.floor(yrange.axis.p2c(yrange.from));yrange.to=Math.floor(yrange.axis.p2c(yrange.to));if(xequal||yequal){var lineWidth=m.lineWidth||options.grid.markingsLineWidth,subPixel=lineWidth%2?.5:0;ctx.beginPath();ctx.strokeStyle=m.color||options.grid.markingsColor;ctx.lineWidth=lineWidth;if(xequal){ctx.moveTo(xrange.to+subPixel,yrange.from);ctx.lineTo(xrange.to+subPixel,yrange.to)}else{ctx.moveTo(xrange.from,yrange.to+subPixel);ctx.lineTo(xrange.to,yrange.to+subPixel)}ctx.stroke()}else{ctx.fillStyle=m.color||options.grid.markingsColor;ctx.fillRect(xrange.from,yrange.to,xrange.to-xrange.from,yrange.from-yrange.to)}}}axes=allAxes();bw=options.grid.borderWidth;for(var j=0;j<axes.length;++j){var axis=axes[j],box=axis.box,t=axis.tickLength,x,y,xoff,yoff;if(!axis.show||axis.ticks.length==0)continue;ctx.lineWidth=1;if(axis.direction=="x"){x=0;if(t=="full")y=axis.position=="top"?0:plotHeight;else y=box.top-plotOffset.top+(axis.position=="top"?box.height:0)}else{y=0;if(t=="full")x=axis.position=="left"?0:plotWidth;else x=box.left-plotOffset.left+(axis.position=="left"?box.width:0)}if(!axis.innermost){ctx.strokeStyle=axis.options.color;ctx.beginPath();xoff=yoff=0;if(axis.direction=="x")xoff=plotWidth+1;else yoff=plotHeight+1;if(ctx.lineWidth==1){if(axis.direction=="x"){y=Math.floor(y)+.5}else{x=Math.floor(x)+.5}}ctx.moveTo(x,y);ctx.lineTo(x+xoff,y+yoff);ctx.stroke()}ctx.strokeStyle=axis.options.tickColor;ctx.beginPath();for(i=0;i<axis.ticks.length;++i){var v=axis.ticks[i].v;xoff=yoff=0;if(isNaN(v)||v<axis.min||v>axis.max||t=="full"&&(typeof bw=="object"&&bw[axis.position]>0||bw>0)&&(v==axis.min||v==axis.max))continue;if(axis.direction=="x"){x=axis.p2c(v);yoff=t=="full"?-plotHeight:t;if(axis.position=="top")yoff=-yoff}else{y=axis.p2c(v);xoff=t=="full"?-plotWidth:t;if(axis.position=="left")xoff=-xoff}if(ctx.lineWidth==1){if(axis.direction=="x")x=Math.floor(x)+.5;else y=Math.floor(y)+.5}ctx.moveTo(x,y);ctx.lineTo(x+xoff,y+yoff)}ctx.stroke()}if(bw){bc=options.grid.borderColor;if(typeof bw=="object"||typeof bc=="object"){if(typeof bw!=="object"){bw={top:bw,right:bw,bottom:bw,left:bw}}if(typeof bc!=="object"){bc={top:bc,right:bc,bottom:bc,left:bc}}if(bw.top>0){ctx.strokeStyle=bc.top;ctx.lineWidth=bw.top;ctx.beginPath();ctx.moveTo(0-bw.left,0-bw.top/2);ctx.lineTo(plotWidth,0-bw.top/2);ctx.stroke()}if(bw.right>0){ctx.strokeStyle=bc.right;ctx.lineWidth=bw.right;ctx.beginPath();ctx.moveTo(plotWidth+bw.right/2,0-bw.top);ctx.lineTo(plotWidth+bw.right/2,plotHeight);ctx.stroke()}if(bw.bottom>0){ctx.strokeStyle=bc.bottom;ctx.lineWidth=bw.bottom;ctx.beginPath();ctx.moveTo(plotWidth+bw.right,plotHeight+bw.bottom/2);ctx.lineTo(0,plotHeight+bw.bottom/2);ctx.stroke()}if(bw.left>0){ctx.strokeStyle=bc.left;ctx.lineWidth=bw.left;ctx.beginPath();ctx.moveTo(0-bw.left/2,plotHeight+bw.bottom);ctx.lineTo(0-bw.left/2,0);ctx.stroke()}}else{ctx.lineWidth=bw;ctx.strokeStyle=options.grid.borderColor;ctx.strokeRect(-bw/2,-bw/2,plotWidth+bw,plotHeight+bw)}}ctx.restore()}function drawAxisLabels(){$.each(allAxes(),function(_,axis){var box=axis.box,legacyStyles=axis.direction+"Axis "+axis.direction+axis.n+"Axis",layer="flot-"+axis.direction+"-axis flot-"+axis.direction+axis.n+"-axis "+legacyStyles,font=axis.options.font||"flot-tick-label tickLabel",tick,x,y,halign,valign;surface.removeText(layer);if(!axis.show||axis.ticks.length==0)return;for(var i=0;i<axis.ticks.length;++i){tick=axis.ticks[i];if(!tick.label||tick.v<axis.min||tick.v>axis.max)continue;if(axis.direction=="x"){halign="center";x=plotOffset.left+axis.p2c(tick.v);if(axis.position=="bottom"){y=box.top+box.padding}else{y=box.top+box.height-box.padding;valign="bottom"}}else{valign="middle";y=plotOffset.top+axis.p2c(tick.v);if(axis.position=="left"){x=box.left+box.width-box.padding;halign="right"}else{x=box.left+box.padding}}surface.addText(layer,x,y,tick.label,font,null,null,halign,valign)}})}function drawSeries(series){if(series.lines.show)drawSeriesLines(series);if(series.bars.show)drawSeriesBars(series);if(series.points.show)drawSeriesPoints(series)}function drawSeriesLines(series){function plotLine(datapoints,xoffset,yoffset,axisx,axisy){var points=datapoints.points,ps=datapoints.pointsize,prevx=null,prevy=null;ctx.beginPath();for(var i=ps;i<points.length;i+=ps){var x1=points[i-ps],y1=points[i-ps+1],x2=points[i],y2=points[i+1];if(x1==null||x2==null)continue;if(y1<=y2&&y1<axisy.min){if(y2<axLine truncated
|
|
||||||
|
|
||||||
|
|
||||||
/* Pretty handling of time axes.
|
|
||||||
|
|
||||||
Copyright (c) 2007-2014 IOLA and Ole Laursen.
|
|
||||||
Licensed under the MIT license.
|
|
||||||
|
|
||||||
Set axis.mode to "time" to enable. See the section "Time series data" in
|
|
||||||
API.txt for details.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function($) {
|
|
||||||
|
|
||||||
var options = {
|
|
||||||
xaxis: {
|
|
||||||
timezone: null, // "browser" for local to the client or timezone for timezone-js
|
|
||||||
timeformat: null, // format string to use
|
|
||||||
twelveHourClock: false, // 12 or 24 time in time mode
|
|
||||||
monthNames: null // list of names of months
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// round to nearby lower multiple of base
|
|
||||||
|
|
||||||
function floorInBase(n, base) {
|
|
||||||
return base * Math.floor(n / base);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns a string with the date d formatted according to fmt.
|
|
||||||
// A subset of the Open Group's strftime format is supported.
|
|
||||||
|
|
||||||
function formatDate(d, fmt, monthNames, dayNames) {
|
|
||||||
|
|
||||||
if (typeof d.strftime == "function") {
|
|
||||||
return d.strftime(fmt);
|
|
||||||
}
|
|
||||||
|
|
||||||
var leftPad = function(n, pad) {
|
|
||||||
n = "" + n;
|
|
||||||
pad = "" + (pad == null ? "0" : pad);
|
|
||||||
return n.length == 1 ? pad + n : n;
|
|
||||||
};
|
|
||||||
|
|
||||||
var r = [];
|
|
||||||
var escape = false;
|
|
||||||
var hours = d.getHours();
|
|
||||||
var isAM = hours < 12;
|
|
||||||
|
|
||||||
if (monthNames == null) {
|
|
||||||
monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dayNames == null) {
|
|
||||||
dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
||||||
}
|
|
||||||
|
|
||||||
var hours12;
|
|
||||||
|
|
||||||
if (hours > 12) {
|
|
||||||
hours12 = hours - 12;
|
|
||||||
} else if (hours == 0) {
|
|
||||||
hours12 = 12;
|
|
||||||
} else {
|
|
||||||
hours12 = hours;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var i = 0; i < fmt.length; ++i) {
|
|
||||||
|
|
||||||
var c = fmt.charAt(i);
|
|
||||||
|
|
||||||
if (escape) {
|
|
||||||
switch (c) {
|
|
||||||
case 'a': c = "" + dayNames[d.getDay()]; break;
|
|
||||||
case 'b': c = "" + monthNames[d.getMonth()]; break;
|
|
||||||
case 'd': c = leftPad(d.getDate()); break;
|
|
||||||
case 'e': c = leftPad(d.getDate(), " "); break;
|
|
||||||
case 'h': // For back-compat with 0.7; remove in 1.0
|
|
||||||
case 'H': c = leftPad(hours); break;
|
|
||||||
case 'I': c = leftPad(hours12); break;
|
|
||||||
case 'l': c = leftPad(hours12, " "); break;
|
|
||||||
case 'm': c = leftPad(d.getMonth() + 1); break;
|
|
||||||
case 'M': c = leftPad(d.getMinutes()); break;
|
|
||||||
// quarters not in Open Group's strftime specification
|
|
||||||
case 'q':
|
|
||||||
c = "" + (Math.floor(d.getMonth() / 3) + 1); break;
|
|
||||||
case 'S': c = leftPad(d.getSeconds()); break;
|
|
||||||
case 'y': c = leftPad(d.getFullYear() % 100); break;
|
|
||||||
case 'Y': c = "" + d.getFullYear(); break;
|
|
||||||
case 'p': c = (isAM) ? ("" + "am") : ("" + "pm"); break;
|
|
||||||
case 'P': c = (isAM) ? ("" + "AM") : ("" + "PM"); break;
|
|
||||||
case 'w': c = "" + d.getDay(); break;
|
|
||||||
}
|
|
||||||
r.push(c);
|
|
||||||
escape = false;
|
|
||||||
} else {
|
|
||||||
if (c == "%") {
|
|
||||||
escape = true;
|
|
||||||
} else {
|
|
||||||
r.push(c);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return r.join("");
|
|
||||||
}
|
|
||||||
|
|
||||||
// To have a consistent view of time-based data independent of which time
|
|
||||||
// zone the client happens to be in we need a date-like object independent
|
|
||||||
// of time zones. This is done through a wrapper that only calls the UTC
|
|
||||||
// versions of the accessor methods.
|
|
||||||
|
|
||||||
function makeUtcWrapper(d) {
|
|
||||||
|
|
||||||
function addProxyMethod(sourceObj, sourceMethod, targetObj, targetMethod) {
|
|
||||||
sourceObj[sourceMethod] = function() {
|
|
||||||
return targetObj[targetMethod].apply(targetObj, arguments);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
var utc = {
|
|
||||||
date: d
|
|
||||||
};
|
|
||||||
|
|
||||||
// support strftime, if found
|
|
||||||
|
|
||||||
if (d.strftime != undefined) {
|
|
||||||
addProxyMethod(utc, "strftime", d, "strftime");
|
|
||||||
}
|
|
||||||
|
|
||||||
addProxyMethod(utc, "getTime", d, "getTime");
|
|
||||||
addProxyMethod(utc, "setTime", d, "setTime");
|
|
||||||
|
|
||||||
var props = ["Date", "Day", "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds"];
|
|
||||||
|
|
||||||
for (var p = 0; p < props.length; p++) {
|
|
||||||
addProxyMethod(utc, "get" + props[p], d, "getUTC" + props[p]);
|
|
||||||
addProxyMethod(utc, "set" + props[p], d, "setUTC" + props[p]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return utc;
|
|
||||||
};
|
|
||||||
|
|
||||||
// select time zone strategy. This returns a date-like object tied to the
|
|
||||||
// desired timezone
|
|
||||||
|
|
||||||
function dateGenerator(ts, opts) {
|
|
||||||
if (opts.timezone == "browser") {
|
|
||||||
return new Date(ts);
|
|
||||||
} else if (!opts.timezone || opts.timezone == "utc") {
|
|
||||||
return makeUtcWrapper(new Date(ts));
|
|
||||||
} else if (typeof timezoneJS != "undefined" && typeof timezoneJS.Date != "undefined") {
|
|
||||||
var d = new timezoneJS.Date();
|
|
||||||
// timezone-js is fickle, so be sure to set the time zone before
|
|
||||||
// setting the time.
|
|
||||||
d.setTimezone(opts.timezone);
|
|
||||||
d.setTime(ts);
|
|
||||||
return d;
|
|
||||||
} else {
|
|
||||||
return makeUtcWrapper(new Date(ts));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// map of app. size of time units in milliseconds
|
|
||||||
|
|
||||||
var timeUnitSize = {
|
|
||||||
"second": 1000,
|
|
||||||
"minute": 60 * 1000,
|
|
||||||
"hour": 60 * 60 * 1000,
|
|
||||||
"day": 24 * 60 * 60 * 1000,
|
|
||||||
"month": 30 * 24 * 60 * 60 * 1000,
|
|
||||||
"quarter": 3 * 30 * 24 * 60 * 60 * 1000,
|
|
||||||
"year": 365.2425 * 24 * 60 * 60 * 1000
|
|
||||||
};
|
|
||||||
|
|
||||||
// the allowed tick sizes, after 1 year we use
|
|
||||||
// an integer algorithm
|
|
||||||
|
|
||||||
var baseSpec = [
|
|
||||||
[1, "second"], [2, "second"], [5, "second"], [10, "second"],
|
|
||||||
[30, "second"],
|
|
||||||
[1, "minute"], [2, "minute"], [5, "minute"], [10, "minute"],
|
|
||||||
[30, "minute"],
|
|
||||||
[1, "hour"], [2, "hour"], [4, "hour"],
|
|
||||||
[8, "hour"], [12, "hour"],
|
|
||||||
[1, "day"], [2, "day"], [3, "day"],
|
|
||||||
[0.25, "month"], [0.5, "month"], [1, "month"],
|
|
||||||
[2, "month"]
|
|
||||||
];
|
|
||||||
|
|
||||||
// we don't know which variant(s) we'll need yet, but generating both is
|
|
||||||
// cheap
|
|
||||||
|
|
||||||
var specMonths = baseSpec.concat([[3, "month"], [6, "month"],
|
|
||||||
[1, "year"]]);
|
|
||||||
var specQuarters = baseSpec.concat([[1, "quarter"], [2, "quarter"],
|
|
||||||
[1, "year"]]);
|
|
||||||
|
|
||||||
function init(plot) {
|
|
||||||
plot.hooks.processOptions.push(function (plot, options) {
|
|
||||||
$.each(plot.getAxes(), function(axisName, axis) {
|
|
||||||
|
|
||||||
var opts = axis.options;
|
|
||||||
|
|
||||||
if (opts.mode == "time") {
|
|
||||||
axis.tickGenerator = function(axis) {
|
|
||||||
|
|
||||||
var ticks = [];
|
|
||||||
var d = dateGenerator(axis.min, opts);
|
|
||||||
var minSize = 0;
|
|
||||||
|
|
||||||
// make quarter use a possibility if quarters are
|
|
||||||
// mentioned in either of these options
|
|
||||||
|
|
||||||
var spec = (opts.tickSize && opts.tickSize[1] ===
|
|
||||||
"quarter") ||
|
|
||||||
(opts.minTickSize && opts.minTickSize[1] ===
|
|
||||||
"quarter") ? specQuarters : specMonths;
|
|
||||||
|
|
||||||
if (opts.minTickSize != null) {
|
|
||||||
if (typeof opts.tickSize == "number") {
|
|
||||||
minSize = opts.tickSize;
|
|
||||||
} else {
|
|
||||||
minSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var i = 0; i < spec.length - 1; ++i) {
|
|
||||||
if (axis.delta < (spec[i][0] * timeUnitSize[spec[i][1]]
|
|
||||||
+ spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2
|
|
||||||
&& spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var size = spec[i][0];
|
|
||||||
var unit = spec[i][1];
|
|
||||||
|
|
||||||
// special-case the possibility of several years
|
|
||||||
|
|
||||||
if (unit == "year") {
|
|
||||||
|
|
||||||
// if given a minTickSize in years, just use it,
|
|
||||||
// ensuring that it's an integer
|
|
||||||
|
|
||||||
if (opts.minTickSize != null && opts.minTickSize[1] == "year") {
|
|
||||||
size = Math.floor(opts.minTickSize[0]);
|
|
||||||
} else {
|
|
||||||
|
|
||||||
var magn = Math.pow(10, Math.floor(Math.log(axis.delta / timeUnitSize.year) / Math.LN10));
|
|
||||||
var norm = (axis.delta / timeUnitSize.year) / magn;
|
|
||||||
|
|
||||||
if (norm < 1.5) {
|
|
||||||
size = 1;
|
|
||||||
} else if (norm < 3) {
|
|
||||||
size = 2;
|
|
||||||
} else if (norm < 7.5) {
|
|
||||||
size = 5;
|
|
||||||
} else {
|
|
||||||
size = 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
size *= magn;
|
|
||||||
}
|
|
||||||
|
|
||||||
// minimum size for years is 1
|
|
||||||
|
|
||||||
if (size < 1) {
|
|
||||||
size = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
axis.tickSize = opts.tickSize || [size, unit];
|
|
||||||
var tickSize = axis.tickSize[0];
|
|
||||||
unit = axis.tickSize[1];
|
|
||||||
|
|
||||||
var step = tickSize * timeUnitSize[unit];
|
|
||||||
|
|
||||||
if (unit == "second") {
|
|
||||||
d.setSeconds(floorInBase(d.getSeconds(), tickSize));
|
|
||||||
} else if (unit == "minute") {
|
|
||||||
d.setMinutes(floorInBase(d.getMinutes(), tickSize));
|
|
||||||
} else if (unit == "hour") {
|
|
||||||
d.setHours(floorInBase(d.getHours(), tickSize));
|
|
||||||
} else if (unit == "month") {
|
|
||||||
d.setMonth(floorInBase(d.getMonth(), tickSize));
|
|
||||||
} else if (unit == "quarter") {
|
|
||||||
d.setMonth(3 * floorInBase(d.getMonth() / 3,
|
|
||||||
tickSize));
|
|
||||||
} else if (unit == "year") {
|
|
||||||
d.setFullYear(floorInBase(d.getFullYear(), tickSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset smaller components
|
|
||||||
|
|
||||||
d.setMilliseconds(0);
|
|
||||||
|
|
||||||
if (step >= timeUnitSize.minute) {
|
|
||||||
d.setSeconds(0);
|
|
||||||
}
|
|
||||||
if (step >= timeUnitSize.hour) {
|
|
||||||
d.setMinutes(0);
|
|
||||||
}
|
|
||||||
if (step >= timeUnitSize.day) {
|
|
||||||
d.setHours(0);
|
|
||||||
}
|
|
||||||
if (step >= timeUnitSize.day * 4) {
|
|
||||||
d.setDate(1);
|
|
||||||
}
|
|
||||||
if (step >= timeUnitSize.month * 2) {
|
|
||||||
d.setMonth(floorInBase(d.getMonth(), 3));
|
|
||||||
}
|
|
||||||
if (step >= timeUnitSize.quarter * 2) {
|
|
||||||
d.setMonth(floorInBase(d.getMonth(), 6));
|
|
||||||
}
|
|
||||||
if (step >= timeUnitSize.year) {
|
|
||||||
d.setMonth(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
var carry = 0;
|
|
||||||
var v = Number.NaN;
|
|
||||||
var prev;
|
|
||||||
|
|
||||||
do {
|
|
||||||
|
|
||||||
prev = v;
|
|
||||||
v = d.getTime();
|
|
||||||
ticks.push(v);
|
|
||||||
|
|
||||||
if (unit == "month" || unit == "quarter") {
|
|
||||||
if (tickSize < 1) {
|
|
||||||
|
|
||||||
// a bit complicated - we'll divide the
|
|
||||||
// month/quarter up but we need to take
|
|
||||||
// care of fractions so we don't end up in
|
|
||||||
// the middle of a day
|
|
||||||
|
|
||||||
d.setDate(1);
|
|
||||||
var start = d.getTime();
|
|
||||||
d.setMonth(d.getMonth() +
|
|
||||||
(unit == "quarter" ? 3 : 1));
|
|
||||||
var end = d.getTime();
|
|
||||||
d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize);
|
|
||||||
carry = d.getHours();
|
|
||||||
d.setHours(0);
|
|
||||||
} else {
|
|
||||||
d.setMonth(d.getMonth() +
|
|
||||||
tickSize * (unit == "quarter" ? 3 : 1));
|
|
||||||
}
|
|
||||||
} else if (unit == "year") {
|
|
||||||
d.setFullYear(d.getFullYear() + tickSize);
|
|
||||||
} else {
|
|
||||||
d.setTime(v + step);
|
|
||||||
}
|
|
||||||
} while (v < axis.max && v != prev);
|
|
||||||
|
|
||||||
return ticks;
|
|
||||||
};
|
|
||||||
|
|
||||||
axis.tickFormatter = function (v, axis) {
|
|
||||||
|
|
||||||
var d = dateGenerator(v, axis.options);
|
|
||||||
|
|
||||||
// first check global format
|
|
||||||
|
|
||||||
if (opts.timeformat != null) {
|
|
||||||
return formatDate(d, opts.timeformat, opts.monthNames, opts.dayNames);
|
|
||||||
}
|
|
||||||
|
|
||||||
// possibly use quarters if quarters are mentioned in
|
|
||||||
// any of these places
|
|
||||||
|
|
||||||
var useQuarters = (axis.options.tickSize &&
|
|
||||||
axis.options.tickSize[1] == "quarter") ||
|
|
||||||
(axis.options.minTickSize &&
|
|
||||||
axis.options.minTickSize[1] == "quarter");
|
|
||||||
|
|
||||||
var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]];
|
|
||||||
var span = axis.max - axis.min;
|
|
||||||
var suffix = (opts.twelveHourClock) ? " %p" : "";
|
|
||||||
var hourCode = (opts.twelveHourClock) ? "%I" : "%H";
|
|
||||||
var fmt;
|
|
||||||
|
|
||||||
if (t < timeUnitSize.minute) {
|
|
||||||
fmt = hourCode + ":%M:%S" + suffix;
|
|
||||||
} else if (t < timeUnitSize.day) {
|
|
||||||
if (span < 2 * timeUnitSize.day) {
|
|
||||||
fmt = hourCode + ":%M" + suffix;
|
|
||||||
} else {
|
|
||||||
fmt = "%b %d " + hourCode + ":%M" + suffix;
|
|
||||||
}
|
|
||||||
} else if (t < timeUnitSize.month) {
|
|
||||||
fmt = "%b %d";
|
|
||||||
} else if ((useQuarters && t < timeUnitSize.quarter) ||
|
|
||||||
(!useQuarters && t < timeUnitSize.year)) {
|
|
||||||
if (span < timeUnitSize.year) {
|
|
||||||
fmt = "%b";
|
|
||||||
} else {
|
|
||||||
fmt = "%b %Y";
|
|
||||||
}
|
|
||||||
} else if (useQuarters && t < timeUnitSize.year) {
|
|
||||||
if (span < timeUnitSize.year) {
|
|
||||||
fmt = "Q%q";
|
|
||||||
} else {
|
|
||||||
fmt = "Q%q %Y";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
fmt = "%Y";
|
|
||||||
}
|
|
||||||
|
|
||||||
var rt = formatDate(d, fmt, opts.monthNames, opts.dayNames);
|
|
||||||
|
|
||||||
return rt;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$.plot.plugins.push({
|
|
||||||
init: init,
|
|
||||||
options: options,
|
|
||||||
name: 'time',
|
|
||||||
version: '1.0'
|
|
||||||
});
|
|
||||||
|
|
||||||
// Time-axis support used to be in Flot core, which exposed the
|
|
||||||
// formatDate function on the plot object. Various plugins depend
|
|
||||||
// on the function, so we need to re-expose it here.
|
|
||||||
|
|
||||||
$.plot.formatDate = formatDate;
|
|
||||||
$.plot.dateGenerator = dateGenerator;
|
|
||||||
|
|
||||||
})(jQuery);
|
|
||||||
|
|
||||||
var ws = null;
|
|
||||||
var connected = false;
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
var startTime = Date.now();
|
|
||||||
var graphDurationSeconds = 30;
|
|
||||||
|
|
||||||
// Initialize graph
|
|
||||||
var createGraph = function(title) {
|
|
||||||
var $c = $('<div class="graph"/>').appendTo('#graphs');
|
|
||||||
var past = Date.now() - graphDurationSeconds * 1000;
|
|
||||||
var options = {
|
|
||||||
lines: {
|
|
||||||
xfill: true,
|
|
||||||
lineWidth: 1,
|
|
||||||
xfillColor: {colors: [ { opacity: 0 }, { opacity: 1 } ] }
|
|
||||||
},
|
|
||||||
grid: { borderWidth: 1, borderColor: '#ccc'},
|
|
||||||
xaxis: { mode: 'time', ticks: 5 },
|
|
||||||
legend: { labelBoxBorderColor: '#fff' },
|
|
||||||
xcolors: [ '#fec', '#396', '#e39', '#9e2' ],
|
|
||||||
hooks: {
|
|
||||||
draw: [function(plot, canvas) {
|
|
||||||
canvas.font = '15px sans-serif';
|
|
||||||
canvas.fillStyle = '#999';
|
|
||||||
canvas.fillText(title, 35, 25);
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
};
|
|
||||||
return $.plot($c, [], options);
|
|
||||||
};
|
|
||||||
|
|
||||||
var updateGraph = function(g) {
|
|
||||||
if (!connected) return;
|
|
||||||
var now = Date.now();
|
|
||||||
//if (now - g.lastUpdateTime < 50) return;
|
|
||||||
g.lastUpdateTime = now;
|
|
||||||
var oldest = now - graphDurationSeconds * 1000;
|
|
||||||
g.data[0].data = [[oldest, null], [now, null]];
|
|
||||||
|
|
||||||
// Remove old points
|
|
||||||
$.each(g.data, function(di, d) {
|
|
||||||
while (d.data.length > 0 && d.data[0][0] < oldest) {
|
|
||||||
d.data.shift();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
g.plot.setData(g.data);
|
|
||||||
g.plot.setupGrid();
|
|
||||||
g.plot.draw();
|
|
||||||
};
|
|
||||||
|
|
||||||
var graphs = {
|
|
||||||
led: {
|
|
||||||
title: 'LED state',
|
|
||||||
plot: null,
|
|
||||||
lastUpdateTime: null,
|
|
||||||
data: [
|
|
||||||
{ show: false, data: [] },
|
|
||||||
{ label: "LED state", color: '#36c', data: [] },
|
|
||||||
]
|
|
||||||
},
|
|
||||||
accel: {
|
|
||||||
title: 'Accelerometer',
|
|
||||||
plot: null,
|
|
||||||
lastUpdateTime: null,
|
|
||||||
data: [
|
|
||||||
{ show: false, data: [] },
|
|
||||||
{ label: "x", color: '#f00', data: [] },
|
|
||||||
{ label: "y", color: '#0f0', data: [] },
|
|
||||||
{ label: "z", color: '#00f', data: [] },
|
|
||||||
]
|
|
||||||
},
|
|
||||||
temp: {
|
|
||||||
title: 'Sensor die temperature',
|
|
||||||
plot: null,
|
|
||||||
lastUpdateTime: null,
|
|
||||||
data: [
|
|
||||||
{ show: false, data: [] },
|
|
||||||
{ label: 'Celsius', color: '#36c', data: []},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
$.each(graphs, function(k, v) {
|
|
||||||
v.plot = createGraph(v.title);
|
|
||||||
setInterval(function() { updateGraph(v); }, 100);
|
|
||||||
});
|
|
||||||
|
|
||||||
function wsConnect() {
|
|
||||||
if (ws != null) return;
|
|
||||||
var wsAddr = 'ws://' + location.host;
|
|
||||||
console.log('Connecting to', wsAddr);
|
|
||||||
ws = new WebSocket(wsAddr);
|
|
||||||
ws.onopen = function() {
|
|
||||||
console.log('Connected');
|
|
||||||
connected = true;
|
|
||||||
};
|
|
||||||
ws.onclose = function() {
|
|
||||||
console.log('Disconnected');
|
|
||||||
connected = false;
|
|
||||||
ws = null;
|
|
||||||
};
|
|
||||||
ws.onmessage = handleWsMessage;
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleWsMessage(ev) {
|
|
||||||
try {
|
|
||||||
var obj = JSON.parse(ev.data);
|
|
||||||
//var timestamp = startTime + parseInt(obj.ts * 1000);
|
|
||||||
var timestamp = Date.now();
|
|
||||||
|
|
||||||
if (obj.t == 0) {
|
|
||||||
graphs.temp.data[1].data.push([timestamp, obj.dt]);
|
|
||||||
updateGraph(graphs.temp);
|
|
||||||
} else if (obj.t == 1) {
|
|
||||||
graphs.led.data[1].data.push([timestamp, obj.v]);
|
|
||||||
updateGraph(graphs.led);
|
|
||||||
} else if (obj.t == 2) {
|
|
||||||
graphs.accel.data[1].data.push([timestamp, obj.x]);
|
|
||||||
graphs.accel.data[2].data.push([timestamp, obj.y]);
|
|
||||||
graphs.accel.data[3].data.push([timestamp, obj.z]);
|
|
||||||
updateGraph(graphs.accel);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.log(e, ev.data);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
$(document).on('click', '#on_off_button', function() {
|
|
||||||
var state = $(this).text().match(/off/) ? 0 : 1;
|
|
||||||
$(this).text(state ? 'Switch LED off' : 'Switch LED on');
|
|
||||||
ws.send(JSON.stringify({ t: 1, v: state }));
|
|
||||||
});
|
|
||||||
|
|
||||||
wsConnect();
|
|
||||||
setInterval(wsConnect, 1000);
|
|
||||||
});
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "tmp006.h"
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
|
|
||||||
#include "i2c_if.h"
|
|
||||||
|
|
||||||
#define TMP006_REG_SENSOR_VOLTAGE 0x00
|
|
||||||
#define TMP006_REG_DIE_TEMP 0x01
|
|
||||||
#define TMP006_REG_CONFIG 0x02
|
|
||||||
|
|
||||||
bool tmp006_init(uint8_t addr, enum tmp006_conversion_rate conv_rate,
|
|
||||||
bool drdy_en) {
|
|
||||||
unsigned char val[3] = {TMP006_REG_CONFIG, 0x80, 0};
|
|
||||||
/* Reset first */
|
|
||||||
if (I2C_IF_Write(addr, val, 3, 1) != 0) return false;
|
|
||||||
val[1] = 0x70 | (conv_rate << 1) | drdy_en;
|
|
||||||
return (I2C_IF_Write(addr, val, 3, 1) == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
double tmp006_read_sensor_voltage(uint8_t addr) {
|
|
||||||
unsigned char reg = TMP006_REG_SENSOR_VOLTAGE;
|
|
||||||
unsigned char val[2] = {0, 0};
|
|
||||||
int status = I2C_IF_ReadFrom(addr, ®, 1, val, 2);
|
|
||||||
if (status < 0) return -1000;
|
|
||||||
int voltage = (val[0] << 8) | val[1];
|
|
||||||
if (val[0] & 0x80) voltage = -((1 << 16) - voltage);
|
|
||||||
return voltage * 0.00015625;
|
|
||||||
}
|
|
||||||
|
|
||||||
double tmp006_read_die_temp(uint8_t addr) {
|
|
||||||
unsigned char reg = TMP006_REG_DIE_TEMP;
|
|
||||||
unsigned char val[2] = {0, 0};
|
|
||||||
int status = I2C_IF_ReadFrom(addr, ®, 1, val, 2);
|
|
||||||
if (status < 0) return -1000;
|
|
||||||
int temp = (val[0] << 6) | (val[1] >> 2);
|
|
||||||
if (val[0] & 0x80) temp = -((1 << 14) - temp);
|
|
||||||
return temp / 32.0;
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_MONGOOSE_EXAMPLES_CC3200_TMP006_H_
|
|
||||||
#define CS_MONGOOSE_EXAMPLES_CC3200_TMP006_H_
|
|
||||||
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
enum tmp006_conversion_rate {
|
|
||||||
TMP006_CONV_4 = 0,
|
|
||||||
TMP006_CONV_2,
|
|
||||||
TMP006_CONV_1,
|
|
||||||
TMP006_CONV_1_2,
|
|
||||||
TMP006_CONV_1_4,
|
|
||||||
};
|
|
||||||
|
|
||||||
bool tmp006_init(uint8_t addr, enum tmp006_conversion_rate conv_rate,
|
|
||||||
bool drdy_en);
|
|
||||||
double tmp006_read_sensor_voltage(uint8_t addr);
|
|
||||||
double tmp006_read_die_temp(uint8_t addr);
|
|
||||||
|
|
||||||
#define TMP006_INVALID_READING (-1000.0)
|
|
||||||
|
|
||||||
#endif /* CS_MONGOOSE_EXAMPLES_CC3200_TMP006_H_ */
|
|
||||||
@@ -1,166 +0,0 @@
|
|||||||
#include "wifi.h"
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
|
|
||||||
#include <simplelink/cc_pal.h>
|
|
||||||
#include <simplelink/include/wlan.h>
|
|
||||||
|
|
||||||
#include <inc/hw_types.h>
|
|
||||||
|
|
||||||
#include <driverlib/gpio.h>
|
|
||||||
#include <driverlib/utils.h>
|
|
||||||
|
|
||||||
#include <example/common/gpio_if.h>
|
|
||||||
#include "cs_dbg.h"
|
|
||||||
|
|
||||||
void SimpleLinkWlanEventHandler(SlWlanEvent_t *e) {
|
|
||||||
switch (e->Event) {
|
|
||||||
case SL_WLAN_CONNECT_EVENT:
|
|
||||||
LOG(LL_INFO, ("WiFi: connected, getting IP"));
|
|
||||||
break;
|
|
||||||
case SL_WLAN_STA_CONNECTED_EVENT:
|
|
||||||
LOG(LL_INFO, ("WiFi: station connected"));
|
|
||||||
break;
|
|
||||||
case SL_WLAN_STA_DISCONNECTED_EVENT:
|
|
||||||
LOG(LL_INFO, ("WiFi: station disconnected"));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
LOG(LL_INFO, ("WiFi: event %d", e->Event));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkNetAppEventHandler(SlNetAppEvent_t *e) {
|
|
||||||
if (e->Event == SL_NETAPP_IPV4_IPACQUIRED_EVENT) {
|
|
||||||
SlIpV4AcquiredAsync_t *ed = &e->EventData.ipAcquiredV4;
|
|
||||||
LOG(LL_INFO, ("IP acquired: %lu.%lu.%lu.%lu", SL_IPV4_BYTE(ed->ip, 3),
|
|
||||||
SL_IPV4_BYTE(ed->ip, 2), SL_IPV4_BYTE(ed->ip, 1),
|
|
||||||
SL_IPV4_BYTE(ed->ip, 0)));
|
|
||||||
GPIO_IF_LedToggle(MCU_RED_LED_GPIO);
|
|
||||||
} else if (e->Event == SL_NETAPP_IP_LEASED_EVENT) {
|
|
||||||
LOG(LL_INFO, ("IP leased"));
|
|
||||||
} else {
|
|
||||||
LOG(LL_INFO, ("NetApp event %d", e->Event));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wifi_setup_ap(const char *ssid, const char *pass, int channel) {
|
|
||||||
uint8_t v;
|
|
||||||
if (sl_WlanSetMode(ROLE_AP) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SSID, strlen(ssid),
|
|
||||||
(const uint8_t *) ssid) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
v = strlen(pass) > 0 ? SL_SEC_TYPE_WPA : SL_SEC_TYPE_OPEN;
|
|
||||||
if (sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SECURITY_TYPE, 1, &v) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (v == SL_SEC_TYPE_WPA &&
|
|
||||||
sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_PASSWORD, strlen(pass),
|
|
||||||
(const uint8_t *) pass) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
v = channel;
|
|
||||||
if (sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_CHANNEL, 1, &v) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
sl_NetAppStop(SL_NET_APP_DHCP_SERVER_ID);
|
|
||||||
{
|
|
||||||
SlNetCfgIpV4Args_t ipcfg;
|
|
||||||
memset(&ipcfg, 0, sizeof(ipcfg));
|
|
||||||
if (!inet_pton(AF_INET, "192.168.4.1", &ipcfg.ipV4) ||
|
|
||||||
!inet_pton(AF_INET, "255.255.255.0", &ipcfg.ipV4Mask) ||
|
|
||||||
/* This means "disable". 0.0.0.0 won't do. */
|
|
||||||
!inet_pton(AF_INET, "255.255.255.255", &ipcfg.ipV4DnsServer) ||
|
|
||||||
/* We'd like to disable gateway too, but DHCP server refuses to start.
|
|
||||||
*/
|
|
||||||
!inet_pton(AF_INET, "192.168.4.1", &ipcfg.ipV4Gateway) ||
|
|
||||||
sl_NetCfgSet(SL_IPV4_AP_P2P_GO_STATIC_ENABLE, IPCONFIG_MODE_ENABLE_IPV4,
|
|
||||||
sizeof(ipcfg), (uint8_t *) &ipcfg) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
SlNetAppDhcpServerBasicOpt_t dhcpcfg;
|
|
||||||
memset(&dhcpcfg, 0, sizeof(dhcpcfg));
|
|
||||||
dhcpcfg.lease_time = 900;
|
|
||||||
if (!inet_pton(AF_INET, "192.168.4.20", &dhcpcfg.ipv4_addr_start) ||
|
|
||||||
!inet_pton(AF_INET, "192.168.4.200", &dhcpcfg.ipv4_addr_last) ||
|
|
||||||
sl_NetAppSet(SL_NET_APP_DHCP_SERVER_ID, NETAPP_SET_DHCP_SRV_BASIC_OPT,
|
|
||||||
sizeof(dhcpcfg), (uint8_t *) &dhcpcfg) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sl_Stop(0);
|
|
||||||
sl_Start(NULL, NULL, NULL);
|
|
||||||
if (sl_NetAppStart(SL_NET_APP_DHCP_SERVER_ID) != 0) {
|
|
||||||
LOG(LL_ERROR, ("DHCP server failed to start"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
LOG(LL_INFO, ("WiFi: AP %s configured, IP 192.168.4.1", ssid));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wifi_setup_sta(const char *ssid, const char *pass) {
|
|
||||||
SlSecParams_t sp;
|
|
||||||
LOG(LL_INFO, ("WiFi: connecting to %s", ssid));
|
|
||||||
if (sl_WlanSetMode(ROLE_STA) != 0) return false;
|
|
||||||
sl_Stop(0);
|
|
||||||
sl_Start(NULL, NULL, NULL);
|
|
||||||
sl_WlanDisconnect();
|
|
||||||
sp.Key = (_i8 *) pass;
|
|
||||||
sp.KeyLen = strlen(pass);
|
|
||||||
sp.Type = sp.KeyLen ? SL_SEC_TYPE_WPA : SL_SEC_TYPE_OPEN;
|
|
||||||
if (sl_WlanConnect((const _i8 *) ssid, strlen(ssid), 0, &sp, 0) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* In SDK 1.2.0 TI decided to stop resetting NWP before sl_Start, which in
|
|
||||||
* practice means that sl_start will hang on subsequent runs after the first.
|
|
||||||
*
|
|
||||||
* See this post for details and suggested solution:
|
|
||||||
* https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/p/499123/1806610#1806610
|
|
||||||
*
|
|
||||||
* However, since they don't provide OS_debug variant of simplelink.a and
|
|
||||||
* adding another project dependency will complicate our demo even more,
|
|
||||||
* we just take the required bit of code.
|
|
||||||
*
|
|
||||||
* This is a copy-paste of NwpPowerOnPreamble from cc_pal.c.
|
|
||||||
*/
|
|
||||||
void stop_nwp(void) {
|
|
||||||
#define MAX_RETRY_COUNT 1000
|
|
||||||
unsigned int sl_stop_ind, apps_int_sts_raw, nwp_lpds_wake_cfg;
|
|
||||||
unsigned int retry_count;
|
|
||||||
/* Perform the sl_stop equivalent to ensure network services
|
|
||||||
are turned off if active */
|
|
||||||
HWREG(0x400F70B8) = 1; /* APPs to NWP interrupt */
|
|
||||||
UtilsDelay(800000 / 5);
|
|
||||||
|
|
||||||
retry_count = 0;
|
|
||||||
nwp_lpds_wake_cfg = HWREG(0x4402D404);
|
|
||||||
sl_stop_ind = HWREG(0x4402E16C);
|
|
||||||
|
|
||||||
if ((nwp_lpds_wake_cfg != 0x20) && /* Check for NWP POR condition */
|
|
||||||
!(sl_stop_ind & 0x2)) /* Check if sl_stop was executed */
|
|
||||||
{
|
|
||||||
/* Loop until APPs->NWP interrupt is cleared or timeout */
|
|
||||||
while (retry_count < MAX_RETRY_COUNT) {
|
|
||||||
apps_int_sts_raw = HWREG(0x400F70C0);
|
|
||||||
if (apps_int_sts_raw & 0x1) {
|
|
||||||
UtilsDelay(800000 / 5);
|
|
||||||
retry_count++;
|
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
HWREG(0x400F70B0) = 1; /* Clear APPs to NWP interrupt */
|
|
||||||
UtilsDelay(800000 / 5);
|
|
||||||
|
|
||||||
/* Stop the networking services */
|
|
||||||
NwpPowerOff();
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_MONGOOSE_EXAMPLES_CC3200_WIFI_H_
|
|
||||||
#define CS_MONGOOSE_EXAMPLES_CC3200_WIFI_H_
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
bool wifi_setup_ap(const char *ssid, const char *pass, int channel);
|
|
||||||
bool wifi_setup_sta(const char *ssid, const char *pass);
|
|
||||||
void stop_nwp(void);
|
|
||||||
|
|
||||||
#endif /* CS_MONGOOSE_EXAMPLES_CC3200_WIFI_H_ */
|
|
||||||
@@ -1,118 +0,0 @@
|
|||||||
#############################################################
|
|
||||||
# Required variables for each makefile
|
|
||||||
# Discard this section from all parent makefiles
|
|
||||||
# Expected variables (with automatic defaults):
|
|
||||||
# CSRCS (all "C" files in the dir)
|
|
||||||
# SUBDIRS (all subdirs with a Makefile)
|
|
||||||
# GEN_LIBS - list of libs to be generated ()
|
|
||||||
# GEN_IMAGES - list of object file images to be generated ()
|
|
||||||
# GEN_BINS - list of binaries to be generated ()
|
|
||||||
# COMPONENTS_xxx - a list of libs/objs in the form
|
|
||||||
# subdir/lib to be extracted and rolled up into
|
|
||||||
# a generated lib/image xxx.a ()
|
|
||||||
#
|
|
||||||
TARGET = eagle
|
|
||||||
#FLAVOR = release
|
|
||||||
FLAVOR = debug
|
|
||||||
|
|
||||||
EXTRA_CCFLAGS += -Wall -Werror -DRTOS_SDK
|
|
||||||
|
|
||||||
ifndef PDIR # {
|
|
||||||
GEN_IMAGES= eagle.app.v6.out
|
|
||||||
GEN_BINS= eagle.app.v6.bin
|
|
||||||
SPECIAL_MKTARGETS=$(APP_MKTARGETS)
|
|
||||||
SUBDIRS=user
|
|
||||||
|
|
||||||
endif # } PDIR
|
|
||||||
|
|
||||||
LDDIR = $(SDK_PATH)/ld
|
|
||||||
|
|
||||||
CCFLAGS += -Os -Wno-undef
|
|
||||||
|
|
||||||
TARGET_LDFLAGS = \
|
|
||||||
-nostdlib \
|
|
||||||
-Wl,-EL \
|
|
||||||
--longcalls \
|
|
||||||
--text-section-literals
|
|
||||||
|
|
||||||
ifeq ($(FLAVOR),debug)
|
|
||||||
TARGET_LDFLAGS += -g -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(FLAVOR),release)
|
|
||||||
TARGET_LDFLAGS += -g -O0
|
|
||||||
endif
|
|
||||||
|
|
||||||
COMPONENTS_eagle.app.v6 = \
|
|
||||||
user/libuser.a
|
|
||||||
|
|
||||||
LINKFLAGS_eagle.app.v6 = \
|
|
||||||
-L$(SDK_PATH)/lib \
|
|
||||||
-Wl,--gc-sections \
|
|
||||||
-nostdlib \
|
|
||||||
-T$(LD_FILE) \
|
|
||||||
-Wl,--no-check-sections \
|
|
||||||
-u call_user_start \
|
|
||||||
-Wl,-static \
|
|
||||||
-Wl,--start-group \
|
|
||||||
-lcirom \
|
|
||||||
-lgcc \
|
|
||||||
-lhal \
|
|
||||||
-lphy \
|
|
||||||
-lpp \
|
|
||||||
-lnet80211 \
|
|
||||||
-lwpa \
|
|
||||||
-lcrypto \
|
|
||||||
-lmain \
|
|
||||||
-lfreertos \
|
|
||||||
-llwip \
|
|
||||||
$(DEP_LIBS_eagle.app.v6) \
|
|
||||||
-Wl,--end-group
|
|
||||||
|
|
||||||
DEPENDS_eagle.app.v6 = \
|
|
||||||
$(LD_FILE) \
|
|
||||||
$(LDDIR)/eagle.rom.addr.v6.ld
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
# Configuration i.e. compile options etc.
|
|
||||||
# Target specific stuff (defines etc.) goes in here!
|
|
||||||
# Generally values applying to a tree are captured in the
|
|
||||||
# makefile at its root level - these are then overridden
|
|
||||||
# for a subtree within the makefile rooted therein
|
|
||||||
#
|
|
||||||
|
|
||||||
#UNIVERSAL_TARGET_DEFINES = \
|
|
||||||
|
|
||||||
# Other potential configuration flags include:
|
|
||||||
# -DTXRX_TXBUF_DEBUG
|
|
||||||
# -DTXRX_RXBUF_DEBUG
|
|
||||||
# -DWLAN_CONFIG_CCX
|
|
||||||
CONFIGURATION_DEFINES = -DICACHE_FLASH
|
|
||||||
|
|
||||||
DEFINES += \
|
|
||||||
$(UNIVERSAL_TARGET_DEFINES) \
|
|
||||||
$(CONFIGURATION_DEFINES)
|
|
||||||
|
|
||||||
DDEFINES += \
|
|
||||||
$(UNIVERSAL_TARGET_DEFINES) \
|
|
||||||
$(CONFIGURATION_DEFINES)
|
|
||||||
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
# Recursion Magic - Don't touch this!!
|
|
||||||
#
|
|
||||||
# Each subtree potentially has an include directory
|
|
||||||
# corresponding to the common APIs applicable to modules
|
|
||||||
# rooted at that subtree. Accordingly, the INCLUDE PATH
|
|
||||||
# of a module can only contain the include directories up
|
|
||||||
# its parent path, and not its siblings
|
|
||||||
#
|
|
||||||
# Required for each makefile to inherit from the parent
|
|
||||||
#
|
|
||||||
|
|
||||||
INCLUDES := $(INCLUDES) -I $(PDIR)include
|
|
||||||
sinclude $(SDK_PATH)/Makefile
|
|
||||||
|
|
||||||
.PHONY: FORCE
|
|
||||||
FORCE:
|
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
This is a Mongoose "Hello, world" that can be compiled under ESP8266 RTOS SDK.
|
|
||||||
|
|
||||||
It sets up an AP (SSID `Mongoose`) and serves a "hello world" page on http://192.168.4.1/
|
|
||||||
|
|
||||||
Most of the the boilerplate comes from [project_template](https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/project_template) (@ [3ca6af5](https://github.com/espressif/ESP8266_RTOS_SDK/tree/3ca6af5da68678d809b34c7cd98bee71e0235039/examples/project_template)) with minimal changes.
|
|
||||||
|
|
||||||
To build with no changes to the SDK, you will need a module with 1MB (8Mb) flash or more.
|
|
||||||
|
|
||||||
Compile (for NodeMCU 1.0):
|
|
||||||
|
|
||||||
```
|
|
||||||
$ export SDK_PATH=/path/to/ESP8266_RTOS_SDK
|
|
||||||
$ export BIN_PATH=./bin
|
|
||||||
$ make clean; make BOOT=none APP=0 SPI_SPEED=40 SPI_MODE=dio SPI_SIZE_MAP=0
|
|
||||||
```
|
|
||||||
|
|
||||||
Flash (using [esptool](https://github.com/themadinventor/esptool)):
|
|
||||||
|
|
||||||
```
|
|
||||||
$ esptool.py --port /dev/ttyUSB0 --baud 230400 \
|
|
||||||
write_flash --flash_mode=qio --flash_size=4m \
|
|
||||||
0x00000 ${BIN_PATH}/eagle.flash.bin \
|
|
||||||
0x20000 ${BIN_PATH}/eagle.irom0text.bin \
|
|
||||||
0x7e000 ${SDK_PATH}/bin/esp_init_data_default.bin
|
|
||||||
```
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
docker run \
|
|
||||||
--rm -i -v $(realpath ${PWD}/../..):/src \
|
|
||||||
--entrypoint=/bin/bash $(cat sdk.version) -l -c -x '
|
|
||||||
export SDK_PATH=/opt/Espressif/ESP8266_SDK;
|
|
||||||
export BIN_PATH=./bin;
|
|
||||||
cd /src/examples/ESP8266_RTOS &&
|
|
||||||
mkdir -p ./bin && make clean &&
|
|
||||||
make BOOT=none APP=0 SPI_SPEED=40 SPI_MODE=qio SPI_SIZE_MAP=0'
|
|
||||||
@@ -1,173 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
:<<!
|
|
||||||
******NOTICE******
|
|
||||||
MUST set SDK_PATH & BIN_PATH firstly!!!
|
|
||||||
example:
|
|
||||||
export SDK_PATH=~/ESP8266_RTOS_SDK
|
|
||||||
export BIN_PATH=~/esp8266_bin
|
|
||||||
!
|
|
||||||
|
|
||||||
echo "gen_misc.sh version 20150911"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
if [ $SDK_PATH ]; then
|
|
||||||
echo "SDK_PATH:"
|
|
||||||
echo "$SDK_PATH"
|
|
||||||
echo ""
|
|
||||||
else
|
|
||||||
echo "ERROR: Please export SDK_PATH in gen_misc.sh firstly, exit!!!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $BIN_PATH ]; then
|
|
||||||
echo "BIN_PATH:"
|
|
||||||
echo "$BIN_PATH"
|
|
||||||
echo ""
|
|
||||||
else
|
|
||||||
echo "ERROR: Please export BIN_PATH in gen_misc.sh firstly, exit!!!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue:"
|
|
||||||
read input
|
|
||||||
|
|
||||||
if [[ $input != Y ]] && [[ $input != y ]]; then
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "Please follow below steps(1-5) to generate specific bin(s):"
|
|
||||||
echo "STEP 1: use boot_v1.2+ by default"
|
|
||||||
boot=new
|
|
||||||
|
|
||||||
echo "boot mode: $boot"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)"
|
|
||||||
echo "enter (0/1/2, default 0):"
|
|
||||||
read input
|
|
||||||
|
|
||||||
if [ -z "$input" ]; then
|
|
||||||
if [ $boot != none ]; then
|
|
||||||
boot=none
|
|
||||||
echo "ignore boot"
|
|
||||||
fi
|
|
||||||
app=0
|
|
||||||
echo "generate bin: eagle.flash.bin+eagle.irom0text.bin"
|
|
||||||
elif [ $input == 1 ]; then
|
|
||||||
if [ $boot == none ]; then
|
|
||||||
app=0
|
|
||||||
echo "choose no boot before"
|
|
||||||
echo "generate bin: eagle.flash.bin+eagle.irom0text.bin"
|
|
||||||
else
|
|
||||||
app=1
|
|
||||||
echo "generate bin: user1.bin"
|
|
||||||
fi
|
|
||||||
elif [ $input == 2 ]; then
|
|
||||||
if [ $boot == none ]; then
|
|
||||||
app=0
|
|
||||||
echo "choose no boot before"
|
|
||||||
echo "generate bin: eagle.flash.bin+eagle.irom0text.bin"
|
|
||||||
else
|
|
||||||
app=2
|
|
||||||
echo "generate bin: user2.bin"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [ $boot != none ]; then
|
|
||||||
boot=none
|
|
||||||
echo "ignore boot"
|
|
||||||
fi
|
|
||||||
app=0
|
|
||||||
echo "generate bin: eagle.flash.bin+eagle.irom0text.bin"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)"
|
|
||||||
echo "enter (0/1/2/3, default 2):"
|
|
||||||
read input
|
|
||||||
|
|
||||||
if [ -z "$input" ]; then
|
|
||||||
spi_speed=40
|
|
||||||
elif [ $input == 0 ]; then
|
|
||||||
spi_speed=20
|
|
||||||
elif [ $input == 1 ]; then
|
|
||||||
spi_speed=26.7
|
|
||||||
elif [ $input == 3 ]; then
|
|
||||||
spi_speed=80
|
|
||||||
else
|
|
||||||
spi_speed=40
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "spi speed: $spi_speed MHz"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)"
|
|
||||||
echo "enter (0/1/2/3, default 0):"
|
|
||||||
read input
|
|
||||||
|
|
||||||
if [ -z "$input" ]; then
|
|
||||||
spi_mode=QIO
|
|
||||||
elif [ $input == 1 ]; then
|
|
||||||
spi_mode=QOUT
|
|
||||||
elif [ $input == 2 ]; then
|
|
||||||
spi_mode=DIO
|
|
||||||
elif [ $input == 3 ]; then
|
|
||||||
spi_mode=DOUT
|
|
||||||
else
|
|
||||||
spi_mode=QIO
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "spi mode: $spi_mode"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "STEP 5: choose spi size and map"
|
|
||||||
echo " 0= 512KB( 256KB+ 256KB)"
|
|
||||||
echo " 2=1024KB( 512KB+ 512KB)"
|
|
||||||
echo " 3=2048KB( 512KB+ 512KB)"
|
|
||||||
echo " 4=4096KB( 512KB+ 512KB)"
|
|
||||||
echo " 5=2048KB(1024KB+1024KB)"
|
|
||||||
echo " 6=4096KB(1024KB+1024KB)"
|
|
||||||
echo "enter (0/2/3/4/5/6, default 0):"
|
|
||||||
read input
|
|
||||||
|
|
||||||
if [ -z "$input" ]; then
|
|
||||||
spi_size_map=0
|
|
||||||
echo "spi size: 512KB"
|
|
||||||
echo "spi ota map: 256KB + 256KB"
|
|
||||||
elif [ $input == 2 ]; then
|
|
||||||
spi_size_map=2
|
|
||||||
echo "spi size: 1024KB"
|
|
||||||
echo "spi ota map: 512KB + 512KB"
|
|
||||||
elif [ $input == 3 ]; then
|
|
||||||
spi_size_map=3
|
|
||||||
echo "spi size: 2048KB"
|
|
||||||
echo "spi ota map: 512KB + 512KB"
|
|
||||||
elif [ $input == 4 ]; then
|
|
||||||
spi_size_map=4
|
|
||||||
echo "spi size: 4096KB"
|
|
||||||
echo "spi ota map: 512KB + 512KB"
|
|
||||||
elif [ $input == 5 ]; then
|
|
||||||
spi_size_map=5
|
|
||||||
echo "spi size: 2048KB"
|
|
||||||
echo "spi ota map: 1024KB + 1024KB"
|
|
||||||
elif [ $input == 6 ]; then
|
|
||||||
spi_size_map=6
|
|
||||||
echo "spi size: 4096KB"
|
|
||||||
echo "spi ota map: 1024KB + 1024KB"
|
|
||||||
else
|
|
||||||
spi_size_map=0
|
|
||||||
echo "spi size: 512KB"
|
|
||||||
echo "spi ota map: 256KB + 256KB"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "start..."
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
make clean
|
|
||||||
|
|
||||||
make BOOT=$boot APP=$app SPI_SPEED=$spi_speed SPI_MODE=$spi_mode SPI_SIZE_MAP=$spi_size_map
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
This is a simple project template.
|
|
||||||
|
|
||||||
sample_lib is an example for multi-level folder Makefile, notice the folder structure and each Makefile, you can get the clue.
|
|
||||||
|
|
||||||
|
|
||||||
HOWTO:
|
|
||||||
1. Copy this folder to anywhere.
|
|
||||||
Example:
|
|
||||||
Copy to ~/workspace/project_template
|
|
||||||
You can rename this folder as you like.
|
|
||||||
|
|
||||||
2. Export SDK_PATH and BIN_PATH.
|
|
||||||
Example:
|
|
||||||
Your SDK path is ~/esp_iot_rtos_sdk, and want generate bin at ~/esp8266_bin.
|
|
||||||
Do follow steps:
|
|
||||||
1>. export SDK_PATH=~/esp_iot_rtos_sdk
|
|
||||||
2>. export BIN_PATH=~/esp8266_bin
|
|
||||||
SDK and project are seperate, you can update SDK without change your project.
|
|
||||||
|
|
||||||
3. Enter project_template folder, run ./gen_misc.sh, and follow the tips and steps.
|
|
||||||
|
|
||||||
|
|
||||||
Compile Options:
|
|
||||||
(1) COMPILE
|
|
||||||
Possible value: xcc
|
|
||||||
Default value:
|
|
||||||
If not set, use gcc by default.
|
|
||||||
|
|
||||||
(2) BOOT
|
|
||||||
Possible value: none/old/new
|
|
||||||
none: no need boot
|
|
||||||
old: use boot_v1.1
|
|
||||||
new: use boot_v1.2
|
|
||||||
Default value: new
|
|
||||||
|
|
||||||
(3) APP
|
|
||||||
Possible value: 0/1/2
|
|
||||||
0: original mode, generate eagle.app.v6.flash.bin and eagle.app.v6.irom0text.bin
|
|
||||||
1: generate user1
|
|
||||||
2: generate user2
|
|
||||||
Default value: 0
|
|
||||||
|
|
||||||
(3) SPI_SPEED
|
|
||||||
Possible value: 20/26.7/40/80
|
|
||||||
Default value: 40
|
|
||||||
|
|
||||||
(4) SPI_MODE
|
|
||||||
Possible value: QIO/QOUT/DIO/DOUT
|
|
||||||
Default value: QIO
|
|
||||||
|
|
||||||
(4) SPI_SIZE_MAP
|
|
||||||
Possible value: 0/2/3/4/5/6
|
|
||||||
Default value: 0
|
|
||||||
|
|
||||||
For example:
|
|
||||||
make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=0
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
docker.cesanta.com/esp8266-build-rtos:1.4.0-r2
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
|
|
||||||
#############################################################
|
|
||||||
# Required variables for each makefile
|
|
||||||
# Discard this section from all parent makefiles
|
|
||||||
# Expected variables (with automatic defaults):
|
|
||||||
# CSRCS (all "C" files in the dir)
|
|
||||||
# SUBDIRS (all subdirs with a Makefile)
|
|
||||||
# GEN_LIBS - list of libs to be generated ()
|
|
||||||
# GEN_IMAGES - list of images to be generated ()
|
|
||||||
# COMPONENTS_xxx - a list of libs/objs in the form
|
|
||||||
# subdir/lib to be extracted and rolled up into
|
|
||||||
# a generated lib/image xxx.a ()
|
|
||||||
#
|
|
||||||
ifndef PDIR
|
|
||||||
GEN_LIBS = libuser.a
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
# Configuration i.e. compile options etc.
|
|
||||||
# Target specific stuff (defines etc.) goes in here!
|
|
||||||
# Generally values applying to a tree are captured in the
|
|
||||||
# makefile at its root level - these are then overridden
|
|
||||||
# for a subtree within the makefile rooted therein
|
|
||||||
#
|
|
||||||
DEFINES +=
|
|
||||||
|
|
||||||
#############################################################
|
|
||||||
# Recursion Magic - Don't touch this!!
|
|
||||||
#
|
|
||||||
# Each subtree potentially has an include directory
|
|
||||||
# corresponding to the common APIs applicable to modules
|
|
||||||
# rooted at that subtree. Accordingly, the INCLUDE PATH
|
|
||||||
# of a module can only contain the include directories up
|
|
||||||
# its parent path, and not its siblings
|
|
||||||
#
|
|
||||||
# Required for each makefile to inherit from the parent
|
|
||||||
#
|
|
||||||
|
|
||||||
INCLUDES += -I ./
|
|
||||||
PDIR := ../$(PDIR)
|
|
||||||
sinclude $(PDIR)Makefile
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2015 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "esp_common.h"
|
|
||||||
|
|
||||||
/* Makes fprintf(stdout) and stderr work. */
|
|
||||||
_ssize_t _write_r(struct _reent *r, int fd, void *buf, size_t len) {
|
|
||||||
if (fd == 1 || fd == 2) {
|
|
||||||
size_t i;
|
|
||||||
for (i = 0; i < len; i++) {
|
|
||||||
os_putc(((char *) buf)[i]);
|
|
||||||
}
|
|
||||||
return len;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* You'll need to implement _open_r and friends if you want file operations. See
|
|
||||||
* https://github.com/cesanta/mongoose-os/blob/master/fw/platforms/esp8266/user/esp_fs.c
|
|
||||||
* for SPIFFS-based implementation.
|
|
||||||
*/
|
|
||||||
|
|
||||||
void abort(void) __attribute__((no_instrument_function));
|
|
||||||
void abort(void) {
|
|
||||||
/* cause an unaligned access exception, that will drop you into gdb */
|
|
||||||
*(int *) 1 = 1;
|
|
||||||
while (1)
|
|
||||||
; /* avoid gcc warning because stdlib abort() has noreturn attribute */
|
|
||||||
}
|
|
||||||
|
|
||||||
void _exit(int status) {
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This will prevent counter wrap if time is read regularly.
|
|
||||||
* At least Mongoose poll queries time, so we're covered.
|
|
||||||
*/
|
|
||||||
int _gettimeofday_r(struct _reent *r, struct timeval *tp, void *tzp) {
|
|
||||||
static uint32_t prev_time = 0;
|
|
||||||
static uint32_t num_overflows = 0;
|
|
||||||
uint32_t time = system_get_time();
|
|
||||||
uint64_t time64 = time;
|
|
||||||
if (prev_time > 0 && time < prev_time) num_overflows++;
|
|
||||||
time64 += (((uint64_t) num_overflows) * (1ULL << 32));
|
|
||||||
tp->tv_sec = time64 / 1000000ULL;
|
|
||||||
tp->tv_usec = time64 % 1000000ULL;
|
|
||||||
prev_time = time;
|
|
||||||
return 0;
|
|
||||||
(void) r;
|
|
||||||
(void) tzp;
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../../mongoose.h
|
|
||||||
@@ -1,109 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2015 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "esp_common.h"
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
|
|
||||||
#define AP_SSID "Mongoose"
|
|
||||||
#define AP_PASS "Mongoose"
|
|
||||||
#define AP_CHAN 9
|
|
||||||
#define MG_LISTEN_ADDR "80"
|
|
||||||
|
|
||||||
#define MG_TASK_STACK_SIZE 4096
|
|
||||||
#define MGOS_TASK_PRIORITY 1
|
|
||||||
|
|
||||||
void uart_div_modify(int uart_no, unsigned int freq);
|
|
||||||
|
|
||||||
void ev_handler(struct mg_connection *nc, int ev, void *p) {
|
|
||||||
static const char *reply_fmt =
|
|
||||||
"HTTP/1.0 200 OK\r\n"
|
|
||||||
"Connection: close\r\n"
|
|
||||||
"Content-Type: text/plain\r\n"
|
|
||||||
"\r\n"
|
|
||||||
"Hello %s\n";
|
|
||||||
|
|
||||||
switch (ev) {
|
|
||||||
case MG_EV_ACCEPT: {
|
|
||||||
char addr[32];
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
printf("Connection %p from %s\n", nc, addr);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_REQUEST: {
|
|
||||||
char addr[32];
|
|
||||||
struct http_message *hm = (struct http_message *) p;
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
printf("HTTP request from %s: %.*s %.*s\n", addr, (int) hm->method.len,
|
|
||||||
hm->method.p, (int) hm->uri.len, hm->uri.p);
|
|
||||||
mg_printf(nc, reply_fmt, addr);
|
|
||||||
nc->flags |= MG_F_SEND_AND_CLOSE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_CLOSE: {
|
|
||||||
printf("Connection %p closed\n", nc);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void setup_ap(void) {
|
|
||||||
int off = 0;
|
|
||||||
struct ip_info info;
|
|
||||||
struct softap_config cfg;
|
|
||||||
|
|
||||||
wifi_set_opmode_current(SOFTAP_MODE);
|
|
||||||
memset(&cfg, 0, sizeof(cfg));
|
|
||||||
strcpy((char *) cfg.ssid, AP_SSID);
|
|
||||||
strcpy((char *) cfg.password, AP_PASS);
|
|
||||||
cfg.ssid_len = strlen((const char *) cfg.ssid);
|
|
||||||
cfg.authmode =
|
|
||||||
strlen((const char *) cfg.password) ? AUTH_WPA2_PSK : AUTH_OPEN;
|
|
||||||
cfg.channel = AP_CHAN;
|
|
||||||
cfg.ssid_hidden = 0;
|
|
||||||
cfg.max_connection = 10;
|
|
||||||
cfg.beacon_interval = 100; /* ms */
|
|
||||||
|
|
||||||
printf("Setting up AP '%s' on channel %d\n", cfg.ssid, cfg.channel);
|
|
||||||
wifi_softap_set_config_current(&cfg);
|
|
||||||
wifi_softap_dhcps_stop();
|
|
||||||
wifi_softap_set_dhcps_offer_option(OFFER_ROUTER, &off);
|
|
||||||
wifi_softap_dhcps_start();
|
|
||||||
wifi_get_ip_info(SOFTAP_IF, &info);
|
|
||||||
printf("WiFi AP: SSID %s, channel %d, IP " IPSTR "\n", cfg.ssid, cfg.channel,
|
|
||||||
IP2STR(&info.ip));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void mg_task(void *arg) {
|
|
||||||
struct mg_mgr mgr;
|
|
||||||
struct mg_connection *nc;
|
|
||||||
|
|
||||||
printf("SDK version: %s\n", system_get_sdk_version());
|
|
||||||
setup_ap();
|
|
||||||
|
|
||||||
mg_mgr_init(&mgr, NULL);
|
|
||||||
|
|
||||||
nc = mg_bind(&mgr, MG_LISTEN_ADDR, ev_handler);
|
|
||||||
if (nc == NULL) {
|
|
||||||
printf("Error setting up listener!\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
mg_set_protocol_http_websocket(nc);
|
|
||||||
|
|
||||||
while (1) {
|
|
||||||
mg_mgr_poll(&mgr, 1000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
xTaskHandle s_mg_task_handle;
|
|
||||||
|
|
||||||
void user_init(void) {
|
|
||||||
uart_div_modify(0, UART_CLK_FREQ / 115200);
|
|
||||||
|
|
||||||
xTaskCreate(mg_task, (const signed char *) "mongoose", MG_TASK_STACK_SIZE,
|
|
||||||
NULL, MGOS_TASK_PRIORITY, &s_mg_task_handle);
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<?ccsproject version="1.0"?>
|
|
||||||
<projectOptions>
|
|
||||||
<deviceVariant value="MSP432P401R"/>
|
|
||||||
<deviceFamily value="MSP432"/>
|
|
||||||
<deviceEndianness value="little"/>
|
|
||||||
<codegenToolVersion value="5.2.8"/>
|
|
||||||
<isElfFormat value="true"/>
|
|
||||||
<rts value="libc.a"/>
|
|
||||||
<createSlaveProjects value=""/>
|
|
||||||
<origin value="/home/rojer/cesanta/ti/tirtos_msp43x_2_16_00_08/resources/msp_exp432P401RLaunchpad/networkExamples/tiNetworkExamples/wiFiExamples/com_ti_rtsc_tirtosmsp430_example_101.projectspec"/>
|
|
||||||
<templateProperties value="id=com_ti_rtsc_tirtosmsp430_example_101.projectspec.tcpEchoCC3X00_MSP_EXP432P401R_TI_MSP432P401R,type=rtsc,products=com.ti.rtsc.TIRTOSmsp430,xdcToolsVersion=3_32_00_06_core,target=ti.targets.arm.elf.M4F,platform=ti.platforms.msp432:MSP432P401R,buildProfile=release,isHybrid=true,configuroOptions= --compileOptions "${COMPILER_FLAGS} ","/>
|
|
||||||
<connection value="common/targetdb/connections/TIXDS110_Connection.xml"/>
|
|
||||||
<isTargetManual value="false"/>
|
|
||||||
</projectOptions>
|
|
||||||
@@ -1,273 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.638648210">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.638648210" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.638648210" name="Debug" parent="com.ti.ccstudio.buildDefinitions.MSP432.Debug" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.638648210." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.DebugToolchain.1076366966" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.linkerDebug.1079317900">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.276624783" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=MSP432P401R"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE="/>
|
|
||||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_MBS_VERSION=2.2.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="XDC_VERSION=3.31.1.33_core"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.rtsc.TIRTOSmsp430:2.16.0.08;"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.138822681" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.targetPlatformDebug.1618410608" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.targetPlatformDebug"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.builderDebug.736457078" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.builderDebug"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.compilerDebug.736356176" name="MSP432 Compiler" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.compilerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC.1591032819" name="Enable support for GCC extensions (DEPRECATED) (--gcc)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.1284806631" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.1019484696" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.1019163630" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.1936183167" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.FPv4SPD16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE.938644212" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="__MSP432P401R__"/>
|
|
||||||
<listOptionValue builtIn="false" value="TARGET_IS_MSP432P4XX"/>
|
|
||||||
<listOptionValue builtIn="false" value="MSP432WARE"/>
|
|
||||||
<listOptionValue builtIn="false" value="ccs"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH.1321802084" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../MSP432_Mongoose""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include/CMSIS""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/inc/CMSIS""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/inc""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/driverlib/MSP432P4xx""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL.802231855" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER.976177344" name="Enable checking of ULP power rules (--advice:power)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER" value=""all"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING.612029411" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
<listOptionValue builtIn="false" value="255"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER.1754878942" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.1689634884" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN.1189300180" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.1104211376" name="Set error category for ULP power rules (--advice:power_severity)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.suppress" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GEN_FUNC_SUBSECTIONS.716853038" name="Place each function in a separate subsection (--gen_func_subsections, -ms)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.C_DIALECT.1816905062" name="C Dialect" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.C_DIALECT" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.C_DIALECT.C99" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.1322192402" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.2121942912" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS.1163073582" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS.147603670" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS.145022476" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS.879075933" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.linkerDebug.1079317900" name="MSP432 Linker" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.linkerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.MAP_FILE.846990062" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.STACK_SIZE.34022886" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.STACK_SIZE" value="512" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.HEAP_SIZE.1014126637" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.HEAP_SIZE" value="1024" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.OUTPUT_FILE.1315814966" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.XML_LINK_INFO.603154510" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DISPLAY_ERROR_NUMBER.950980130" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DIAG_WRAP.259050193" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.SEARCH_PATH.926931707" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.LIBRARY.710098937" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.LIBRARY" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/driverlib/MSP432P4xx/ccs/msp432p4xx_driverlib.lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../MSP432_Mongoose/Debug/MSP432_Mongoose.lib""/>
|
|
||||||
</option>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD_SRCS.1725215293" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD2_SRCS.1216891169" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD2_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__GEN_CMDS.981400465" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__GEN_CMDS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.966033321" name="MSP432 Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.ROMWIDTH.574665258" name="Specify rom width (--romwidth, -romwidth)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.ROMWIDTH" value="8" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.MEMWIDTH.173244956" name="Specify memory width (--memwidth, -memwidth)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.MEMWIDTH" value="8" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1889527785" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.1674391127" name="Compiler tools directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.654422520" name="Target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M4F" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1998131485" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.msp432:MSP432P401R" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW.2023234812" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW" value="ti.platforms.msp432:MSP432P401R" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1112795975" name="Build-profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="release" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1944781751" name="Package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSMSP430_REPOS}"/>
|
|
||||||
<listOptionValue builtIn="false" value="${TARGET_CONTENT_BASE}"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS.1553318971" name="Additional compiler options (--compileOptions)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS" value=""${COMPILER_FLAGS} "" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings">
|
|
||||||
<externalSettings containerId="MSP432_Mongoose;com.ti.ccstudio.buildDefinitions.MSP432.Debug.242205865" factoryId="org.eclipse.cdt.core.cfg.export.settings.sipplier"/>
|
|
||||||
</storageModule>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.MSP432.Release.436397866">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.MSP432.Release.436397866" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.MSP432.Release.436397866" name="Release" parent="com.ti.ccstudio.buildDefinitions.MSP432.Release" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.MSP432.Release.436397866." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.ReleaseToolchain.374423190" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.linkerRelease.260367345">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1649672422" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=MSP432P401R"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE="/>
|
|
||||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_MBS_VERSION=2.2.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="XDC_VERSION=3.31.1.33_core"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.rtsc.TIRTOSmsp430:2.16.0.08;"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.927265857" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.targetPlatformRelease.1835040420" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.targetPlatformRelease"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.builderRelease.1977190713" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.builderRelease"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.compilerRelease.1200593934" name="MSP432 Compiler" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.compilerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC.1457348870" name="Enable support for GCC extensions (DEPRECATED) (--gcc)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.280776704" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.2145418987" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.1836019986" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.2113274796" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.FPv4SPD16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE.531247366" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="__MSP432P401R__"/>
|
|
||||||
<listOptionValue builtIn="false" value="TARGET_IS_MSP432P4XX"/>
|
|
||||||
<listOptionValue builtIn="false" value="MSP432WARE"/>
|
|
||||||
<listOptionValue builtIn="false" value="ccs"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH.881229545" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../MSP432_Mongoose""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../../../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include/CMSIS""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00/oslib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00/simplelink/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/inc/CMSIS""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/inc""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/driverlib/MSP432P4xx""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER.1564386250" name="Enable checking of ULP power rules (--advice:power)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER" value="all" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING.708184392" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
<listOptionValue builtIn="false" value="255"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER.536483130" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.239547499" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN.968480652" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.350731145" name="Set error category for ULP power rules (--advice:power_severity)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.suppress" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL.1651881817" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GEN_FUNC_SUBSECTIONS.1299449598" name="Place each function in a separate subsection (--gen_func_subsections, -ms)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GEN_FUNC_SUBSECTIONS" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GEN_FUNC_SUBSECTIONS.on" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.1661888405" name="Speed vs. size trade-offs (--opt_for_speed, -mf)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.release.728484093" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.release" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS.1687182342" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS.1421282679" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS.1396461343" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS.651013519" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.linkerRelease.260367345" name="MSP432 Linker" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exe.linkerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.MAP_FILE.1948445835" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.STACK_SIZE.2067652312" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.STACK_SIZE" value="512" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.HEAP_SIZE.612962133" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.HEAP_SIZE" value="1024" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.OUTPUT_FILE.2095976499" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.XML_LINK_INFO.712616529" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DISPLAY_ERROR_NUMBER.1224501479" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DIAG_WRAP.418234384" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.SEARCH_PATH.137176329" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.LIBRARY.818310635" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.linkerID.LIBRARY" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/msp432_driverlib_3_10_00_09/driverlib/MSP432P4xx/ccs/msp432p4xx_driverlib.lib""/>
|
|
||||||
<listOptionValue builtIn="false" value=""libc.a""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${PROJECT_LOC}/../MSP432_Mongoose/Release/MSP432_Mongoose.lib""/>
|
|
||||||
</option>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD_SRCS.1894656966" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD2_SRCS.762446262" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__CMD2_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__GEN_CMDS.1931644627" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.exeLinker.inputType__GEN_CMDS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.263181790" name="MSP432 Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.ROMWIDTH.505552603" name="Specify rom width (--romwidth, -romwidth)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.ROMWIDTH" value="8" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.MEMWIDTH.748071088" name="Specify memory width (--memwidth, -memwidth)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.hex.MEMWIDTH" value="8" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1631621958" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.432148205" name="Compiler tools directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1198814330" name="Target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M4F" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1903385455" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.msp432:MSP432P401R" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW.2126022150" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW" value="ti.platforms.msp432:MSP432P401R" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1194372441" name="Build-profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="release" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1407213349" name="Package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSMSP430_REPOS}"/>
|
|
||||||
<listOptionValue builtIn="false" value="${TARGET_CONTENT_BASE}"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS.1959987883" name="Additional compiler options (--compileOptions)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.COMPILE_OPTIONS" value=""${COMPILER_FLAGS} "" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="src|msp432p401r.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings">
|
|
||||||
<externalSettings containerId="MSP432_Mongoose;com.ti.ccstudio.buildDefinitions.MSP432.Release.1544782967" factoryId="org.eclipse.cdt.core.cfg.export.settings.sipplier"/>
|
|
||||||
</storageModule>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="tcpEchoCC3X00_MSP_EXP432P401R_TI_MSP432P401R.com.ti.ccstudio.buildDefinitions.MSP432.ProjectType.382106642" name="MSP432" projectType="com.ti.ccstudio.buildDefinitions.MSP432.ProjectType"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="scannerConfiguration"/>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
|
||||||
<project-mappings>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
</project-mappings>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="refreshScope"/>
|
|
||||||
</cproject>
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>MSP432_MG_hello</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
<project>MSP432_Mongoose</project>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature>
|
|
||||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Texas Instruments Incorporated
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* * Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
||||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_BOARD_H_
|
|
||||||
#define CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_BOARD_H_
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "MSP_EXP432P401R.h"
|
|
||||||
|
|
||||||
#define Board_initGeneral MSP_EXP432P401R_initGeneral
|
|
||||||
#define Board_initGPIO MSP_EXP432P401R_initGPIO
|
|
||||||
#define Board_initI2C MSP_EXP432P401R_initI2C
|
|
||||||
#define Board_initPWM MSP_EXP432P401R_initPWM
|
|
||||||
#define Board_initSDSPI MSP_EXP432P401R_initSDSPI
|
|
||||||
#define Board_initSPI MSP_EXP432P401R_initSPI
|
|
||||||
#define Board_initUART MSP_EXP432P401R_initUART
|
|
||||||
#define Board_initWatchdog MSP_EXP432P401R_initWatchdog
|
|
||||||
#define Board_initWiFi MSP_EXP432P401R_initWiFi
|
|
||||||
|
|
||||||
#define Board_LED_ON MSP_EXP432P401R_LED_ON
|
|
||||||
#define Board_LED_OFF MSP_EXP432P401R_LED_OFF
|
|
||||||
|
|
||||||
#define Board_BUTTON0 MSP_EXP432P401R_S1
|
|
||||||
#define Board_BUTTON1 MSP_EXP432P401R_S2
|
|
||||||
#define Board_LED0 MSP_EXP432P401R_LED1
|
|
||||||
#define Board_LED1 MSP_EXP432P401R_LED_RED
|
|
||||||
#define Board_LED2 MSP_EXP432P401R_LED_RED
|
|
||||||
|
|
||||||
/*
|
|
||||||
* MSP_EXP432P401R_LED_GREEN & MSP_EXP432P401R_LED_BLUE are used for
|
|
||||||
* PWM examples. Uncomment the following lines if you would like to control
|
|
||||||
* the LEDs with the GPIO driver.
|
|
||||||
*/
|
|
||||||
//#define Board_LED2 MSP_EXP432P401R_LED_GREEN
|
|
||||||
//#define Board_LED3 MSP_EXP432P401R_LED_BLUE
|
|
||||||
|
|
||||||
#define Board_I2C0 MSP_EXP432P401R_I2CB0
|
|
||||||
#define Board_I2C_TMP MSP_EXP432P401R_I2CB0
|
|
||||||
#define Board_I2C_NFC MSP_EXP432P401R_I2CB0
|
|
||||||
#define Board_I2C_TPL0401 MSP_EXP432P401R_I2CB0
|
|
||||||
|
|
||||||
#define Board_PWM0 MSP_EXP432P401R_PWM_TA1_1
|
|
||||||
#define Board_PWM1 MSP_EXP432P401R_PWM_TA1_2
|
|
||||||
|
|
||||||
#define Board_SDSPI0 MSP_EXP432P401R_SDSPIB0
|
|
||||||
|
|
||||||
#define Board_SPI0 MSP_EXP432P401R_SPIB0
|
|
||||||
#define Board_SPI1 MSP_EXP432P401R_SPIB2
|
|
||||||
|
|
||||||
#define Board_UART0 MSP_EXP432P401R_UARTA0
|
|
||||||
#define Board_UART1 MSP_EXP432P401R_UARTA2
|
|
||||||
|
|
||||||
#define Board_WATCHDOG0 MSP_EXP432P401R_WATCHDOG
|
|
||||||
|
|
||||||
#define Board_WIFI MSP_EXP432P401R_WIFI
|
|
||||||
#define Board_WIFI_SPI MSP_EXP432P401R_SPIB0
|
|
||||||
|
|
||||||
/* Board specific I2C addresses */
|
|
||||||
#define Board_TMP006_ADDR (0x40)
|
|
||||||
#define Board_RF430CL330_ADDR (0x28)
|
|
||||||
#define Board_TPL0401_ADDR (0x40)
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_BOARD_H_ */
|
|
||||||
@@ -1,540 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2015-2016, Texas Instruments Incorporated
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* * Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
||||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Clock configuration ================ */
|
|
||||||
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
|
|
||||||
/*
|
|
||||||
* Default value is family dependent. For example, Linux systems often only
|
|
||||||
* support a minimum period of 10000 us and multiples of 10000 us.
|
|
||||||
* TI platforms have a default of 1000 us.
|
|
||||||
*/
|
|
||||||
Clock.tickPeriod = 1000;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Defaults (module) configuration ================ */
|
|
||||||
var Defaults = xdc.useModule('xdc.runtime.Defaults');
|
|
||||||
/*
|
|
||||||
* A flag to allow module names to be loaded on the target. Module name
|
|
||||||
* strings are placed in the .const section for debugging purposes.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* Setting this parameter to true will include name strings in the .const
|
|
||||||
* section so that Errors and Asserts are easier to debug.
|
|
||||||
* - false
|
|
||||||
* Setting this parameter to false will reduce footprint in the .const
|
|
||||||
* section. As a result, Error and Assert messages will contain an
|
|
||||||
* "unknown module" prefix instead of the actual module name.
|
|
||||||
*/
|
|
||||||
Defaults.common$.namedModule = true;
|
|
||||||
//Defaults.common$.namedModule = false;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Error configuration ================ */
|
|
||||||
var Error = xdc.useModule('xdc.runtime.Error');
|
|
||||||
/*
|
|
||||||
* This function is called to handle all raised errors, but unlike
|
|
||||||
* Error.raiseHook, this function is responsible for completely handling the
|
|
||||||
* error with an appropriately initialized Error_Block.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - Error.policyDefault (default)
|
|
||||||
* Calls Error.raiseHook with an initialized Error_Block structure and logs
|
|
||||||
* the error using the module's logger.
|
|
||||||
* - Error.policySpin
|
|
||||||
* Simple alternative that traps on a while(1) loop for minimized target
|
|
||||||
* footprint.
|
|
||||||
* Using Error.policySpin, the Error.raiseHook will NOT called.
|
|
||||||
*/
|
|
||||||
Error.policyFxn = Error.policyDefault;
|
|
||||||
//Error.policyFxn = Error.policySpin;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* If Error.policyFxn is set to Error.policyDefault, this function is called
|
|
||||||
* whenever an error is raised by the Error module.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - Error.print (default)
|
|
||||||
* Errors are formatted and output via System_printf() for easier
|
|
||||||
* debugging.
|
|
||||||
* - null
|
|
||||||
* Errors are not formatted or logged. This option reduces code footprint.
|
|
||||||
* - non-null function
|
|
||||||
* Errors invoke custom user function. See the Error module documentation
|
|
||||||
* for more details.
|
|
||||||
*/
|
|
||||||
Error.raiseHook = Error.print;
|
|
||||||
//Error.raiseHook = null;
|
|
||||||
//Error.raiseHook = "&myErrorFxn";
|
|
||||||
|
|
||||||
/*
|
|
||||||
* If Error.policyFxn is set to Error.policyDefault, this option applies to the
|
|
||||||
* maximum number of times the Error.raiseHook function can be recursively
|
|
||||||
* invoked. This option limits the possibility of an infinite recursion that
|
|
||||||
* could lead to a stack overflow.
|
|
||||||
* The default value is 16.
|
|
||||||
*/
|
|
||||||
Error.maxDepth = 2;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Hwi configuration ================ */
|
|
||||||
var halHwi = xdc.useModule('ti.sysbios.hal.Hwi');
|
|
||||||
var m3Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
|
|
||||||
/*
|
|
||||||
* Checks for Hwi (system) stack overruns while in the Idle loop.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* Checks the top word for system stack overflows during the idle loop and
|
|
||||||
* raises an Error if one is detected.
|
|
||||||
* - false
|
|
||||||
* Disabling the runtime check improves runtime performance and yields a
|
|
||||||
* reduced flash footprint.
|
|
||||||
*/
|
|
||||||
halHwi.checkStackFlag = true;
|
|
||||||
//halHwi.checkStackFlag = false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The following options alter the system's behavior when a hardware exception
|
|
||||||
* is detected.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - Hwi.enableException = true
|
|
||||||
* This option causes the default m3Hwi.excHandlerFunc function to fully
|
|
||||||
* decode an exception and dump the registers to the system console.
|
|
||||||
* This option raises errors in the Error module and displays the
|
|
||||||
* exception in ROV.
|
|
||||||
* - Hwi.enableException = false
|
|
||||||
* This option reduces code footprint by not decoding or printing the
|
|
||||||
* exception to the system console.
|
|
||||||
* It however still raises errors in the Error module and displays the
|
|
||||||
* exception in ROV.
|
|
||||||
* - Hwi.excHandlerFunc = null
|
|
||||||
* This is the most aggressive option for code footprint savings; but it
|
|
||||||
* can difficult to debug exceptions. It reduces flash footprint by
|
|
||||||
* plugging in a default while(1) trap when exception occur. This option
|
|
||||||
* does not raise an error with the Error module.
|
|
||||||
*/
|
|
||||||
m3Hwi.enableException = true;
|
|
||||||
//m3Hwi.enableException = false;
|
|
||||||
//m3Hwi.excHandlerFunc = null;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enable hardware exception generation when dividing by zero.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - 0 (default)
|
|
||||||
* Disables hardware exceptions when dividing by zero
|
|
||||||
* - 1
|
|
||||||
* Enables hardware exceptions when dividing by zero
|
|
||||||
*/
|
|
||||||
m3Hwi.nvicCCR.DIV_0_TRP = 0;
|
|
||||||
//m3Hwi.nvicCCR.DIV_0_TRP = 1;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enable hardware exception generation for invalid data alignment.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - 0 (default)
|
|
||||||
* Disables hardware exceptions for data alignment
|
|
||||||
* - 1
|
|
||||||
* Enables hardware exceptions for data alignment
|
|
||||||
*/
|
|
||||||
m3Hwi.nvicCCR.UNALIGN_TRP = 0;
|
|
||||||
//m3Hwi.nvicCCR.UNALIGN_TRP = 1;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Idle configuration ================ */
|
|
||||||
var Idle = xdc.useModule('ti.sysbios.knl.Idle');
|
|
||||||
/*
|
|
||||||
* The Idle module is used to specify a list of functions to be called when no
|
|
||||||
* other tasks are running in the system.
|
|
||||||
*
|
|
||||||
* Functions added here will be run continuously within the idle task.
|
|
||||||
*
|
|
||||||
* Function signature:
|
|
||||||
* Void func(Void);
|
|
||||||
*/
|
|
||||||
//Idle.addFunc("&myIdleFunc");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Kernel (SYS/BIOS) configuration ================ */
|
|
||||||
var BIOS = xdc.useModule('ti.sysbios.BIOS');
|
|
||||||
/*
|
|
||||||
* Enable asserts in the BIOS library.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* Enables asserts for debugging purposes.
|
|
||||||
* - false
|
|
||||||
* Disables asserts for a reduced code footprint and better performance.
|
|
||||||
*/
|
|
||||||
//BIOS.assertsEnabled = true;
|
|
||||||
BIOS.assertsEnabled = false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Specify default heap size for BIOS.
|
|
||||||
*/
|
|
||||||
BIOS.heapSize = 32768;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* A flag to determine if xdc.runtime sources are to be included in a custom
|
|
||||||
* built BIOS library.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - false (default)
|
|
||||||
* The pre-built xdc.runtime library is provided by the respective target
|
|
||||||
* used to build the application.
|
|
||||||
* - true
|
|
||||||
* xdc.runtime library souces are to be included in the custom BIOS
|
|
||||||
* library. This option yields the most efficient library in both code
|
|
||||||
* footprint and runtime performance.
|
|
||||||
*/
|
|
||||||
BIOS.includeXdcRuntime = false;
|
|
||||||
//BIOS.includeXdcRuntime = true;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The SYS/BIOS runtime is provided in the form of a library that is linked
|
|
||||||
* with the application. Several forms of this library are provided with the
|
|
||||||
* SYS/BIOS product.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - BIOS.LibType_Custom
|
|
||||||
* Custom built library that is highly optimized for code footprint and
|
|
||||||
* runtime performance.
|
|
||||||
* - BIOS.LibType_Debug
|
|
||||||
* Custom built library that is non-optimized that can be used to
|
|
||||||
* single-step through APIs with a debugger.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
BIOS.libType = BIOS.LibType_Custom;
|
|
||||||
//BIOS.libType = BIOS.LibType_Debug;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Runtime instance creation enable flag.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* Allows Mod_create() and Mod_delete() to be called at runtime which
|
|
||||||
* requires a default heap for dynamic memory allocation.
|
|
||||||
* - false
|
|
||||||
* Reduces code footprint by disallowing Mod_create() and Mod_delete() to
|
|
||||||
* be called at runtime. Object instances are constructed via
|
|
||||||
* Mod_construct() and destructed via Mod_destruct().
|
|
||||||
*/
|
|
||||||
BIOS.runtimeCreatesEnabled = true;
|
|
||||||
//BIOS.runtimeCreatesEnabled = false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enable logs in the BIOS library.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* Enables logs for debugging purposes.
|
|
||||||
* - false
|
|
||||||
* Disables logging for reduced code footprint and improved runtime
|
|
||||||
* performance.
|
|
||||||
*/
|
|
||||||
//BIOS.logsEnabled = true;
|
|
||||||
BIOS.logsEnabled = false;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Memory configuration ================ */
|
|
||||||
var Memory = xdc.useModule('xdc.runtime.Memory');
|
|
||||||
/*
|
|
||||||
* The Memory module itself simply provides a common interface for any
|
|
||||||
* variety of system and application specific memory management policies
|
|
||||||
* implemented by the IHeap modules(Ex. HeapMem, HeapBuf).
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Program configuration ================ */
|
|
||||||
/*
|
|
||||||
* Program.stack is ignored with IAR. Use the project options in
|
|
||||||
* IAR Embedded Workbench to alter the system stack size.
|
|
||||||
*/
|
|
||||||
if (!Program.build.target.$name.match(/iar/)) {
|
|
||||||
/*
|
|
||||||
* Reducing the system stack size (used by ISRs and Swis) to reduce
|
|
||||||
* RAM usage.
|
|
||||||
*/
|
|
||||||
Program.stack = 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enable Semihosting for GNU targets to print to CCS console
|
|
||||||
*/
|
|
||||||
if (Program.build.target.$name.match(/gnu/)) {
|
|
||||||
var SemiHost = xdc.useModule('ti.sysbios.rts.gnu.SemiHostSupport');
|
|
||||||
}
|
|
||||||
/* ================ Semaphore configuration ================ */
|
|
||||||
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
|
|
||||||
/*
|
|
||||||
* Enables global support for Task priority pend queuing.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* This allows pending tasks to be serviced based on their task priority.
|
|
||||||
* - false
|
|
||||||
* Pending tasks are services based on first in, first out basis.
|
|
||||||
*
|
|
||||||
* When using BIOS in ROM:
|
|
||||||
* This option must be set to false.
|
|
||||||
*/
|
|
||||||
//Semaphore.supportsPriority = true;
|
|
||||||
Semaphore.supportsPriority = false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Allows for the implicit posting of events through the semaphore,
|
|
||||||
* disable for additional code saving.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true
|
|
||||||
* This allows the Semaphore module to post semaphores and events
|
|
||||||
* simultaneously.
|
|
||||||
* - false (default)
|
|
||||||
* Events must be explicitly posted to unblock tasks.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//Semaphore.supportsEvents = true;
|
|
||||||
Semaphore.supportsEvents = false;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Swi configuration ================ */
|
|
||||||
var Swi = xdc.useModule('ti.sysbios.knl.Swi');
|
|
||||||
/*
|
|
||||||
* A software interrupt is an object that encapsulates a function to be
|
|
||||||
* executed and a priority. Software interrupts are prioritized, preempt tasks
|
|
||||||
* and are preempted by hardware interrupt service routines.
|
|
||||||
*
|
|
||||||
* This module is included to allow Swi's in a users' application.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ System configuration ================ */
|
|
||||||
var System = xdc.useModule('xdc.runtime.System');
|
|
||||||
/*
|
|
||||||
* The Abort handler is called when the system exits abnormally.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - System.abortStd (default)
|
|
||||||
* Call the ANSI C Standard 'abort()' to terminate the application.
|
|
||||||
* - System.abortSpin
|
|
||||||
* A lightweight abort function that loops indefinitely in a while(1) trap
|
|
||||||
* function.
|
|
||||||
* - A custom abort handler
|
|
||||||
* A user-defined function. See the System module documentation for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
System.abortFxn = System.abortStd;
|
|
||||||
//System.abortFxn = System.abortSpin;
|
|
||||||
//System.abortFxn = "&myAbortSystem";
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The Exit handler is called when the system exits normally.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - System.exitStd (default)
|
|
||||||
* Call the ANSI C Standard 'exit()' to terminate the application.
|
|
||||||
* - System.exitSpin
|
|
||||||
* A lightweight exit function that loops indefinitely in a while(1) trap
|
|
||||||
* function.
|
|
||||||
* - A custom exit function
|
|
||||||
* A user-defined function. See the System module documentation for
|
|
||||||
* details.
|
|
||||||
*/
|
|
||||||
System.exitFxn = System.exitStd;
|
|
||||||
//System.exitFxn = System.exitSpin;
|
|
||||||
//System.exitFxn = "&myExitSystem";
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Minimize exit handler array in the System module. The System module includes
|
|
||||||
* an array of functions that are registered with System_atexit() which is
|
|
||||||
* called by System_exit(). The default value is 8.
|
|
||||||
*/
|
|
||||||
System.maxAtexitHandlers = 2;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The System.SupportProxy defines a low-level implementation of System
|
|
||||||
* functions such as System_printf(), System_flush(), etc.
|
|
||||||
*
|
|
||||||
* Pick one pair:
|
|
||||||
* - SysMin
|
|
||||||
* This module maintains an internal configurable circular buffer that
|
|
||||||
* stores the output until System_flush() is called.
|
|
||||||
* The size of the circular buffer is set via SysMin.bufSize.
|
|
||||||
* - SysCallback
|
|
||||||
* SysCallback allows for user-defined implementations for System APIs.
|
|
||||||
* The SysCallback support proxy has a smaller code footprint and can be
|
|
||||||
* used to supply custom System_printf services.
|
|
||||||
* The default SysCallback functions point to stub functions. See the
|
|
||||||
* SysCallback module's documentation.
|
|
||||||
*/
|
|
||||||
var SysMin = xdc.useModule('xdc.runtime.SysMin');
|
|
||||||
SysMin.bufSize = 512;
|
|
||||||
System.SupportProxy = SysMin;
|
|
||||||
//var SysCallback = xdc.useModule('xdc.runtime.SysCallback');
|
|
||||||
//System.SupportProxy = SysCallback;
|
|
||||||
//SysCallback.abortFxn = "&myUserAbort";
|
|
||||||
//SysCallback.exitFxn = "&myUserExit";
|
|
||||||
//SysCallback.flushFxn = "&myUserFlush";
|
|
||||||
//SysCallback.putchFxn = "&myUserPutch";
|
|
||||||
//SysCallback.readyFxn = "&myUserReady";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Task configuration ================ */
|
|
||||||
var Task = xdc.useModule('ti.sysbios.knl.Task');
|
|
||||||
/*
|
|
||||||
* Check task stacks for overflow conditions.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* Enables runtime checks for task stack overflow conditions during
|
|
||||||
* context switching ("from" and "to")
|
|
||||||
* - false
|
|
||||||
* Disables runtime checks for task stack overflow conditions.
|
|
||||||
*/
|
|
||||||
Task.checkStackFlag = true;
|
|
||||||
//Task.checkStackFlag = false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Set the default task stack size when creating tasks.
|
|
||||||
*
|
|
||||||
* The default is dependent on the device being used. Reducing the default stack
|
|
||||||
* size yields greater memory savings.
|
|
||||||
*/
|
|
||||||
Task.defaultStackSize = 512;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enables the idle task.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* Creates a task with priority of 0 which calls idle hook functions. This
|
|
||||||
* option must be set to true to gain power savings provided by the Power
|
|
||||||
* module.
|
|
||||||
* - false
|
|
||||||
* No idle task is created. This option consumes less memory as no
|
|
||||||
* additional default task stack is needed.
|
|
||||||
* To gain power savings by the Power module without having the idle task,
|
|
||||||
* add Idle.run as the Task.allBlockedFunc.
|
|
||||||
*/
|
|
||||||
Task.enableIdleTask = true;
|
|
||||||
//Task.enableIdleTask = false;
|
|
||||||
//Task.allBlockedFunc = Idle.run;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* If Task.enableIdleTask is set to true, this option sets the idle task's
|
|
||||||
* stack size.
|
|
||||||
*
|
|
||||||
* Reducing the idle stack size yields greater memory savings.
|
|
||||||
*/
|
|
||||||
Task.idleTaskStackSize = 512;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Reduce the number of task priorities.
|
|
||||||
* The default is 16.
|
|
||||||
* Decreasing the number of task priorities yield memory savings.
|
|
||||||
*/
|
|
||||||
Task.numPriorities = 16;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Text configuration ================ */
|
|
||||||
var Text = xdc.useModule('xdc.runtime.Text');
|
|
||||||
/*
|
|
||||||
* These strings are placed in the .const section. Setting this parameter to
|
|
||||||
* false will save space in the .const section. Error, Assert and Log messages
|
|
||||||
* will print raw ids and args instead of a formatted message.
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - true (default)
|
|
||||||
* This option loads test string into the .const for easier debugging.
|
|
||||||
* - false
|
|
||||||
* This option reduces the .const footprint.
|
|
||||||
*/
|
|
||||||
Text.isLoaded = true;
|
|
||||||
//Text.isLoaded = false;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Types configuration ================ */
|
|
||||||
var Types = xdc.useModule('xdc.runtime.Types');
|
|
||||||
/*
|
|
||||||
* This module defines basic constants and types used throughout the
|
|
||||||
* xdc.runtime package.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ TI-RTOS middleware configuration ================ */
|
|
||||||
var mwConfig = xdc.useModule('ti.mw.Config');
|
|
||||||
/*
|
|
||||||
* Include TI-RTOS middleware libraries
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ TI-RTOS drivers' configuration ================ */
|
|
||||||
var driversConfig = xdc.useModule('ti.drivers.Config');
|
|
||||||
/*
|
|
||||||
* Include TI-RTOS drivers
|
|
||||||
*
|
|
||||||
* Pick one:
|
|
||||||
* - driversConfig.LibType_NonInstrumented (default)
|
|
||||||
* Use TI-RTOS drivers library optimized for footprint and performance
|
|
||||||
* without asserts or logs.
|
|
||||||
* - driversConfig.LibType_Instrumented
|
|
||||||
* Use TI-RTOS drivers library for debugging with asserts and logs enabled.
|
|
||||||
*/
|
|
||||||
driversConfig.libType = driversConfig.LibType_NonInstrumented;
|
|
||||||
//driversConfig.libType = driversConfig.LibType_Instrumented;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ================ Application Specific Instances ================ */
|
|
||||||
var Mailbox = xdc.useModule('ti.sysbios.knl.Mailbox');
|
|
||||||
@@ -1,654 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015-2016, Texas Instruments Incorporated
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* * Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
||||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R.c ========
|
|
||||||
* This file is responsible for setting up the board specific items for the
|
|
||||||
* MSP_EXP432P401R board.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#include <ti/drivers/ports/DebugP.h>
|
|
||||||
#include <ti/drivers/ports/HwiP.h>
|
|
||||||
#include <ti/drivers/Power.h>
|
|
||||||
#include <ti/drivers/power/PowerMSP432.h>
|
|
||||||
|
|
||||||
#include <msp.h>
|
|
||||||
#include <rom.h>
|
|
||||||
#include <rom_map.h>
|
|
||||||
#include <dma.h>
|
|
||||||
#include <gpio.h>
|
|
||||||
#include <i2c.h>
|
|
||||||
#include <pmap.h>
|
|
||||||
#include <spi.h>
|
|
||||||
#include <timer_a.h>
|
|
||||||
#include <uart.h>
|
|
||||||
#include <wdt_a.h>
|
|
||||||
|
|
||||||
#include <interrupt.h>
|
|
||||||
|
|
||||||
#include "MSP_EXP432P401R.h"
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== DMA ===============================
|
|
||||||
*/
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_ALIGN(dmaControlTable, 256)
|
|
||||||
#elif defined(__IAR_SYSTEMS_ICC__)
|
|
||||||
#pragma data_alignment=256
|
|
||||||
#elif defined(__GNUC__)
|
|
||||||
__attribute__ ((aligned (256)))
|
|
||||||
#endif
|
|
||||||
static DMA_ControlTable dmaControlTable[8];
|
|
||||||
static bool dmaInitialized = false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== dmaErrorHwi ========
|
|
||||||
*/
|
|
||||||
static void dmaErrorHwi(uintptr_t arg)
|
|
||||||
{
|
|
||||||
DebugP_log1("DMA error code: %d\n", MAP_DMA_getErrorStatus());
|
|
||||||
MAP_DMA_clearErrorStatus();
|
|
||||||
DebugP_log0("DMA error!!\n");
|
|
||||||
while(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initDMA ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initDMA(void)
|
|
||||||
{
|
|
||||||
HwiP_Params hwiParams;
|
|
||||||
HwiP_Handle dmaErrorHwiHandle;
|
|
||||||
|
|
||||||
if (!dmaInitialized) {
|
|
||||||
HwiP_Params_init(&hwiParams);
|
|
||||||
dmaErrorHwiHandle = HwiP_create(INT_DMA_ERR, dmaErrorHwi, &hwiParams);
|
|
||||||
if (dmaErrorHwiHandle == NULL) {
|
|
||||||
DebugP_log0("Failed to create DMA error Hwi!!\n");
|
|
||||||
while (1);
|
|
||||||
}
|
|
||||||
|
|
||||||
MAP_DMA_enableModule();
|
|
||||||
MAP_DMA_setControlBase(dmaControlTable);
|
|
||||||
|
|
||||||
dmaInitialized = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initGeneral ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initGeneral(void)
|
|
||||||
{
|
|
||||||
Power_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== GPIO ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(GPIOMSP432_config, ".const:GPIOMSP432_config")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/GPIO.h>
|
|
||||||
#include <ti/drivers/gpio/GPIOMSP432.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Array of Pin configurations
|
|
||||||
* NOTE: The order of the pin configurations must coincide with what was
|
|
||||||
* defined in MSP_EXP432P401R.h
|
|
||||||
* NOTE: Pins not used for interrupts should be placed at the end of the
|
|
||||||
* array. Callback entries can be omitted from callbacks array to
|
|
||||||
* reduce memory usage.
|
|
||||||
*/
|
|
||||||
GPIO_PinConfig gpioPinConfigs[] = {
|
|
||||||
/* Input pins */
|
|
||||||
/* MSP_EXP432P401R_S1 */
|
|
||||||
GPIOMSP432_P1_1 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RISING,
|
|
||||||
/* MSP_EXP432P401R_S2 */
|
|
||||||
GPIOMSP432_P1_4 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RISING,
|
|
||||||
|
|
||||||
/* Output pins */
|
|
||||||
/* MSP_EXP432P401R_LED1 */
|
|
||||||
GPIOMSP432_P1_0 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW,
|
|
||||||
/* MSP_EXP432P401R_LED_RED */
|
|
||||||
GPIOMSP432_P2_0 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW,
|
|
||||||
|
|
||||||
/*
|
|
||||||
* MSP_EXP432P401R_LED_GREEN & MSP_EXP432P401R_LED_BLUE are used for
|
|
||||||
* PWM examples. Uncomment the following lines if you would like to control
|
|
||||||
* the LEDs with the GPIO driver.
|
|
||||||
*/
|
|
||||||
/* MSP_EXP432P401R_LED_GREEN */
|
|
||||||
//GPIOMSP432_P2_1 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW,
|
|
||||||
/* MSP_EXP432P401R_LED_BLUE */
|
|
||||||
//GPIOMSP432_P2_2 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Array of callback function pointers
|
|
||||||
* NOTE: The order of the pin configurations must coincide with what was
|
|
||||||
* defined in MSP_EXP432P401R.h
|
|
||||||
* NOTE: Pins not used for interrupts can be omitted from callbacks array to
|
|
||||||
* reduce memory usage (if placed at end of gpioPinConfigs array).
|
|
||||||
*/
|
|
||||||
GPIO_CallbackFxn gpioCallbackFunctions[] = {
|
|
||||||
/* MSP_EXP432P401R_S1 */
|
|
||||||
NULL,
|
|
||||||
/* MSP_EXP432P401R_S2 */
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
const GPIOMSP432_Config GPIOMSP432_config = {
|
|
||||||
.pinConfigs = (GPIO_PinConfig *)gpioPinConfigs,
|
|
||||||
.callbacks = (GPIO_CallbackFxn *)gpioCallbackFunctions,
|
|
||||||
.numberOfPinConfigs = sizeof(gpioPinConfigs)/sizeof(GPIO_PinConfig),
|
|
||||||
.numberOfCallbacks = sizeof(gpioCallbackFunctions)/sizeof(GPIO_CallbackFxn),
|
|
||||||
.intPriority = (~0)
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initGPIO ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initGPIO(void)
|
|
||||||
{
|
|
||||||
/* Initialize peripheral and pins */
|
|
||||||
GPIO_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== I2C ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(I2C_config, ".const:I2C_config")
|
|
||||||
#pragma DATA_SECTION(i2cMSP432HWAttrs, ".const:i2cMSP432HWAttrs")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/I2C.h>
|
|
||||||
#include <ti/drivers/i2c/I2CMSP432.h>
|
|
||||||
|
|
||||||
I2CMSP432_Object i2cMSP432Objects[MSP_EXP432P401R_I2CCOUNT];
|
|
||||||
|
|
||||||
const I2CMSP432_HWAttrs i2cMSP432HWAttrs[MSP_EXP432P401R_I2CCOUNT] = {
|
|
||||||
{
|
|
||||||
.baseAddr = EUSCI_B0_BASE,
|
|
||||||
.intNum = INT_EUSCIB0,
|
|
||||||
.intPriority = (~0),
|
|
||||||
.clockSource = EUSCI_B_I2C_CLOCKSOURCE_SMCLK
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const I2C_Config I2C_config[] = {
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &I2CMSP432_fxnTable,
|
|
||||||
.object = &i2cMSP432Objects[0],
|
|
||||||
.hwAttrs = &i2cMSP432HWAttrs[0]
|
|
||||||
},
|
|
||||||
{NULL, NULL, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initI2C ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initI2C(void)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* NOTE: TI-RTOS examples configure EUSCIB0 as either SPI or I2C. Thus,
|
|
||||||
* a conflict occurs when the I2C & SPI drivers are used simultaneously in
|
|
||||||
* an application. Modify the pin mux settings in this file and resolve the
|
|
||||||
* conflict before running your the application.
|
|
||||||
*/
|
|
||||||
/* Configure Pins 1.6 & 1.7 as SDA & SCL, respectively. */
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1,
|
|
||||||
GPIO_PIN6 | GPIO_PIN7, GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
|
|
||||||
/* Initialize the I2C driver */
|
|
||||||
I2C_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== Power ===============================
|
|
||||||
*/
|
|
||||||
const PowerMSP432_Config PowerMSP432_config = {
|
|
||||||
.policyInitFxn = &PowerMSP432_initPolicy,
|
|
||||||
.policyFxn = &PowerMSP432_sleepPolicy,
|
|
||||||
.initialPerfLevel = 2,
|
|
||||||
.enablePolicy = false,
|
|
||||||
.enablePerf = true
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== PWM ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(PWM_config, ".const:PWM_config")
|
|
||||||
#pragma DATA_SECTION(pwmTimerMSP432HWAttrs, ".const:pwmTimerMSP432HWAttrs")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/PWM.h>
|
|
||||||
#include <ti/drivers/pwm/PWMTimerMSP432.h>
|
|
||||||
|
|
||||||
PWMTimerMSP432_Object pwmTimerMSP432Objects[MSP_EXP432P401R_PWMCOUNT];
|
|
||||||
|
|
||||||
const PWMTimerMSP432_HWAttrs pwmTimerMSP432HWAttrs[MSP_EXP432P401R_PWMCOUNT] = {
|
|
||||||
{
|
|
||||||
.baseAddr = TIMER_A1_BASE,
|
|
||||||
.compareRegister = TIMER_A_CAPTURECOMPARE_REGISTER_1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.baseAddr = TIMER_A1_BASE,
|
|
||||||
.compareRegister = TIMER_A_CAPTURECOMPARE_REGISTER_2
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const PWM_Config PWM_config[] = {
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &PWMTimerMSP432_fxnTable,
|
|
||||||
.object = &pwmTimerMSP432Objects[0],
|
|
||||||
.hwAttrs = &pwmTimerMSP432HWAttrs[0]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &PWMTimerMSP432_fxnTable,
|
|
||||||
.object = &pwmTimerMSP432Objects[1],
|
|
||||||
.hwAttrs = &pwmTimerMSP432HWAttrs[1]
|
|
||||||
},
|
|
||||||
{NULL, NULL, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initPWM ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initPWM(void)
|
|
||||||
{
|
|
||||||
/* Use Port Map on Port2 get Timer outputs on pins with LEDs (2.1, 2.2) */
|
|
||||||
const uint8_t portMap [] = {
|
|
||||||
PM_NONE, PM_TA1CCR1A, PM_TA1CCR2A, PM_NONE,
|
|
||||||
PM_NONE, PM_NONE, PM_NONE, PM_NONE
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Mapping capture compare registers to Port 2 */
|
|
||||||
MAP_PMAP_configurePorts((const uint8_t *) portMap, PMAP_P2MAP, 1,
|
|
||||||
PMAP_DISABLE_RECONFIGURATION);
|
|
||||||
|
|
||||||
/* Enable PWM output on GPIO pins */
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P2,
|
|
||||||
GPIO_PIN1 | GPIO_PIN2, GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
|
|
||||||
PWM_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== SDSPI ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(SDSPI_config, ".const:SDSPI_config")
|
|
||||||
#pragma DATA_SECTION(sdspiMSP432HWAttrs, ".const:sdspiMSP432HWAttrs")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/SDSPI.h>
|
|
||||||
#include <ti/drivers/sdspi/SDSPIMSP432.h>
|
|
||||||
|
|
||||||
SDSPIMSP432_Object sdspiMSP432Objects[MSP_EXP432P401R_SDSPICOUNT];
|
|
||||||
|
|
||||||
const SDSPIMSP432_HWAttrs sdspiMSP432HWAttrs[MSP_EXP432P401R_SDSPICOUNT] = {
|
|
||||||
{
|
|
||||||
.baseAddr = EUSCI_B0_BASE,
|
|
||||||
.clockSource = EUSCI_B_SPI_CLOCKSOURCE_SMCLK,
|
|
||||||
|
|
||||||
/* CLK, MOSI & MISO ports & pins */
|
|
||||||
.portSCK = GPIO_PORT_P1,
|
|
||||||
.pinSCK = GPIO_PIN5,
|
|
||||||
.sckMode = GPIO_PRIMARY_MODULE_FUNCTION,
|
|
||||||
|
|
||||||
.portMISO = GPIO_PORT_P1,
|
|
||||||
.pinMISO = GPIO_PIN7,
|
|
||||||
.misoMode = GPIO_PRIMARY_MODULE_FUNCTION,
|
|
||||||
|
|
||||||
.portMOSI = GPIO_PORT_P1,
|
|
||||||
.pinMOSI = GPIO_PIN6,
|
|
||||||
.mosiMode = GPIO_PRIMARY_MODULE_FUNCTION,
|
|
||||||
|
|
||||||
/* Chip select port & pin */
|
|
||||||
.portCS = GPIO_PORT_P4,
|
|
||||||
.pinCS = GPIO_PIN6
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const SDSPI_Config SDSPI_config[] = {
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &SDSPIMSP432_fxnTable,
|
|
||||||
.object = &sdspiMSP432Objects[0],
|
|
||||||
.hwAttrs = &sdspiMSP432HWAttrs[0]
|
|
||||||
},
|
|
||||||
{NULL, NULL, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initSDSPI ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initSDSPI(void)
|
|
||||||
{
|
|
||||||
SDSPI_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== SPI ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(SPI_config, ".const:SPI_config")
|
|
||||||
#pragma DATA_SECTION(spiMSP432DMAHWAttrs, ".const:spiMSP432DMAHWAttrs")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/SPI.h>
|
|
||||||
#include <ti/drivers/spi/SPIMSP432DMA.h>
|
|
||||||
|
|
||||||
SPIMSP432DMA_Object spiMSP432DMAObjects[MSP_EXP432P401R_SPICOUNT];
|
|
||||||
|
|
||||||
const SPIMSP432DMA_HWAttrs spiMSP432DMAHWAttrs[MSP_EXP432P401R_SPICOUNT] = {
|
|
||||||
{
|
|
||||||
.baseAddr = EUSCI_B0_BASE,
|
|
||||||
.bitOrder = EUSCI_B_SPI_MSB_FIRST,
|
|
||||||
.clockSource = EUSCI_B_SPI_CLOCKSOURCE_SMCLK,
|
|
||||||
|
|
||||||
.defaultTxBufValue = 0,
|
|
||||||
|
|
||||||
.dmaIntNum = INT_DMA_INT1,
|
|
||||||
.intPriority = (~0),
|
|
||||||
.rxDMAChannelIndex = DMA_CH1_EUSCIB0RX0,
|
|
||||||
.txDMAChannelIndex = DMA_CH0_EUSCIB0TX0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.baseAddr = EUSCI_B2_BASE,
|
|
||||||
.bitOrder = EUSCI_B_SPI_MSB_FIRST,
|
|
||||||
.clockSource = EUSCI_B_SPI_CLOCKSOURCE_SMCLK,
|
|
||||||
|
|
||||||
.defaultTxBufValue = 0,
|
|
||||||
|
|
||||||
.dmaIntNum = INT_DMA_INT2,
|
|
||||||
.intPriority = (~0),
|
|
||||||
.rxDMAChannelIndex = DMA_CH5_EUSCIB2RX0,
|
|
||||||
.txDMAChannelIndex = DMA_CH4_EUSCIB2TX0
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const SPI_Config SPI_config[] = {
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &SPIMSP432DMA_fxnTable,
|
|
||||||
.object = &spiMSP432DMAObjects[0],
|
|
||||||
.hwAttrs = &spiMSP432DMAHWAttrs[0]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &SPIMSP432DMA_fxnTable,
|
|
||||||
.object = &spiMSP432DMAObjects[1],
|
|
||||||
.hwAttrs = &spiMSP432DMAHWAttrs[1]
|
|
||||||
},
|
|
||||||
{NULL, NULL, NULL},
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initSPI ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initSPI(void)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* NOTE: TI-RTOS examples configure EUSCIB0 as either SPI or I2C. Thus,
|
|
||||||
* a conflict occurs when the I2C & SPI drivers are used simultaneously in
|
|
||||||
* an application. Modify the pin mux settings in this file and resolve the
|
|
||||||
* conflict before running your the application.
|
|
||||||
*/
|
|
||||||
/* Configure CLK, MOSI & MISO for SPI0 (EUSCI_B0) */
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P1,
|
|
||||||
GPIO_PIN5 | GPIO_PIN6, GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1, GPIO_PIN7,
|
|
||||||
GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
|
|
||||||
/* Configure CLK, MOSI & MISO for SPI1 (EUSCI_B2) */
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P3,
|
|
||||||
GPIO_PIN5 | GPIO_PIN6, GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P3, GPIO_PIN7,
|
|
||||||
GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
|
|
||||||
MSP_EXP432P401R_initDMA();
|
|
||||||
SPI_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== UART ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(UART_config, ".const:UART_config")
|
|
||||||
#pragma DATA_SECTION(uartMSP432HWAttrs, ".const:uartMSP432HWAttrs")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/UART.h>
|
|
||||||
#include <ti/drivers/uart/UARTMSP432.h>
|
|
||||||
|
|
||||||
UARTMSP432_Object uartMSP432Objects[MSP_EXP432P401R_UARTCOUNT];
|
|
||||||
unsigned char uartMSP432RingBuffer[MSP_EXP432P401R_UARTCOUNT][32];
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The baudrate dividers were determined by using the MSP430 baudrate
|
|
||||||
* calculator
|
|
||||||
* http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430BaudRateConverter/index.html
|
|
||||||
*/
|
|
||||||
const UARTMSP432_BaudrateConfig uartMSP432Baudrates[] = {
|
|
||||||
/* {baudrate, input clock, prescalar, UCBRFx, UCBRSx, oversampling} */
|
|
||||||
{
|
|
||||||
.outputBaudrate = 115200,
|
|
||||||
.inputClockFreq = 12000000,
|
|
||||||
.prescalar = 6,
|
|
||||||
.hwRegUCBRFx = 8,
|
|
||||||
.hwRegUCBRSx = 32,
|
|
||||||
.oversampling = 1
|
|
||||||
},
|
|
||||||
{115200, 6000000, 3, 4, 2, 1},
|
|
||||||
{115200, 3000000, 1, 10, 0, 1},
|
|
||||||
{9600, 12000000, 78, 2, 0, 1},
|
|
||||||
{9600, 6000000, 39, 1, 0, 1},
|
|
||||||
{9600, 3000000, 19, 8, 85, 1},
|
|
||||||
{9600, 32768, 3, 0, 146, 0}
|
|
||||||
};
|
|
||||||
|
|
||||||
const UARTMSP432_HWAttrs uartMSP432HWAttrs[MSP_EXP432P401R_UARTCOUNT] = {
|
|
||||||
{
|
|
||||||
.baseAddr = EUSCI_A0_BASE,
|
|
||||||
.intNum = INT_EUSCIA0,
|
|
||||||
.intPriority = (~0),
|
|
||||||
.clockSource = EUSCI_A_UART_CLOCKSOURCE_SMCLK,
|
|
||||||
.bitOrder = EUSCI_A_UART_LSB_FIRST,
|
|
||||||
.numBaudrateEntries = sizeof(uartMSP432Baudrates) /
|
|
||||||
sizeof(UARTMSP432_BaudrateConfig),
|
|
||||||
.baudrateLUT = uartMSP432Baudrates,
|
|
||||||
.ringBufPtr = uartMSP432RingBuffer[0],
|
|
||||||
.ringBufSize = sizeof(uartMSP432RingBuffer[0])
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.baseAddr = EUSCI_A2_BASE,
|
|
||||||
.intNum = INT_EUSCIA2,
|
|
||||||
.intPriority = (~0),
|
|
||||||
.clockSource = EUSCI_A_UART_CLOCKSOURCE_SMCLK,
|
|
||||||
.bitOrder = EUSCI_A_UART_LSB_FIRST,
|
|
||||||
.numBaudrateEntries = sizeof(uartMSP432Baudrates) /
|
|
||||||
sizeof(UARTMSP432_BaudrateConfig),
|
|
||||||
.baudrateLUT = uartMSP432Baudrates,
|
|
||||||
.ringBufPtr = uartMSP432RingBuffer[1],
|
|
||||||
.ringBufSize = sizeof(uartMSP432RingBuffer[1])
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const UART_Config UART_config[] = {
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &UARTMSP432_fxnTable,
|
|
||||||
.object = &uartMSP432Objects[0],
|
|
||||||
.hwAttrs = &uartMSP432HWAttrs[0]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &UARTMSP432_fxnTable,
|
|
||||||
.object = &uartMSP432Objects[1],
|
|
||||||
.hwAttrs = &uartMSP432HWAttrs[1]
|
|
||||||
},
|
|
||||||
{NULL, NULL, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initUART ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initUART(void)
|
|
||||||
{
|
|
||||||
/* Set P1.2 & P1.3 in UART mode */
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1,
|
|
||||||
GPIO_PIN2 | GPIO_PIN3, GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
|
|
||||||
/* Set P3.2 & P3.3 in UART mode */
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P3,
|
|
||||||
GPIO_PIN2 | GPIO_PIN3, GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
|
|
||||||
/* Initialize the UART driver */
|
|
||||||
UART_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== Watchdog ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(Watchdog_config, ".const:Watchdog_config")
|
|
||||||
#pragma DATA_SECTION(watchdogMSP432HWAttrs, ".const:watchdogMSP432HWAttrs")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/Watchdog.h>
|
|
||||||
#include <ti/drivers/watchdog/WatchdogMSP432.h>
|
|
||||||
|
|
||||||
WatchdogMSP432_Object watchdogMSP432Objects[MSP_EXP432P401R_WATCHDOGCOUNT];
|
|
||||||
|
|
||||||
const WatchdogMSP432_HWAttrs
|
|
||||||
watchdogMSP432HWAttrs[MSP_EXP432P401R_WATCHDOGCOUNT] = {
|
|
||||||
{
|
|
||||||
.baseAddr = WDT_A_BASE,
|
|
||||||
.intNum = INT_WDT_A,
|
|
||||||
.intPriority = (~0),
|
|
||||||
.clockSource = WDT_A_CLOCKSOURCE_SMCLK,
|
|
||||||
.clockDivider = WDT_A_CLOCKDIVIDER_8192K
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const Watchdog_Config Watchdog_config[] = {
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &WatchdogMSP432_fxnTable,
|
|
||||||
.object = &watchdogMSP432Objects[0],
|
|
||||||
.hwAttrs = &watchdogMSP432HWAttrs[0]
|
|
||||||
},
|
|
||||||
{NULL, NULL, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initWatchdog ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initWatchdog(void)
|
|
||||||
{
|
|
||||||
/* Initialize the Watchdog driver */
|
|
||||||
Watchdog_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* =============================== WiFi ===============================
|
|
||||||
*/
|
|
||||||
/* Place into subsections to allow the TI linker to remove items properly */
|
|
||||||
#if defined(__TI_COMPILER_VERSION__)
|
|
||||||
#pragma DATA_SECTION(WiFi_config, ".const:WiFi_config")
|
|
||||||
#pragma DATA_SECTION(wiFiCC3100HWAttrs, ".const:wiFiCC3100HWAttrs")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ti/drivers/WiFi.h>
|
|
||||||
#include <ti/drivers/wifi/WiFiCC3100.h>
|
|
||||||
|
|
||||||
WiFiCC3100_Object wiFiCC3100Objects[MSP_EXP432P401R_WIFICOUNT];
|
|
||||||
|
|
||||||
const WiFiCC3100_HWAttrs wiFiCC3100HWAttrs[MSP_EXP432P401R_WIFICOUNT] = {
|
|
||||||
{
|
|
||||||
.irqPort = GPIO_PORT_P2,
|
|
||||||
.irqPin = GPIO_PIN5,
|
|
||||||
.irqIntNum = INT_PORT2,
|
|
||||||
|
|
||||||
.csPort = GPIO_PORT_P3,
|
|
||||||
.csPin = GPIO_PIN0,
|
|
||||||
|
|
||||||
.enPort = GPIO_PORT_P4,
|
|
||||||
.enPin = GPIO_PIN1
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const WiFi_Config WiFi_config[] = {
|
|
||||||
{
|
|
||||||
.fxnTablePtr = &WiFiCC3100_fxnTable,
|
|
||||||
.object = &wiFiCC3100Objects[0],
|
|
||||||
.hwAttrs = &wiFiCC3100HWAttrs[0]
|
|
||||||
},
|
|
||||||
{NULL, NULL, NULL},
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R_initWiFi ========
|
|
||||||
*/
|
|
||||||
void MSP_EXP432P401R_initWiFi(void)
|
|
||||||
{
|
|
||||||
/* Configure EN & CS pins to disable CC3100 */
|
|
||||||
MAP_GPIO_setAsOutputPin(GPIO_PORT_P3, GPIO_PIN0);
|
|
||||||
MAP_GPIO_setAsOutputPin(GPIO_PORT_P4, GPIO_PIN1);
|
|
||||||
MAP_GPIO_setOutputHighOnPin(GPIO_PORT_P3, GPIO_PIN0);
|
|
||||||
MAP_GPIO_setOutputLowOnPin(GPIO_PORT_P4, GPIO_PIN1);
|
|
||||||
|
|
||||||
/* Configure CLK, MOSI & MISO for SPI0 (EUSCI_B0) */
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P1,
|
|
||||||
GPIO_PIN5 | GPIO_PIN6, GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1, GPIO_PIN7,
|
|
||||||
GPIO_PRIMARY_MODULE_FUNCTION);
|
|
||||||
|
|
||||||
/* Configure IRQ pin */
|
|
||||||
MAP_GPIO_setAsInputPinWithPullDownResistor(GPIO_PORT_P2, GPIO_PIN5);
|
|
||||||
MAP_GPIO_interruptEdgeSelect(GPIO_PORT_P2, GPIO_PIN5,
|
|
||||||
GPIO_LOW_TO_HIGH_TRANSITION);
|
|
||||||
|
|
||||||
/* Initialize SPI and WiFi drivers */
|
|
||||||
MSP_EXP432P401R_initDMA();
|
|
||||||
SPI_init();
|
|
||||||
WiFi_init();
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2015-2016, Texas Instruments Incorporated
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* * Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
||||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* ======== MSP_EXP432P401R.cmd ========
|
|
||||||
* Define the memory block start/length for the MSP_EXP432P401R M4
|
|
||||||
*/
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
MAIN (RX) : origin = 0x00000000, length = 0x00040000
|
|
||||||
INFO (RX) : origin = 0x00200000, length = 0x00004000
|
|
||||||
SRAM_CODE (RWX): origin = 0x01000000, length = 0x00010000
|
|
||||||
SRAM_DATA (RW) : origin = 0x20000000, length = 0x00010000
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Section allocation in memory */
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.text : > MAIN
|
|
||||||
.const : > MAIN
|
|
||||||
.cinit : > MAIN
|
|
||||||
.pinit : > MAIN
|
|
||||||
|
|
||||||
.data : > SRAM_DATA
|
|
||||||
.bss : > SRAM_DATA
|
|
||||||
.sysmem : > SRAM_DATA
|
|
||||||
.stack : > SRAM_DATA (HIGH)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Symbolic definition of the WDTCTL register for RTS */
|
|
||||||
WDTCTL_SYM = 0x4000480C;
|
|
||||||
@@ -1,253 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Texas Instruments Incorporated
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
*
|
|
||||||
* * Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* * Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
|
||||||
* its contributors may be used to endorse or promote products derived
|
|
||||||
* from this software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
||||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
||||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
||||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
||||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
/** ============================================================================
|
|
||||||
* @file MSP_EXP432P401R.h
|
|
||||||
*
|
|
||||||
* @brief MSP_EXP432P401R Board Specific APIs
|
|
||||||
*
|
|
||||||
* The MSP_EXP432P401R header file should be included in an application as
|
|
||||||
* follows:
|
|
||||||
* @code
|
|
||||||
* #include <MSP_EXP432P401R.h>
|
|
||||||
* @endcode
|
|
||||||
*
|
|
||||||
* ============================================================================
|
|
||||||
*/
|
|
||||||
#ifndef CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_MSP_EXP432P401R_H_
|
|
||||||
#define CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_MSP_EXP432P401R_H_
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* LEDs on MSP_EXP432P401R are active high. */
|
|
||||||
#define MSP_EXP432P401R_LED_OFF (0)
|
|
||||||
#define MSP_EXP432P401R_LED_ON (1)
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_GPIOName
|
|
||||||
* @brief Enum of GPIO names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_GPIOName {
|
|
||||||
MSP_EXP432P401R_S1 = 0,
|
|
||||||
MSP_EXP432P401R_S2,
|
|
||||||
MSP_EXP432P401R_LED1,
|
|
||||||
MSP_EXP432P401R_LED_RED,
|
|
||||||
|
|
||||||
/*
|
|
||||||
* MSP_EXP432P401R_LED_GREEN & MSP_EXP432P401R_LED_BLUE are used for
|
|
||||||
* PWM examples. Uncomment the following lines if you would like to control
|
|
||||||
* the LEDs with the GPIO driver.
|
|
||||||
*/
|
|
||||||
//MSP_EXP432P401R_LED_GREEN,
|
|
||||||
//MSP_EXP432P401R_LED_BLUE,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_GPIOCOUNT
|
|
||||||
} MSP_EXP432P401R_GPIOName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_I2CName
|
|
||||||
* @brief Enum of I2C names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_I2CName {
|
|
||||||
MSP_EXP432P401R_I2CB0 = 0,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_I2CCOUNT
|
|
||||||
} MSP_EXP432P401R_I2CName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_PWMName
|
|
||||||
* @brief Enum of PWM names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_PWMName {
|
|
||||||
MSP_EXP432P401R_PWM_TA1_1 = 0,
|
|
||||||
MSP_EXP432P401R_PWM_TA1_2,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_PWMCOUNT
|
|
||||||
} MSP_EXP432P401R_PWMName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_SDSPIName
|
|
||||||
* @brief Enum of SDSPI names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_SDSPIName {
|
|
||||||
MSP_EXP432P401R_SDSPIB0 = 0,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_SDSPICOUNT
|
|
||||||
} EMSP_EXP432P401R_SDSPIName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_SPIName
|
|
||||||
* @brief Enum of SPI names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_SPIName {
|
|
||||||
MSP_EXP432P401R_SPIB0 = 0,
|
|
||||||
MSP_EXP432P401R_SPIB2,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_SPICOUNT
|
|
||||||
} MSP_EXP432P401R_SPIName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_UARTName
|
|
||||||
* @brief Enum of UART names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_UARTName {
|
|
||||||
MSP_EXP432P401R_UARTA0 = 0,
|
|
||||||
MSP_EXP432P401R_UARTA2,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_UARTCOUNT
|
|
||||||
} MSP_EXP432P401R_UARTName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_WatchdogName
|
|
||||||
* @brief Enum of Watchdog names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_WatchdogName {
|
|
||||||
MSP_EXP432P401R_WATCHDOG = 0,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_WATCHDOGCOUNT
|
|
||||||
} MSP_EXP432P401R_WatchdogName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @def MSP_EXP432P401R_WiFiName
|
|
||||||
* @brief Enum of WiFi names on the MSP_EXP432P401R dev board
|
|
||||||
*/
|
|
||||||
typedef enum MSP_EXP432P401R_WiFiName {
|
|
||||||
MSP_EXP432P401R_WIFI = 0,
|
|
||||||
|
|
||||||
MSP_EXP432P401R_WIFICOUNT
|
|
||||||
} MSP_EXP432P401R_WiFiName;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize the general board specific settings
|
|
||||||
*
|
|
||||||
* This function initializes the general board specific settings.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initGeneral(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific GPIO settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific GPIO settings and
|
|
||||||
* then calls the GPIO_init API to initialize the GPIO module.
|
|
||||||
*
|
|
||||||
* The GPIOs controlled by the GPIO module are determined by the GPIO_PinConfig
|
|
||||||
* variable.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initGPIO(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific I2C settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific I2C settings and then calls
|
|
||||||
* the I2C_init API to initialize the I2C module.
|
|
||||||
*
|
|
||||||
* The I2C peripherals controlled by the I2C module are determined by the
|
|
||||||
* I2C_config variable.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initI2C(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific PWM settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific PWM settings and then calls
|
|
||||||
* the PWM_init API to initialize the PWM module.
|
|
||||||
*
|
|
||||||
* The PWM peripherals controlled by the PWM module are determined by the
|
|
||||||
* PWM_config variable.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initPWM(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific SDSPI settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific SDSPI settings and then calls
|
|
||||||
* the SDSPI_init API to initialize the SDSPI module.
|
|
||||||
*
|
|
||||||
* The SDSPI peripherals controlled by the SDSPI module are determined by the
|
|
||||||
* SDSPI_config variable.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initSDSPI(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific SPI settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific SPI settings and then calls
|
|
||||||
* the SPI_init API to initialize the SPI module.
|
|
||||||
*
|
|
||||||
* The SPI peripherals controlled by the SPI module are determined by the
|
|
||||||
* SPI_config variable.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initSPI(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific UART settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific UART settings and then calls
|
|
||||||
* the UART_init API to initialize the UART module.
|
|
||||||
*
|
|
||||||
* The UART peripherals controlled by the UART module are determined by the
|
|
||||||
* UART_config variable.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initUART(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific Watchdog settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific Watchdog settings and then
|
|
||||||
* calls the Watchdog_init API to initialize the Watchdog module.
|
|
||||||
*
|
|
||||||
* The Watchdog peripherals controlled by the Watchdog module are determined
|
|
||||||
* by the Watchdog_config variable.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initWatchdog(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initialize board specific WiFi settings
|
|
||||||
*
|
|
||||||
* This function initializes the board specific WiFi settings and then calls
|
|
||||||
* the WiFi_init API to initialize the WiFi module.
|
|
||||||
*
|
|
||||||
* The hardware resources controlled by the WiFi module are determined by the
|
|
||||||
* WiFi_config variable.
|
|
||||||
*
|
|
||||||
* A SimpleLink CC3100 device or module is required and must be connected to
|
|
||||||
* use the WiFi driver.
|
|
||||||
*/
|
|
||||||
extern void MSP_EXP432P401R_initWiFi(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_MSP_EXP432P401R_H_ */
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_COMMON_CS_DBG_H_
|
|
||||||
#define CS_COMMON_CS_DBG_H_
|
|
||||||
|
|
||||||
#if CS_ENABLE_STDIO
|
|
||||||
#include <stdio.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CS_ENABLE_DEBUG
|
|
||||||
#define CS_ENABLE_DEBUG 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CS_LOG_ENABLE_TS_DIFF
|
|
||||||
#define CS_LOG_ENABLE_TS_DIFF 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
enum cs_log_level {
|
|
||||||
LL_NONE = -1,
|
|
||||||
LL_ERROR = 0,
|
|
||||||
LL_WARN = 1,
|
|
||||||
LL_INFO = 2,
|
|
||||||
LL_DEBUG = 3,
|
|
||||||
LL_VERBOSE_DEBUG = 4,
|
|
||||||
|
|
||||||
_LL_MIN = -2,
|
|
||||||
_LL_MAX = 5,
|
|
||||||
};
|
|
||||||
|
|
||||||
void cs_log_set_level(enum cs_log_level level);
|
|
||||||
|
|
||||||
#if CS_ENABLE_STDIO
|
|
||||||
|
|
||||||
void cs_log_set_file(FILE *file);
|
|
||||||
|
|
||||||
extern enum cs_log_level cs_log_level;
|
|
||||||
void cs_log_print_prefix(const char *func);
|
|
||||||
void cs_log_printf(const char *fmt, ...);
|
|
||||||
|
|
||||||
#define LOG(l, x) \
|
|
||||||
if (cs_log_level >= l) { \
|
|
||||||
cs_log_print_prefix(__func__); \
|
|
||||||
cs_log_printf x; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef CS_NDEBUG
|
|
||||||
|
|
||||||
#define DBG(x) \
|
|
||||||
if (cs_log_level >= LL_VERBOSE_DEBUG) { \
|
|
||||||
cs_log_print_prefix(__func__); \
|
|
||||||
cs_log_printf x; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#else /* NDEBUG */
|
|
||||||
|
|
||||||
#define DBG(x)
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#else /* CS_ENABLE_STDIO */
|
|
||||||
|
|
||||||
#define LOG(l, x)
|
|
||||||
#define DBG(x)
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#endif /* CS_COMMON_CS_DBG_H_ */
|
|
||||||
@@ -1,186 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Set up an AP or connect to existing WiFi network. */
|
|
||||||
#define WIFI_AP_SSID "Mongoose"
|
|
||||||
#define WIFI_AP_PASS ""
|
|
||||||
#define WIFI_AP_CHAN 6
|
|
||||||
// #define WIFI_STA_SSID "YourWiFi"
|
|
||||||
// #define WIFI_STA_PASS "YourPass"
|
|
||||||
|
|
||||||
#define MGOS_TASK_PRIORITY 3
|
|
||||||
#define MG_TASK_STACK_SIZE 8192
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
/* XDCtools Header files */
|
|
||||||
#include <xdc/std.h>
|
|
||||||
#include <xdc/runtime/System.h>
|
|
||||||
|
|
||||||
/* BIOS Header files */
|
|
||||||
#include <ti/sysbios/BIOS.h>
|
|
||||||
#include <ti/sysbios/knl/Task.h>
|
|
||||||
|
|
||||||
/* TI-RTOS Header files */
|
|
||||||
#include <ti/drivers/GPIO.h>
|
|
||||||
#include <ti/drivers/WiFi.h>
|
|
||||||
|
|
||||||
/* Example/Board Header file */
|
|
||||||
#include "Board.h"
|
|
||||||
|
|
||||||
/* Mongoose.h brings in SimpleLink support. Do not include simplelink.h. */
|
|
||||||
#include <mongoose.h>
|
|
||||||
|
|
||||||
#include "cs_dbg.h"
|
|
||||||
#include "wifi.h"
|
|
||||||
|
|
||||||
static const char *upload_form =
|
|
||||||
"\
|
|
||||||
<h1>Upload file</h1> \
|
|
||||||
<form action='/upload' method='POST' enctype='multipart/form-data'> \
|
|
||||||
<input type='file' name='file'> \
|
|
||||||
<input type='submit' value='Upload'> \
|
|
||||||
</form>";
|
|
||||||
|
|
||||||
static struct mg_str upload_fname(struct mg_connection *nc,
|
|
||||||
struct mg_str fname) {
|
|
||||||
struct mg_str lfn;
|
|
||||||
lfn.len = fname.len + 3;
|
|
||||||
lfn.p = malloc(lfn.len);
|
|
||||||
memcpy((char *) lfn.p, "SL:", 3);
|
|
||||||
memcpy((char *) lfn.p + 3, fname.p, fname.len);
|
|
||||||
return lfn;
|
|
||||||
}
|
|
||||||
|
|
||||||
void mg_ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|
||||||
LOG(LL_DEBUG, ("%p ev %d", nc, ev));
|
|
||||||
|
|
||||||
switch (ev) {
|
|
||||||
case MG_EV_ACCEPT: {
|
|
||||||
char addr[32];
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
LOG(LL_INFO, ("Connection %p from %s", nc, addr));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_REQUEST: {
|
|
||||||
char addr[32];
|
|
||||||
struct http_message *hm = (struct http_message *) ev_data;
|
|
||||||
cs_stat_t st;
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
LOG(LL_INFO,
|
|
||||||
("HTTP request from %s: %.*s %.*s", addr, (int) hm->method.len,
|
|
||||||
hm->method.p, (int) hm->uri.len, hm->uri.p));
|
|
||||||
if (mg_vcmp(&hm->uri, "/upload") == 0 ||
|
|
||||||
(mg_vcmp(&hm->uri, "/") == 0 && mg_stat("SL:index.html", &st) != 0)) {
|
|
||||||
mg_send(nc, upload_form, strlen(upload_form));
|
|
||||||
nc->flags |= MG_F_SEND_AND_CLOSE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
struct mg_serve_http_opts opts;
|
|
||||||
memset(&opts, 0, sizeof(opts));
|
|
||||||
opts.document_root = "SL:";
|
|
||||||
mg_serve_http(nc, hm, opts);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_CLOSE: {
|
|
||||||
LOG(LL_INFO, ("Connection %p closed", nc));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_PART_BEGIN:
|
|
||||||
case MG_EV_HTTP_PART_DATA:
|
|
||||||
case MG_EV_HTTP_PART_END: {
|
|
||||||
struct mg_http_multipart_part *mp =
|
|
||||||
(struct mg_http_multipart_part *) ev_data;
|
|
||||||
if (ev == MG_EV_HTTP_PART_BEGIN) {
|
|
||||||
LOG(LL_INFO, ("Begin file upload: %s", mp->file_name));
|
|
||||||
} else if (ev == MG_EV_HTTP_PART_END) {
|
|
||||||
LOG(LL_INFO, ("End file upload: %s", mp->file_name));
|
|
||||||
}
|
|
||||||
mg_file_upload_handler(nc, ev, ev_data, upload_fname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void mg_init(struct mg_mgr *mgr) {
|
|
||||||
WiFi_Params wifiParams;
|
|
||||||
WiFi_Handle handle;
|
|
||||||
|
|
||||||
LOG(LL_INFO, ("MG task running"));
|
|
||||||
|
|
||||||
/* Open WiFi driver */
|
|
||||||
WiFi_Params_init(&wifiParams);
|
|
||||||
wifiParams.bitRate = 2000000;
|
|
||||||
handle = WiFi_open(Board_WIFI, Board_WIFI_SPI, NULL, &wifiParams);
|
|
||||||
if (handle == NULL) {
|
|
||||||
System_abort("WiFi driver failed to open.");
|
|
||||||
}
|
|
||||||
|
|
||||||
sl_Start(0, 0, 0);
|
|
||||||
|
|
||||||
sl_fs_init();
|
|
||||||
|
|
||||||
#if defined(WIFI_STA_SSID)
|
|
||||||
if (!wifi_setup_sta(WIFI_STA_SSID, WIFI_STA_PASS)) {
|
|
||||||
LOG(LL_ERROR, ("Error setting up WiFi station"));
|
|
||||||
}
|
|
||||||
#elif defined(WIFI_AP_SSID)
|
|
||||||
if (!wifi_setup_ap(WIFI_AP_SSID, WIFI_AP_PASS, WIFI_AP_CHAN)) {
|
|
||||||
LOG(LL_ERROR, ("Error setting up WiFi AP"));
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#error WiFi not configured
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* We don't need SimpleLink's web server. */
|
|
||||||
sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID);
|
|
||||||
|
|
||||||
const char *err = "";
|
|
||||||
struct mg_bind_opts opts;
|
|
||||||
memset(&opts, 0, sizeof(opts));
|
|
||||||
opts.error_string = &err;
|
|
||||||
|
|
||||||
struct mg_connection *nc = mg_bind(mgr, "80", mg_ev_handler);
|
|
||||||
if (nc != NULL) {
|
|
||||||
mg_set_protocol_http_websocket(nc);
|
|
||||||
} else {
|
|
||||||
LOG(LL_ERROR, ("Failed to create listener: %s", err));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
Board_initGeneral();
|
|
||||||
Board_initGPIO();
|
|
||||||
Board_initWiFi();
|
|
||||||
|
|
||||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
|
||||||
setvbuf(stderr, NULL, _IOLBF, 0);
|
|
||||||
cs_log_set_level(LL_INFO);
|
|
||||||
cs_log_set_file(stdout);
|
|
||||||
|
|
||||||
if (!mg_start_task(MGOS_TASK_PRIORITY, MG_TASK_STACK_SIZE, mg_init)) {
|
|
||||||
LOG(LL_ERROR, ("Error starting Mongoose task"));
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
osi_start();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkHttpServerCallback(SlHttpServerEvent_t *e,
|
|
||||||
SlHttpServerResponse_t *resp) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkSockEventHandler(SlSockEvent_t *e) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SimpleLinkGeneralEventHandler(SlDeviceEvent_t *e) {
|
|
||||||
LOG(LL_ERROR, ("status %d sender %d", e->EventData.deviceEvent.status,
|
|
||||||
e->EventData.deviceEvent.sender));
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<configurations XML_version="1.2" id="configurations_0">
|
|
||||||
<configuration XML_version="1.2" id="configuration_0">
|
|
||||||
<instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe" xml="TIXDS110_Connection.xml" xmlpath="connections"/>
|
|
||||||
<connection XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe">
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510cs_dap.xml" id="drivers" xml="tixds510cs_dap.xml" xmlpath="drivers"/>
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510cortexM.xml" id="drivers" xml="tixds510cortexM.xml" xmlpath="drivers"/>
|
|
||||||
<platform XML_version="1.2" id="platform_0">
|
|
||||||
<instance XML_version="1.2" desc="MSP432P401R" href="devices/msp432p401r.xml" id="MSP432P401R" xml="msp432p401r.xml" xmlpath="devices"/>
|
|
||||||
</platform>
|
|
||||||
</connection>
|
|
||||||
</configuration>
|
|
||||||
</configurations>
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
|
||||||
on the device and connection settings specified in your project on the Properties > General page.
|
|
||||||
|
|
||||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
|
||||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
|
||||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
|
||||||
you may create your own target-configuration file for this project and manage it manually. You can
|
|
||||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
|
||||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
#include "cs_dbg.h"
|
|
||||||
#include "wifi.h"
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
#include "simplelink.h"
|
|
||||||
#include "wlan.h"
|
|
||||||
|
|
||||||
void SimpleLinkWlanEventHandler(SlWlanEvent_t *e) {
|
|
||||||
switch (e->Event) {
|
|
||||||
case SL_WLAN_CONNECT_EVENT:
|
|
||||||
LOG(LL_INFO, ("WiFi: connected, getting IP"));
|
|
||||||
break;
|
|
||||||
case SL_WLAN_STA_CONNECTED_EVENT:
|
|
||||||
LOG(LL_INFO, ("WiFi: station connected"));
|
|
||||||
break;
|
|
||||||
case SL_WLAN_STA_DISCONNECTED_EVENT:
|
|
||||||
LOG(LL_INFO, ("WiFi: station disconnected"));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
LOG(LL_INFO, ("WiFi: event %d", e->Event));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int ip_acquired = 0;
|
|
||||||
|
|
||||||
void SimpleLinkNetAppEventHandler(SlNetAppEvent_t *e) {
|
|
||||||
if (e->Event == SL_NETAPP_IPV4_IPACQUIRED_EVENT) {
|
|
||||||
SlIpV4AcquiredAsync_t *ed = &e->EventData.ipAcquiredV4;
|
|
||||||
LOG(LL_INFO, ("IP acquired: %lu.%lu.%lu.%lu", SL_IPV4_BYTE(ed->ip, 3),
|
|
||||||
SL_IPV4_BYTE(ed->ip, 2), SL_IPV4_BYTE(ed->ip, 1),
|
|
||||||
SL_IPV4_BYTE(ed->ip, 0)));
|
|
||||||
ip_acquired = 1;
|
|
||||||
} else if (e->Event == SL_NETAPP_IP_LEASED_EVENT) {
|
|
||||||
LOG(LL_INFO, ("IP leased"));
|
|
||||||
} else {
|
|
||||||
LOG(LL_INFO, ("NetApp event %d", e->Event));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wifi_setup_ap(const char *ssid, const char *pass, int channel) {
|
|
||||||
uint8_t v;
|
|
||||||
if (sl_WlanSetMode(ROLE_AP) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SSID, strlen(ssid),
|
|
||||||
(const uint8_t *) ssid) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
v = strlen(pass) > 0 ? SL_SEC_TYPE_WPA : SL_SEC_TYPE_OPEN;
|
|
||||||
if (sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SECURITY_TYPE, 1, &v) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (v == SL_SEC_TYPE_WPA &&
|
|
||||||
sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_PASSWORD, strlen(pass),
|
|
||||||
(const uint8_t *) pass) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
v = channel;
|
|
||||||
if (sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_CHANNEL, 1, &v) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
sl_NetAppStop(SL_NET_APP_DHCP_SERVER_ID);
|
|
||||||
{
|
|
||||||
SlNetCfgIpV4Args_t ipcfg;
|
|
||||||
memset(&ipcfg, 0, sizeof(ipcfg));
|
|
||||||
if (!inet_pton(AF_INET, "192.168.4.1", &ipcfg.ipV4) ||
|
|
||||||
!inet_pton(AF_INET, "255.255.255.0", &ipcfg.ipV4Mask) ||
|
|
||||||
/* This means "disable". 0.0.0.0 won't do. */
|
|
||||||
!inet_pton(AF_INET, "255.255.255.255", &ipcfg.ipV4DnsServer) ||
|
|
||||||
/* We'd like to disable gateway too, but DHCP server refuses to start.
|
|
||||||
*/
|
|
||||||
!inet_pton(AF_INET, "192.168.4.1", &ipcfg.ipV4Gateway) ||
|
|
||||||
sl_NetCfgSet(SL_IPV4_AP_P2P_GO_STATIC_ENABLE, IPCONFIG_MODE_ENABLE_IPV4,
|
|
||||||
sizeof(ipcfg), (uint8_t *) &ipcfg) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
SlNetAppDhcpServerBasicOpt_t dhcpcfg;
|
|
||||||
memset(&dhcpcfg, 0, sizeof(dhcpcfg));
|
|
||||||
dhcpcfg.lease_time = 900;
|
|
||||||
if (!inet_pton(AF_INET, "192.168.4.20", &dhcpcfg.ipv4_addr_start) ||
|
|
||||||
!inet_pton(AF_INET, "192.168.4.200", &dhcpcfg.ipv4_addr_last) ||
|
|
||||||
sl_NetAppSet(SL_NET_APP_DHCP_SERVER_ID, NETAPP_SET_DHCP_SRV_BASIC_OPT,
|
|
||||||
sizeof(dhcpcfg), (uint8_t *) &dhcpcfg) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sl_Stop(0);
|
|
||||||
int role = sl_Start(NULL, NULL, NULL);
|
|
||||||
if (role != ROLE_AP) {
|
|
||||||
LOG(LL_ERROR, ("Expected ROLE_AP (%d), got %d", ROLE_AP, role));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (sl_NetAppStart(SL_NET_APP_DHCP_SERVER_ID) != 0) {
|
|
||||||
LOG(LL_ERROR, ("DHCP server failed to start"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
LOG(LL_INFO, ("WiFi: AP %s configured", ssid));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wifi_setup_sta(const char *ssid, const char *pass) {
|
|
||||||
SlSecParams_t sp;
|
|
||||||
LOG(LL_INFO, ("WiFi: connecting to %s", ssid));
|
|
||||||
if (sl_WlanSetMode(ROLE_STA) != 0) return false;
|
|
||||||
sl_Stop(0);
|
|
||||||
sl_Start(NULL, NULL, NULL);
|
|
||||||
sl_WlanDisconnect();
|
|
||||||
sp.Key = (_i8 *) pass;
|
|
||||||
sp.KeyLen = strlen(pass);
|
|
||||||
sp.Type = sp.KeyLen ? SL_SEC_TYPE_WPA : SL_SEC_TYPE_OPEN;
|
|
||||||
if (sl_WlanConnect((const _i8 *) ssid, strlen(ssid), 0, &sp, 0) != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_WIFI_H_
|
|
||||||
#define CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_WIFI_H_
|
|
||||||
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
bool wifi_setup_ap(const char *ssid, const char *pass, int channel);
|
|
||||||
bool wifi_setup_sta(const char *ssid, const char *pass);
|
|
||||||
|
|
||||||
#endif /* CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_WIFI_H_ */
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<?ccsproject version="1.0"?>
|
|
||||||
<projectOptions>
|
|
||||||
<deviceVariant value="MSP432P401R"/>
|
|
||||||
<deviceFamily value="MSP432"/>
|
|
||||||
<deviceEndianness value="little"/>
|
|
||||||
<codegenToolVersion value="5.2.8"/>
|
|
||||||
<isElfFormat value="true"/>
|
|
||||||
<connection value="common/targetdb/connections/TIXDS110_Connection.xml"/>
|
|
||||||
<createSlaveProjects value=""/>
|
|
||||||
<templateProperties value="id=org.eclipse.rtsc.project.templates.EmptyRtscApplication,buildProfile=release,isHybrid=true,"/>
|
|
||||||
<isTargetManual value="false"/>
|
|
||||||
</projectOptions>
|
|
||||||
@@ -1,196 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.242205865">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.242205865" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="lib" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.242205865" name="Debug" parent="com.ti.ccstudio.buildDefinitions.MSP432.Debug" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.MSP432.Debug.242205865." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.libraryDebugToolchain.852495899" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.libraryDebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.librarianDebug.182350248">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1081004038" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=MSP432P401R"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_MBS_VERSION=2.2.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="XDC_VERSION=3.31.1.33_core"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.rtsc.TIRTOSmsp430:2.16.0.08;"/>
|
|
||||||
<listOptionValue builtIn="false" value="EXPANDED_REPOS="/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:staticLibrary"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.910806295" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.targetPlatformDebug.220661868" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.targetPlatformDebug"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.builderDebug.2008525884" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.builderDebug"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.compilerDebug.1957478400" name="MSP432 Compiler" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.compilerDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC.1600079717" name="Enable support for GCC extensions (DEPRECATED) (--gcc)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.181573608" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.949942191" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.107180039" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.22166878" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.FPv4SPD16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE.588204726" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="__MSP432P401R__"/>
|
|
||||||
<listOptionValue builtIn="false" value="TARGET_IS_MSP432P4XX"/>
|
|
||||||
<listOptionValue builtIn="false" value="ccs"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH.134723464" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include/CMSIS""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL.1299929989" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER.247804643" name="Enable checking of ULP power rules (--advice:power)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER" value=""all"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING.75072455" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER.1631534749" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.377575485" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN.214103179" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.C_DIALECT.1039008667" name="C Dialect" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.C_DIALECT" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.C_DIALECT.C99" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.1561332826" name="Set error category for ULP power rules (--advice:power_severity)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.suppress" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.2024463240" name="Optimization level (--opt_level, -O)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.1323389945" name="Speed vs. size trade-offs (--opt_for_speed, -mf)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS.640783361" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS.1558463740" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS.1443539078" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS.1291573730" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.librarianDebug.182350248" name="MSP432 Archiver" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.librarianDebug">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.archiverID.OUTPUT_FILE.1501640506" name="Output file" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.archiverID.OUTPUT_FILE" value=""${ProjName}.lib"" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1323526968" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.507947486" name="Compiler tools directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.2087087444" name="Target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M4F" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1627911596" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.msp432:MSP432P401R" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW.1633912539" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW" value="ti.platforms.msp432:$DeviceId$" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.109209033" name="Build-profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1719973519" name="Package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSMSP430_REPOS}"/>
|
|
||||||
<listOptionValue builtIn="false" value="${TARGET_CONTENT_BASE}"/>
|
|
||||||
</option>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.MSP432.Release.1544782967">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.MSP432.Release.1544782967" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="lib" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.MSP432.Release.1544782967" name="Release" parent="com.ti.ccstudio.buildDefinitions.MSP432.Release" postbuildStep="" prebuildStep="">
|
|
||||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.MSP432.Release.1544782967." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.ReleaseToolchain.74382251" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.librarianRelease.1395179648">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1512922139" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=MSP432P401R"/>
|
|
||||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
|
|
||||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_MBS_VERSION=2.2.0"/>
|
|
||||||
<listOptionValue builtIn="false" value="XDC_VERSION=3.31.1.33_core"/>
|
|
||||||
<listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.rtsc.TIRTOSmsp430:2.16.0.08;"/>
|
|
||||||
<listOptionValue builtIn="false" value="EXPANDED_REPOS="/>
|
|
||||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:staticLibrary"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1127638216" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="5.2.8" valueType="string"/>
|
|
||||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.targetPlatformRelease.1428280703" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.targetPlatformRelease"/>
|
|
||||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.builderRelease.2091719435" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.builderRelease"/>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.compilerRelease.574316885" name="MSP432 Compiler" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.compilerRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC.1255465912" name="Enable support for GCC extensions (DEPRECATED) (--gcc)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.GCC" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.1375172738" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.677673886" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.CODE_STATE.16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.350325440" name="Application binary interface. [See 'General' page to edit] (--abi)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ABI.eabi" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.1996484789" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.FLOAT_SUPPORT.FPv4SPD16" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE.181121787" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DEFINE" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="__MSP432P401R__"/>
|
|
||||||
<listOptionValue builtIn="false" value="TARGET_IS_MSP432P4XX"/>
|
|
||||||
<listOptionValue builtIn="false" value="ccs"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_FILESYSTEM=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_ENABLE_HTTP_STREAMING_MULTIPART=1"/>
|
|
||||||
<listOptionValue builtIn="false" value="MG_FS_SLFS=1"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH.1239544023" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSMSP430_INSTALL_DIR}/products/tidrivers_msp43x_2_16_00_08/packages/ti/mw/wifi/cc3x00""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CCS_BASE_ROOT}/arm/include/CMSIS""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER.937821825" name="Enable checking of ULP power rules (--advice:power)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER" value=""all"" valueType="string"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING.1871833692" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WARNING" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="225"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER.1052162638" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.139877883" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.DIAG_WRAP.off" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN.832106645" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.LITTLE_ENDIAN" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.1681960761" name="Set error category for ULP power rules (--advice:power_severity)" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.ADVICE__POWER_SEVERITY.suppress" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.library.release.1831028141" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.library.release" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_LEVEL.4" valueType="enumerated"/>
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.1526961018" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED" value="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compilerID.OPT_FOR_SPEED.0" valueType="enumerated"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS.494310206" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__C_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS.1747791468" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__CPP_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS.1060043732" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM_SRCS"/>
|
|
||||||
<inputType id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS.1680835546" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.compiler.inputType__ASM2_SRCS"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.librarianRelease.1395179648" name="MSP432 Archiver" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.library.librarianRelease">
|
|
||||||
<option id="com.ti.ccstudio.buildDefinitions.MSP432_5.2.archiverID.OUTPUT_FILE.874992649" name="Output file" superClass="com.ti.ccstudio.buildDefinitions.MSP432_5.2.archiverID.OUTPUT_FILE" value=""${ProjName}.lib"" valueType="string"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.736679504" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.404302903" name="Compiler tools directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1601732449" name="Target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M4F" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1561112080" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.msp432:MSP432P401R" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW.832946789" name="Platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM_RAW" value="ti.platforms.msp432:$DeviceId$" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.894476358" name="Build-profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="release" valueType="string"/>
|
|
||||||
<option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1046157525" name="Package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSMSP430_REPOS}"/>
|
|
||||||
<listOptionValue builtIn="false" value="${TARGET_CONTENT_BASE}"/>
|
|
||||||
</option>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="src|msp432p401r.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="Mongoose.com.ti.ccstudio.buildDefinitions.MSP432.ProjectType.1858983168" name="MSP432" projectType="com.ti.ccstudio.buildDefinitions.MSP432.ProjectType"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="scannerConfiguration"/>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
|
||||||
<project-mappings>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
|
||||||
</project-mappings>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="refreshScope"/>
|
|
||||||
</cproject>
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>MSP432_Mongoose</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature>
|
|
||||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
<linkedResources>
|
|
||||||
<link>
|
|
||||||
<name>mongoose.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-4-PROJECT_LOC/mongoose.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>mongoose.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-4-PROJECT_LOC/mongoose.h</locationURI>
|
|
||||||
</link>
|
|
||||||
</linkedResources>
|
|
||||||
</projectDescription>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
var BIOS = xdc.useModule('ti.sysbios.BIOS');
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
clean:
|
|
||||||
rm -rf */Debug */Release */.config */.launches */.settings */.xdchelp */src
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Copyright (c) 2014 Cesanta Software
|
|
||||||
# All rights reserved
|
|
||||||
|
|
||||||
# `wildcard ./*/` works in both linux and linux/wine, while `wildcard */` enumerates nothing under wine
|
|
||||||
SUBDIRS = $(sort $(dir $(wildcard ./*/)))
|
|
||||||
SUBDIRS:=$(filter-out ./ ./CC3200/ ./ESP8266_RTOS/ ./mbed/ ./MSP432/ ./nRF51/ ./nRF52/ ./NXP_K64/ ./NXP_LPC4088/ ./PIC32/ ./STM32F4_CC3100/ ./TM4C129/ ./WinCE/, $(SUBDIRS))
|
|
||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
|
||||||
SUBDIRS:=$(filter-out ./netcat/ ./raspberry_pi_mjpeg_led/ ./captive_dns_server/, $(SUBDIRS))
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: $(SUBDIRS)
|
|
||||||
|
|
||||||
all: $(SUBDIRS)
|
|
||||||
|
|
||||||
$(SUBDIRS):
|
|
||||||
@$(MAKE) -C $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
for d in $(SUBDIRS) ; do $(MAKE) -C $$d clean ; done
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include "fsl_common.h"
|
|
||||||
#include "fsl_debug_console.h"
|
|
||||||
#include "board.h"
|
|
||||||
|
|
||||||
/* Initialize debug console. */
|
|
||||||
void BOARD_InitDebugConsole(void)
|
|
||||||
{
|
|
||||||
uint32_t uartClkSrcFreq = BOARD_DEBUG_UART_CLK_FREQ;
|
|
||||||
DbgConsole_Init(BOARD_DEBUG_UART_BASEADDR, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq);
|
|
||||||
}
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _BOARD_H_
|
|
||||||
#define _BOARD_H_
|
|
||||||
|
|
||||||
#include "clock_config.h"
|
|
||||||
#include "fsl_gpio.h"
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Definitions
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
/* The board name */
|
|
||||||
#define BOARD_NAME "FRDM-K64F"
|
|
||||||
|
|
||||||
/* The UART to use for debug messages. */
|
|
||||||
#define BOARD_DEBUG_UART_TYPE DEBUG_CONSOLE_DEVICE_TYPE_UART
|
|
||||||
#define BOARD_DEBUG_UART_BASEADDR (uint32_t) UART0
|
|
||||||
#define BOARD_DEBUG_UART_CLKSRC SYS_CLK
|
|
||||||
#define BOARD_DEBUG_UART_CLK_FREQ CLOCK_GetCoreSysClkFreq()
|
|
||||||
#define BOARD_UART_IRQ UART0_RX_TX_IRQn
|
|
||||||
#define BOARD_UART_IRQ_HANDLER UART0_RX_TX_IRQHandler
|
|
||||||
|
|
||||||
#ifndef BOARD_DEBUG_UART_BAUDRATE
|
|
||||||
#define BOARD_DEBUG_UART_BAUDRATE 115200
|
|
||||||
#endif /* BOARD_DEBUG_UART_BAUDRATE */
|
|
||||||
|
|
||||||
/* Define the port interrupt number for the board switches */
|
|
||||||
#define BOARD_SW2_GPIO GPIOC
|
|
||||||
#define BOARD_SW2_PORT PORTC
|
|
||||||
#define BOARD_SW2_GPIO_PIN 6U
|
|
||||||
#define BOARD_SW2_IRQ PORTC_IRQn
|
|
||||||
#define BOARD_SW2_IRQ_HANDLER PORTC_IRQHandler
|
|
||||||
#define BOARD_SW2_NAME "SW2"
|
|
||||||
|
|
||||||
#define BOARD_SW3_GPIO GPIOA
|
|
||||||
#define BOARD_SW3_PORT PORTA
|
|
||||||
#define BOARD_SW3_GPIO_PIN 4U
|
|
||||||
#define BOARD_SW3_IRQ PORTA_IRQn
|
|
||||||
#define BOARD_SW3_IRQ_HANDLER PORTA_IRQHandler
|
|
||||||
#define BOARD_SW3_NAME "SW3"
|
|
||||||
|
|
||||||
/* Board led color mapping */
|
|
||||||
#define LOGIC_LED_ON 0U
|
|
||||||
#define LOGIC_LED_OFF 1U
|
|
||||||
#define BOARD_LED_RED_GPIO GPIOB
|
|
||||||
#define BOARD_LED_RED_GPIO_PORT PORTB
|
|
||||||
#define BOARD_LED_RED_GPIO_PIN 22U
|
|
||||||
#define BOARD_LED_GREEN_GPIO GPIOE
|
|
||||||
#define BOARD_LED_GREEN_GPIO_PORT PORTE
|
|
||||||
#define BOARD_LED_GREEN_GPIO_PIN 26U
|
|
||||||
#define BOARD_LED_BLUE_GPIO GPIOB
|
|
||||||
#define BOARD_LED_BLUE_GPIO_PORT PORTB
|
|
||||||
#define BOARD_LED_BLUE_GPIO_PIN 21U
|
|
||||||
|
|
||||||
#define LED_RED_INIT(output) \
|
|
||||||
GPIO_PinInit(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PIN, \
|
|
||||||
&(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_RED */
|
|
||||||
#define LED_RED_ON() \
|
|
||||||
GPIO_ClearPinsOutput(BOARD_LED_RED_GPIO, 1U << BOARD_LED_RED_GPIO_PIN) /*!< Turn on target LED_RED */
|
|
||||||
#define LED_RED_OFF() \
|
|
||||||
GPIO_SetPinsOutput(BOARD_LED_RED_GPIO, 1U << BOARD_LED_RED_GPIO_PIN) /*!< Turn off target LED_RED */
|
|
||||||
#define LED_RED_TOGGLE() \
|
|
||||||
GPIO_TogglePinsOutput(BOARD_LED_RED_GPIO, 1U << BOARD_LED_RED_GPIO_PIN) /*!< Toggle on target LED_RED */
|
|
||||||
|
|
||||||
#define LED_GREEN_INIT(output) \
|
|
||||||
GPIO_PinInit(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PIN, \
|
|
||||||
&(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_GREEN */
|
|
||||||
#define LED_GREEN_ON() \
|
|
||||||
GPIO_ClearPinsOutput(BOARD_LED_GREEN_GPIO, 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Turn on target LED_GREEN */
|
|
||||||
#define LED_GREEN_OFF() \
|
|
||||||
GPIO_SetPinsOutput(BOARD_LED_GREEN_GPIO, 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Turn off target LED_GREEN */
|
|
||||||
#define LED_GREEN_TOGGLE() \
|
|
||||||
GPIO_TogglePinsOutput(BOARD_LED_GREEN_GPIO, 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Toggle on target LED_GREEN */
|
|
||||||
|
|
||||||
#define LED_BLUE_INIT(output) \
|
|
||||||
GPIO_PinInit(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PIN, \
|
|
||||||
&(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_BLUE */
|
|
||||||
#define LED_BLUE_ON() \
|
|
||||||
GPIO_ClearPinsOutput(BOARD_LED_BLUE_GPIO, 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Turn on target LED_BLUE */
|
|
||||||
#define LED_BLUE_OFF() \
|
|
||||||
GPIO_SetPinsOutput(BOARD_LED_BLUE_GPIO, 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Turn off target LED_BLUE */
|
|
||||||
#define LED_BLUE_TOGGLE() \
|
|
||||||
GPIO_TogglePinsOutput(BOARD_LED_BLUE_GPIO, 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Toggle on target LED_BLUE */
|
|
||||||
|
|
||||||
/* The SDHC instance/channel used for board */
|
|
||||||
#define BOARD_SDHC_CD_GPIO_IRQ_HANDLER PORTB_IRQHandler
|
|
||||||
|
|
||||||
/* SDHC base address, clock and card detection pin */
|
|
||||||
#define BOARD_SDHC_BASEADDR SDHC
|
|
||||||
#define BOARD_SDHC_CLKSRC kCLOCK_CoreSysClk
|
|
||||||
#define BOARD_SDHC_IRQ SDHC_IRQn
|
|
||||||
#define BOARD_SDHC_CD_GPIO_BASE GPIOE
|
|
||||||
#define BOARD_SDHC_CD_GPIO_PIN 6U
|
|
||||||
#define BOARD_SDHC_CD_PORT_BASE PORTE
|
|
||||||
#define BOARD_SDHC_CD_PORT_IRQ PORTE_IRQn
|
|
||||||
#define BOARD_SDHC_CD_PORT_IRQ_HANDLER PORTE_IRQHandler
|
|
||||||
#define BOARD_SDHC_CD_LOGIC_RISING
|
|
||||||
|
|
||||||
#define BOARD_ACCEL_I2C_BASEADDR I2C0
|
|
||||||
|
|
||||||
/* @brief FreeRTOS tickless timer configuration. */
|
|
||||||
#define vPortLptmrIsr LPTMR0_IRQHandler /*!< Timer IRQ handler. */
|
|
||||||
#define TICKLESS_LPTMR_BASE_PTR LPTMR0 /*!< Tickless timer base address. */
|
|
||||||
#define TICKLESS_LPTMR_IRQn LPTMR0_IRQn /*!< Tickless timer IRQ number. */
|
|
||||||
|
|
||||||
/* @brief pit IRQ configuration for lwip demo */
|
|
||||||
#define LWIP_TIME_ISR PIT0_IRQHandler
|
|
||||||
#define LWIP_PIT_IRQ_ID PIT0_IRQn
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* API
|
|
||||||
******************************************************************************/
|
|
||||||
void BOARD_InitDebugConsole(void);
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#endif /* _BOARD_H_ */
|
|
||||||
@@ -1,197 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "fsl_common.h"
|
|
||||||
#include "fsl_smc.h"
|
|
||||||
#include "clock_config.h"
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Definitions
|
|
||||||
******************************************************************************/
|
|
||||||
/*! @brief Clock configuration structure. */
|
|
||||||
typedef struct _clock_config
|
|
||||||
{
|
|
||||||
mcg_config_t mcgConfig; /*!< MCG configuration. */
|
|
||||||
sim_clock_config_t simConfig; /*!< SIM configuration. */
|
|
||||||
osc_config_t oscConfig; /*!< OSC configuration. */
|
|
||||||
uint32_t coreClock; /*!< core clock frequency. */
|
|
||||||
} clock_config_t;
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Variables
|
|
||||||
******************************************************************************/
|
|
||||||
/* System clock frequency. */
|
|
||||||
extern uint32_t SystemCoreClock;
|
|
||||||
|
|
||||||
/* Configuration for enter VLPR mode. Core clock = 4MHz. */
|
|
||||||
const clock_config_t g_defaultClockConfigVlpr = {
|
|
||||||
.mcgConfig =
|
|
||||||
{
|
|
||||||
.mcgMode = kMCG_ModeBLPI, /* Work in BLPI mode. */
|
|
||||||
.irclkEnableMode = kMCG_IrclkEnable, /* MCGIRCLK enable. */
|
|
||||||
.ircs = kMCG_IrcFast, /* Select IRC4M. */
|
|
||||||
.fcrdiv = 0U, /* FCRDIV is 0. */
|
|
||||||
|
|
||||||
.frdiv = 0U,
|
|
||||||
.drs = kMCG_DrsLow, /* Low frequency range. */
|
|
||||||
.dmx32 = kMCG_Dmx32Default, /* DCO has a default range of 25%. */
|
|
||||||
.oscsel = kMCG_OscselOsc, /* Select OSC. */
|
|
||||||
|
|
||||||
.pll0Config =
|
|
||||||
{
|
|
||||||
.enableMode = 0U, /* Don't eanble PLL. */
|
|
||||||
.prdiv = 0U,
|
|
||||||
.vdiv = 0U,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
.simConfig =
|
|
||||||
{
|
|
||||||
.pllFllSel = 3U, /* PLLFLLSEL select IRC48MCLK. */
|
|
||||||
.er32kSrc = 2U, /* ERCLK32K selection, use RTC. */
|
|
||||||
.clkdiv1 = 0x00040000U, /* SIM_CLKDIV1. */
|
|
||||||
},
|
|
||||||
.oscConfig = {.freq = BOARD_XTAL0_CLK_HZ,
|
|
||||||
.capLoad = 0,
|
|
||||||
.workMode = kOSC_ModeExt,
|
|
||||||
.oscerConfig =
|
|
||||||
{
|
|
||||||
.enableMode = kOSC_ErClkEnable,
|
|
||||||
#if (defined(FSL_FEATURE_OSC_HAS_EXT_REF_CLOCK_DIVIDER) && FSL_FEATURE_OSC_HAS_EXT_REF_CLOCK_DIVIDER)
|
|
||||||
.erclkDiv = 0U,
|
|
||||||
#endif
|
|
||||||
}},
|
|
||||||
.coreClock = 4000000U, /* Core clock frequency */
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Configuration for enter RUN mode. Core clock = 120MHz. */
|
|
||||||
const clock_config_t g_defaultClockConfigRun = {
|
|
||||||
.mcgConfig =
|
|
||||||
{
|
|
||||||
.mcgMode = kMCG_ModePEE, /* Work in PEE mode. */
|
|
||||||
.irclkEnableMode = kMCG_IrclkEnable, /* MCGIRCLK enable. */
|
|
||||||
.ircs = kMCG_IrcSlow, /* Select IRC32k. */
|
|
||||||
.fcrdiv = 0U, /* FCRDIV is 0. */
|
|
||||||
|
|
||||||
.frdiv = 7U,
|
|
||||||
.drs = kMCG_DrsLow, /* Low frequency range. */
|
|
||||||
.dmx32 = kMCG_Dmx32Default, /* DCO has a default range of 25%. */
|
|
||||||
.oscsel = kMCG_OscselOsc, /* Select OSC. */
|
|
||||||
|
|
||||||
.pll0Config =
|
|
||||||
{
|
|
||||||
.enableMode = 0U, .prdiv = 0x13U, .vdiv = 0x18U,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
.simConfig =
|
|
||||||
{
|
|
||||||
.pllFllSel = 1U, /* PLLFLLSEL select PLL. */
|
|
||||||
.er32kSrc = 2U, /* ERCLK32K selection, use RTC. */
|
|
||||||
.clkdiv1 = 0x01140000U, /* SIM_CLKDIV1. */
|
|
||||||
},
|
|
||||||
.oscConfig = {.freq = BOARD_XTAL0_CLK_HZ,
|
|
||||||
.capLoad = 0,
|
|
||||||
.workMode = kOSC_ModeExt,
|
|
||||||
.oscerConfig =
|
|
||||||
{
|
|
||||||
.enableMode = kOSC_ErClkEnable,
|
|
||||||
#if (defined(FSL_FEATURE_OSC_HAS_EXT_REF_CLOCK_DIVIDER) && FSL_FEATURE_OSC_HAS_EXT_REF_CLOCK_DIVIDER)
|
|
||||||
.erclkDiv = 0U,
|
|
||||||
#endif
|
|
||||||
}},
|
|
||||||
.coreClock = 120000000U, /* Core clock frequency */
|
|
||||||
};
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Code
|
|
||||||
******************************************************************************/
|
|
||||||
/*
|
|
||||||
* How to setup clock using clock driver functions:
|
|
||||||
*
|
|
||||||
* 1. CLOCK_SetSimSafeDivs, to make sure core clock, bus clock, flexbus clock
|
|
||||||
* and flash clock are in allowed range during clock mode switch.
|
|
||||||
*
|
|
||||||
* 2. Call CLOCK_Osc0Init to setup OSC clock, if it is used in target mode.
|
|
||||||
*
|
|
||||||
* 3. Set MCG configuration, MCG includes three parts: FLL clock, PLL clock and
|
|
||||||
* internal reference clock(MCGIRCLK). Follow the steps to setup:
|
|
||||||
*
|
|
||||||
* 1). Call CLOCK_BootToXxxMode to set MCG to target mode.
|
|
||||||
*
|
|
||||||
* 2). If target mode is FBI/BLPI/PBI mode, the MCGIRCLK has been configured
|
|
||||||
* correctly. For other modes, need to call CLOCK_SetInternalRefClkConfig
|
|
||||||
* explicitly to setup MCGIRCLK.
|
|
||||||
*
|
|
||||||
* 3). Don't need to configure FLL explicitly, because if target mode is FLL
|
|
||||||
* mode, then FLL has been configured by the function CLOCK_BootToXxxMode,
|
|
||||||
* if the target mode is not FLL mode, the FLL is disabled.
|
|
||||||
*
|
|
||||||
* 4). If target mode is PEE/PBE/PEI/PBI mode, then the related PLL has been
|
|
||||||
* setup by CLOCK_BootToXxxMode. In FBE/FBI/FEE/FBE mode, the PLL could
|
|
||||||
* be enabled independently, call CLOCK_EnablePll0 explicitly in this case.
|
|
||||||
*
|
|
||||||
* 4. Call CLOCK_SetSimConfig to set the clock configuration in SIM.
|
|
||||||
*/
|
|
||||||
|
|
||||||
void BOARD_BootClockVLPR(void)
|
|
||||||
{
|
|
||||||
CLOCK_SetSimSafeDivs();
|
|
||||||
|
|
||||||
CLOCK_BootToBlpiMode(g_defaultClockConfigVlpr.mcgConfig.fcrdiv, g_defaultClockConfigVlpr.mcgConfig.ircs,
|
|
||||||
g_defaultClockConfigVlpr.mcgConfig.irclkEnableMode);
|
|
||||||
|
|
||||||
CLOCK_SetSimConfig(&g_defaultClockConfigVlpr.simConfig);
|
|
||||||
|
|
||||||
SystemCoreClock = g_defaultClockConfigVlpr.coreClock;
|
|
||||||
|
|
||||||
SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
|
|
||||||
SMC_SetPowerModeVlpr(SMC, false);
|
|
||||||
while (SMC_GetPowerModeState(SMC) != kSMC_PowerStateVlpr)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void BOARD_BootClockRUN(void)
|
|
||||||
{
|
|
||||||
CLOCK_SetSimSafeDivs();
|
|
||||||
|
|
||||||
CLOCK_InitOsc0(&g_defaultClockConfigRun.oscConfig);
|
|
||||||
CLOCK_SetXtal0Freq(BOARD_XTAL0_CLK_HZ);
|
|
||||||
|
|
||||||
CLOCK_BootToPeeMode(g_defaultClockConfigRun.mcgConfig.oscsel, kMCG_PllClkSelPll0,
|
|
||||||
&g_defaultClockConfigRun.mcgConfig.pll0Config);
|
|
||||||
|
|
||||||
CLOCK_SetInternalRefClkConfig(g_defaultClockConfigRun.mcgConfig.irclkEnableMode,
|
|
||||||
g_defaultClockConfigRun.mcgConfig.ircs, g_defaultClockConfigRun.mcgConfig.fcrdiv);
|
|
||||||
|
|
||||||
CLOCK_SetSimConfig(&g_defaultClockConfigRun.simConfig);
|
|
||||||
|
|
||||||
SystemCoreClock = g_defaultClockConfigRun.coreClock;
|
|
||||||
}
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
#ifndef _CLOCK_CONFIG_H_
|
|
||||||
#define _CLOCK_CONFIG_H_
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* DEFINITION
|
|
||||||
******************************************************************************/
|
|
||||||
#define BOARD_XTAL0_CLK_HZ 50000000U
|
|
||||||
#define BOARD_XTAL32K_CLK_HZ 32768U
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* API
|
|
||||||
******************************************************************************/
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus*/
|
|
||||||
|
|
||||||
void BOARD_BootClockVLPR(void);
|
|
||||||
void BOARD_BootClockRUN(void);
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus*/
|
|
||||||
|
|
||||||
#endif /* _CLOCK_CONFIG_H_ */
|
|
||||||
@@ -1,293 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "fsl_phy.h"
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Definitions
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
/*! @brief Defines the timeout macro. */
|
|
||||||
#define PHY_TIMEOUT_COUNT 0xFFFFFU
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Prototypes
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Get the ENET instance from peripheral base address.
|
|
||||||
*
|
|
||||||
* @param base ENET peripheral base address.
|
|
||||||
* @return ENET instance.
|
|
||||||
*/
|
|
||||||
extern uint32_t ENET_GetInstance(ENET_Type *base);
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Variables
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
/*! @brief Pointers to enet clocks for each instance. */
|
|
||||||
extern clock_ip_name_t s_enetClock[FSL_FEATURE_SOC_ENET_COUNT];
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Code
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
status_t PHY_Init(ENET_Type *base, uint32_t phyAddr, uint32_t srcClock_Hz)
|
|
||||||
{
|
|
||||||
uint32_t bssReg;
|
|
||||||
uint32_t counter = PHY_TIMEOUT_COUNT;
|
|
||||||
status_t result = kStatus_Success;
|
|
||||||
uint32_t instance = ENET_GetInstance(base);
|
|
||||||
|
|
||||||
/* Set SMI first. */
|
|
||||||
CLOCK_EnableClock(s_enetClock[instance]);
|
|
||||||
ENET_SetSMI(base, srcClock_Hz, false);
|
|
||||||
|
|
||||||
/* Reset PHY. */
|
|
||||||
result = PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK);
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
/* Set the negotiation. */
|
|
||||||
result = PHY_Write(base, phyAddr, PHY_AUTONEG_ADVERTISE_REG,
|
|
||||||
(PHY_100BASETX_FULLDUPLEX_MASK | PHY_100BASETX_HALFDUPLEX_MASK |
|
|
||||||
PHY_10BASETX_FULLDUPLEX_MASK | PHY_10BASETX_HALFDUPLEX_MASK | 0x1U));
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
result = PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG,
|
|
||||||
(PHY_BCTL_AUTONEG_MASK | PHY_BCTL_RESTART_AUTONEG_MASK));
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
/* Check auto negotiation complete. */
|
|
||||||
while (counter --)
|
|
||||||
{
|
|
||||||
result = PHY_Read(base, phyAddr, PHY_BASICSTATUS_REG, &bssReg);
|
|
||||||
if ( result == kStatus_Success)
|
|
||||||
{
|
|
||||||
if ((bssReg & PHY_BSTATUS_AUTONEGCOMP_MASK) != 0)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!counter)
|
|
||||||
{
|
|
||||||
return kStatus_PHY_AutoNegotiateFail;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
status_t PHY_Write(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t data)
|
|
||||||
{
|
|
||||||
uint32_t counter;
|
|
||||||
|
|
||||||
/* Clear the SMI interrupt event. */
|
|
||||||
ENET_ClearInterruptStatus(base, ENET_EIR_MII_MASK);
|
|
||||||
|
|
||||||
/* Starts a SMI write command. */
|
|
||||||
ENET_StartSMIWrite(base, phyAddr, phyReg, kENET_MiiWriteValidFrame, data);
|
|
||||||
|
|
||||||
/* Wait for SMI complete. */
|
|
||||||
for (counter = PHY_TIMEOUT_COUNT; counter > 0; counter--)
|
|
||||||
{
|
|
||||||
if (ENET_GetInterruptStatus(base) & ENET_EIR_MII_MASK)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check for timeout. */
|
|
||||||
if (!counter)
|
|
||||||
{
|
|
||||||
return kStatus_PHY_SMIVisitTimeout;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Clear MII interrupt event. */
|
|
||||||
ENET_ClearInterruptStatus(base, ENET_EIR_MII_MASK);
|
|
||||||
|
|
||||||
return kStatus_Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
status_t PHY_Read(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t *dataPtr)
|
|
||||||
{
|
|
||||||
assert(dataPtr);
|
|
||||||
|
|
||||||
uint32_t counter;
|
|
||||||
|
|
||||||
/* Clear the MII interrupt event. */
|
|
||||||
ENET_ClearInterruptStatus(base, ENET_EIR_MII_MASK);
|
|
||||||
|
|
||||||
/* Starts a SMI read command operation. */
|
|
||||||
ENET_StartSMIRead(base, phyAddr, phyReg, kENET_MiiReadValidFrame);
|
|
||||||
|
|
||||||
/* Wait for MII complete. */
|
|
||||||
for (counter = PHY_TIMEOUT_COUNT; counter > 0; counter--)
|
|
||||||
{
|
|
||||||
if (ENET_GetInterruptStatus(base) & ENET_EIR_MII_MASK)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check for timeout. */
|
|
||||||
if (!counter)
|
|
||||||
{
|
|
||||||
return kStatus_PHY_SMIVisitTimeout;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get data from MII register. */
|
|
||||||
*dataPtr = ENET_ReadSMIData(base);
|
|
||||||
|
|
||||||
/* Clear MII interrupt event. */
|
|
||||||
ENET_ClearInterruptStatus(base, ENET_EIR_MII_MASK);
|
|
||||||
|
|
||||||
return kStatus_Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
status_t PHY_EnableLoopback(ENET_Type *base, uint32_t phyAddr, phy_loop_t mode, bool enable)
|
|
||||||
{
|
|
||||||
status_t result;
|
|
||||||
uint32_t data = 0;
|
|
||||||
|
|
||||||
/* Set the loop mode. */
|
|
||||||
if (enable)
|
|
||||||
{
|
|
||||||
if (mode == kPHY_LocalLoop)
|
|
||||||
{
|
|
||||||
/* First read the current status in control register. */
|
|
||||||
result = PHY_Read(base, phyAddr, PHY_BASICCONTROL_REG, &data);
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
return PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG, (data | PHY_BCTL_LOOP_MASK));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* First read the current status in control register. */
|
|
||||||
result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data);
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
return PHY_Write(base, phyAddr, PHY_CONTROL2_REG, (data | PHY_CTL2_REMOTELOOP_MASK));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Disable the loop mode. */
|
|
||||||
if (mode == kPHY_LocalLoop)
|
|
||||||
{
|
|
||||||
/* First read the current status in the basic control register. */
|
|
||||||
result = PHY_Read(base, phyAddr, PHY_BASICCONTROL_REG, &data);
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
return PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG, (data & ~PHY_BCTL_LOOP_MASK));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* First read the current status in control one register. */
|
|
||||||
result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data);
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
return PHY_Write(base, phyAddr, PHY_CONTROL2_REG, (data & ~PHY_CTL2_REMOTELOOP_MASK));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
status_t PHY_GetLinkStatus(ENET_Type *base, uint32_t phyAddr, bool *status)
|
|
||||||
{
|
|
||||||
assert(status);
|
|
||||||
|
|
||||||
status_t result = kStatus_Success;
|
|
||||||
uint32_t data;
|
|
||||||
|
|
||||||
/* Read the basic status register. */
|
|
||||||
result = PHY_Read(base, phyAddr, PHY_BASICSTATUS_REG, &data);
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
if (!(PHY_BSTATUS_LINKSTATUS_MASK & data))
|
|
||||||
{
|
|
||||||
/* link down. */
|
|
||||||
*status = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* link up. */
|
|
||||||
*status = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
status_t PHY_GetLinkSpeedDuplex(ENET_Type *base, uint32_t phyAddr, phy_speed_t *speed, phy_duplex_t *duplex)
|
|
||||||
{
|
|
||||||
assert(duplex);
|
|
||||||
|
|
||||||
status_t result = kStatus_Success;
|
|
||||||
uint32_t data, ctlReg;
|
|
||||||
|
|
||||||
/* Read the control two register. */
|
|
||||||
result = PHY_Read(base, phyAddr, PHY_CONTROL1_REG, &ctlReg);
|
|
||||||
if (result == kStatus_Success)
|
|
||||||
{
|
|
||||||
data = ctlReg & PHY_CTL1_SPEEDUPLX_MASK;
|
|
||||||
if ((PHY_CTL1_10FULLDUPLEX_MASK == data) || (PHY_CTL1_100FULLDUPLEX_MASK == data))
|
|
||||||
{
|
|
||||||
/* Full duplex. */
|
|
||||||
*duplex = kPHY_FullDuplex;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Half duplex. */
|
|
||||||
*duplex = kPHY_HalfDuplex;
|
|
||||||
}
|
|
||||||
|
|
||||||
data = ctlReg & PHY_CTL1_SPEEDUPLX_MASK;
|
|
||||||
if ((PHY_CTL1_100HALFDUPLEX_MASK == data) || (PHY_CTL1_100FULLDUPLEX_MASK == data))
|
|
||||||
{
|
|
||||||
/* 100M speed. */
|
|
||||||
*speed = kPHY_Speed100M;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{ /* 10M speed. */
|
|
||||||
*speed = kPHY_Speed10M;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
@@ -1,217 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
#ifndef _FSL_PHY_H_
|
|
||||||
#define _FSL_PHY_H_
|
|
||||||
|
|
||||||
#include "fsl_enet.h"
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @addtogroup phy_driver
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Definitions
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
/*! @brief PHY driver version */
|
|
||||||
#define FSL_PHY_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) /*!< Version 2.0.0. */
|
|
||||||
|
|
||||||
/*! @brief Defines the PHY registers. */
|
|
||||||
#define PHY_BASICCONTROL_REG 0x00U /*!< The PHY basic control register. */
|
|
||||||
#define PHY_BASICSTATUS_REG 0x01U /*!< The PHY basic status register. */
|
|
||||||
#define PHY_ID1_REG 0x02U /*!< The PHY ID one register. */
|
|
||||||
#define PHY_ID2_REG 0x03U /*!< The PHY ID two register. */
|
|
||||||
#define PHY_AUTONEG_ADVERTISE_REG 0x04U /*!< The PHY auto-negotiate advertise register. */
|
|
||||||
#define PHY_CONTROL1_REG 0x1EU /*!< The PHY control one register. */
|
|
||||||
#define PHY_CONTROL2_REG 0x1FU /*!< The PHY control two register. */
|
|
||||||
|
|
||||||
#define PHY_CONTROL_ID1 0x22U /*!< The PHY ID1*/
|
|
||||||
|
|
||||||
/*! @brief Defines the mask flag in basic control register. */
|
|
||||||
#define PHY_BCTL_DUPLEX_MASK 0x0100U /*!< The PHY duplex bit mask. */
|
|
||||||
#define PHY_BCTL_RESTART_AUTONEG_MASK 0x0200U /*!< The PHY restart auto negotiation mask. */
|
|
||||||
#define PHY_BCTL_AUTONEG_MASK 0x1000U /*!< The PHY auto negotiation bit mask. */
|
|
||||||
#define PHY_BCTL_SPEED_MASK 0x2000U /*!< The PHY speed bit mask. */
|
|
||||||
#define PHY_BCTL_LOOP_MASK 0x4000U /*!< The PHY loop bit mask. */
|
|
||||||
#define PHY_BCTL_RESET_MASK 0x8000U /*!< The PHY reset bit mask. */
|
|
||||||
|
|
||||||
/*!@brief Defines the mask flag of operation mode in control two register*/
|
|
||||||
#define PHY_CTL2_REMOTELOOP_MASK 0x0004U /*!< The PHY remote loopback mask. */
|
|
||||||
#define PHY_CTL1_10HALFDUPLEX_MASK 0x0001U /*!< The PHY 10M half duplex mask. */
|
|
||||||
#define PHY_CTL1_100HALFDUPLEX_MASK 0x0002U /*!< The PHY 100M half duplex mask. */
|
|
||||||
#define PHY_CTL1_10FULLDUPLEX_MASK 0x0005U /*!< The PHY 10M full duplex mask. */
|
|
||||||
#define PHY_CTL1_100FULLDUPLEX_MASK 0x0006U /*!< The PHY 100M full duplex mask. */
|
|
||||||
#define PHY_CTL1_SPEEDUPLX_MASK 0x0007U /*!< The PHY speed and duplex mask. */
|
|
||||||
|
|
||||||
/*! @brief Defines the mask flag in basic status register. */
|
|
||||||
#define PHY_BSTATUS_LINKSTATUS_MASK 0x0004U /*!< The PHY link status mask. */
|
|
||||||
#define PHY_BSTATUS_AUTONEGABLE_MASK 0x0008U /*!< The PHY auto-negotiation ability mask. */
|
|
||||||
#define PHY_BSTATUS_AUTONEGCOMP_MASK 0x0020U /*!< The PHY auto-negotiation complete mask. */
|
|
||||||
|
|
||||||
/*! @brief Defines the mask flag in PHY auto-negotiation advertise register. */
|
|
||||||
#define PHY_100BaseT4_ABILITY_MASK 0x200U /*!< The PHY have the T4 ability. */
|
|
||||||
#define PHY_100BASETX_FULLDUPLEX_MASK 0x100U /*!< The PHY has the 100M full duplex ability.*/
|
|
||||||
#define PHY_100BASETX_HALFDUPLEX_MASK 0x080U /*!< The PHY has the 100M full duplex ability.*/
|
|
||||||
#define PHY_10BASETX_FULLDUPLEX_MASK 0x040U /*!< The PHY has the 10M full duplex ability.*/
|
|
||||||
#define PHY_10BASETX_HALFDUPLEX_MASK 0x020U /*!< The PHY has the 10M full duplex ability.*/
|
|
||||||
|
|
||||||
/*! @brief Defines the PHY status. */
|
|
||||||
enum _phy_status
|
|
||||||
{
|
|
||||||
kStatus_PHY_SMIVisitTimeout = MAKE_STATUS(kStatusGroup_PHY, 1), /*!< ENET PHY SMI visit timeout. */
|
|
||||||
kStatus_PHY_AutoNegotiateFail = MAKE_STATUS(kStatusGroup_PHY, 2) /*!< ENET PHY AutoNegotiate Fail. */
|
|
||||||
};
|
|
||||||
|
|
||||||
/*! @brief Defines the PHY link speed. This is align with the speed for ENET MAC. */
|
|
||||||
typedef enum _phy_speed
|
|
||||||
{
|
|
||||||
kPHY_Speed10M = 0U, /*!< ENET PHY 10M speed. */
|
|
||||||
kPHY_Speed100M /*!< ENET PHY 100M speed. */
|
|
||||||
} phy_speed_t;
|
|
||||||
|
|
||||||
/*! @brief Defines the PHY link duplex. */
|
|
||||||
typedef enum _phy_duplex
|
|
||||||
{
|
|
||||||
kPHY_HalfDuplex = 0U, /*!< ENET PHY half duplex. */
|
|
||||||
kPHY_FullDuplex /*!< ENET PHY full duplex. */
|
|
||||||
} phy_duplex_t;
|
|
||||||
|
|
||||||
/*! @brief Defines the PHY loopback mode. */
|
|
||||||
typedef enum _phy_loop
|
|
||||||
{
|
|
||||||
kPHY_LocalLoop = 0U, /*!< ENET PHY local loopback. */
|
|
||||||
kPHY_RemoteLoop /*!< ENET PHY remote loopback. */
|
|
||||||
} phy_loop_t;
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* API
|
|
||||||
******************************************************************************/
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @name PHY Driver
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Initializes PHY.
|
|
||||||
*
|
|
||||||
* This function initialize the SMI interface and initialize PHY.
|
|
||||||
* The SMI is the MII management interface between PHY and MAC, which should be
|
|
||||||
* firstly initialized before any other operation for PHY.
|
|
||||||
*
|
|
||||||
* @param base ENET peripheral base address.
|
|
||||||
* @param phyAddr The PHY address.
|
|
||||||
* @param srcClock_Hz The module clock frequency - system clock for MII management interface - SMI.
|
|
||||||
* @retval kStatus_Success PHY initialize success
|
|
||||||
* @retval kStatus_PHY_SMIVisitTimeout PHY SMI visit time out
|
|
||||||
* @retval kStatus_PHY_AutoNegotiateFail PHY auto negotiate fail
|
|
||||||
*/
|
|
||||||
status_t PHY_Init(ENET_Type *base, uint32_t phyAddr, uint32_t srcClock_Hz);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief PHY Write function. This function write data over the SMI to
|
|
||||||
* the specified PHY register. This function is called by all PHY interfaces.
|
|
||||||
*
|
|
||||||
* @param base ENET peripheral base address.
|
|
||||||
* @param phyAddr The PHY address.
|
|
||||||
* @param phyReg The PHY register.
|
|
||||||
* @param data The data written to the PHY register.
|
|
||||||
* @retval kStatus_Success PHY write success
|
|
||||||
* @retval kStatus_PHY_SMIVisitTimeout PHY SMI visit time out
|
|
||||||
*/
|
|
||||||
status_t PHY_Write(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t data);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief PHY Read function. This interface read data over the SMI from the
|
|
||||||
* specified PHY register. This function is called by all PHY interfaces.
|
|
||||||
*
|
|
||||||
* @param base ENET peripheral base address.
|
|
||||||
* @param phyAddr The PHY address.
|
|
||||||
* @param phyReg The PHY register.
|
|
||||||
* @param dataPtr The address to store the data read from the PHY register.
|
|
||||||
* @retval kStatus_Success PHY read success
|
|
||||||
* @retval kStatus_PHY_SMIVisitTimeout PHY SMI visit time out
|
|
||||||
*/
|
|
||||||
status_t PHY_Read(ENET_Type *base, uint32_t phyAddr, uint32_t phyReg, uint32_t *dataPtr);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Enables/disables PHY loopback.
|
|
||||||
*
|
|
||||||
* @param base ENET peripheral base address.
|
|
||||||
* @param phyAddr The PHY address.
|
|
||||||
* @param mode The loopback mode to be enabled, please see "phy_loop_t".
|
|
||||||
* the two loopback mode should not be both set. when one loopback mode is set
|
|
||||||
* the other one should be disabled.
|
|
||||||
* @param enable True to enable, false to disable.
|
|
||||||
* @retval kStatus_Success PHY loopback success
|
|
||||||
* @retval kStatus_PHY_SMIVisitTimeout PHY SMI visit time out
|
|
||||||
*/
|
|
||||||
status_t PHY_EnableLoopback(ENET_Type *base, uint32_t phyAddr, phy_loop_t mode, bool enable);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Gets the PHY link status.
|
|
||||||
*
|
|
||||||
* @param base ENET peripheral base address.
|
|
||||||
* @param phyAddr The PHY address.
|
|
||||||
* @param status The link up or down status of the PHY.
|
|
||||||
* - true the link is up.
|
|
||||||
* - false the link is down.
|
|
||||||
* @retval kStatus_Success PHY get link status success
|
|
||||||
* @retval kStatus_PHY_SMIVisitTimeout PHY SMI visit time out
|
|
||||||
*/
|
|
||||||
status_t PHY_GetLinkStatus(ENET_Type *base, uint32_t phyAddr, bool *status);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief Gets the PHY link speed and duplex.
|
|
||||||
*
|
|
||||||
* @param base ENET peripheral base address.
|
|
||||||
* @param phyAddr The PHY address.
|
|
||||||
* @param speed The address of PHY link speed.
|
|
||||||
* @param duplex The link duplex of PHY.
|
|
||||||
* @retval kStatus_Success PHY get link speed and duplex success
|
|
||||||
* @retval kStatus_PHY_SMIVisitTimeout PHY SMI visit time out
|
|
||||||
*/
|
|
||||||
status_t PHY_GetLinkSpeedDuplex(ENET_Type *base, uint32_t phyAddr, phy_speed_t *speed, phy_duplex_t *duplex);
|
|
||||||
|
|
||||||
/* @} */
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*! @}*/
|
|
||||||
|
|
||||||
#endif /* _FSL_PHY_H_ */
|
|
||||||
@@ -1,317 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1792027861">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1792027861" moduleId="org.eclipse.cdt.core.settings" name="debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="${cross_rm} -rf" description="" id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1792027861" name="debug" parent="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug">
|
|
||||||
<folderInfo id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1792027861." name="/" resourcePath="">
|
|
||||||
<toolChain id="ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.debug.439601044" name="Cross ARM GCC" superClass="ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.debug">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level.780228407" name="Optimization Level" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level" value="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level.none" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.messagelength.1547417078" name="Message length (-fmessage-length=0)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.messagelength" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.signedchar.765602671" name="'char' is signed (-fsigned-char)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.signedchar" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.functionsections.910567930" name="Function sections (-ffunction-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.functionsections" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.datasections.243581182" name="Data sections (-fdata-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.datasections" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.allwarn.416266830" name="Enable all common warnings (-Wall)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.allwarn" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level.1613409592" name="Debug level" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level" value="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level.default" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format.556186202" name="Debug format" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format" value="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format.default" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.name.873832382" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.name" value="Custom" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.architecture.1923839154" name="Architecture" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.architecture" value="ilg.gnuarmeclipse.managedbuild.cross.option.architecture.arm" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.family.292907889" name="ARM family" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.family" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.mcpu.cortex-m4" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset.1510156849" name="Instruction set" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset.thumb" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.prefix.1110645397" name="Prefix" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.prefix" value="arm-none-eabi-" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.c.1996567256" name="C compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.c" value="gcc" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.cpp.2014665560" name="C++ compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.cpp" value="g++" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.objcopy.867581768" name="Hex/Bin converter" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.objcopy" value="objcopy" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.objdump.315789427" name="Listing generator" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.objdump" value="objdump" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.size.348642956" name="Size command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.size" value="size" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.make.670689833" name="Build command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.make" value="make" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.rm.654501139" name="Remove command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.rm" value="rm" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createflash.967248865" name="Create flash image" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createflash" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.printsize.1390211406" name="Print size" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.printsize" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.useglobalpath.228343129" name="Use global path" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.useglobalpath" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit.1173170148" name="FPU Type" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit.fpv4spd16" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi.1949324826" name="Float ABI" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi.hard" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.ar.1370140886" name="Archiver" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.ar" value="ar" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.nowarn.6567419856" name="Inhibit all warnings (-w)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.nowarn" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.extrawarn.3969248588" name="Enable extra warnings (-Wextra)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.extrawarn" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.conversion.4957269161" name="Warn on implicit conversions (-Wconversion)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.conversion" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.unitialized.4254045974" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.unitialized" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.floatequal.8315143005" name="Warn if floats are compared as equal (-Wfloat-equal)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.floatequal" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.shadow.9628505687" name="Warn if shadowed variable (-Wshadow)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.shadow" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.pointerarith.3110311092" name="Warn if pointer arithmetic (-Wpointer-arith)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.pointerarith" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.badfunctioncast.400008492" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.badfunctioncast" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.logicalop.3403474516" name="Warn if suspicious logical ops (-Wlogical-op)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.logicalop" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.agreggatereturn.8519421725" name="Warn if struct is returned (-Wagreggate-return)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.agreggatereturn" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.missingdeclaration.1088551177" name="Warn on undeclared global function (-Wmissing-declaration)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.missingdeclaration" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.toerrors.2131497280" name="Generate errors instead of warnings (-Werror)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.toerrors" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createlisting.7593408494" name="Create extended listing" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createlisting" value="false" valueType="boolean"/>
|
|
||||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="ilg.gnuarmeclipse.managedbuild.cross.targetPlatform.1777290613" isAbstract="false" osList="all" superClass="ilg.gnuarmeclipse.managedbuild.cross.targetPlatform"/>
|
|
||||||
<builder buildPath="${workspace_loc:/k64f}/debug" id="ilg.gnuarmeclipse.managedbuild.cross.builder.1406291427" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" stopOnErr="false" superClass="ilg.gnuarmeclipse.managedbuild.cross.builder"/>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.2007968129" name="Cross ARM GNU Assembler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.usepreprocessor.1246588554" name="Use preprocessor" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.usepreprocessor" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.include.paths.2122094274" name="Include paths (-I)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.include.paths" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value="../.."/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.defs.7681400262" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.defs" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="DEBUG"/>
|
|
||||||
<listOptionValue builtIn="false" value="__STARTUP_CLEAR_BSS"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.nostdinc.9824417859" name="Do not search system directories (-nostdinc)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.nostdinc" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.other.9404802095" name="Other assembler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.other" value=" -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs " valueType="string"/>
|
|
||||||
<inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.input.2014783385" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.1397207158" name="Cross ARM C Compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.paths.336878990" name="Include paths (-I)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.paths" useByScannerDiscovery="false" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""../../../../""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/drivers}/..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/drivers}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/utilities}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/lwip/port}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/lwip/src/include}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/lwip/src/include/ipv4}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/CMSIS_Include}""/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.933718024" name="Language standard" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.gnu99" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs.7076831363" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs" useByScannerDiscovery="false" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="DEBUG"/>
|
|
||||||
<listOptionValue builtIn="false" value="CPU_MK64FN1M0VMD12"/>
|
|
||||||
<listOptionValue builtIn="false" value="FRDM_K64F"/>
|
|
||||||
<listOptionValue builtIn="false" value="FREEDOM"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.nostdinc.5577125920" name="Do not search system directories (-nostdinc)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.nostdinc" useByScannerDiscovery="true" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.other.5582550651" name="Other compiler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.other" useByScannerDiscovery="true" value=" -fno-common -ffreestanding -fno-builtin -mapcs " valueType="string"/>
|
|
||||||
<inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input.1895544709" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler.435207489" name="Cross ARM C++ Compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler"/>
|
|
||||||
<tool commandLinePattern="${COMMAND} ${cross_toolchain_flags} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} -Xlinker --start-group ${INPUTS} -Xlinker --end-group" id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.1681324840" name="Cross ARM C Linker" outputPrefix="" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections.1850945755" name="Remove unused sections (-Xlinker --gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.scriptfile.1573832003" name="Script files (-T)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.scriptfile" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="../MK64FN1M0xxx12_flash.ld"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.libs.2061142742" name="Libraries (-l)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.libs" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value="m"/>
|
|
||||||
<listOptionValue builtIn="false" value="g"/>
|
|
||||||
<listOptionValue builtIn="false" value="gcc"/>
|
|
||||||
<listOptionValue builtIn="false" value="nosys"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs.5528601638" name="Other objects" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostart.7690269218" name="Do not use standard start files (-nostartfiles)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostart" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nodeflibs.4386474319" name="Do not use default libraries (-nodefaultlibs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nodeflibs" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.cref.4665561700" name="Cross reference (-Xlinker --cref)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.cref" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.printgcsections.7636536715" name="Print removed sections (-Xlinker --print-gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.printgcsections" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.strip.223955170" name="Omit all symbol information (-s)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.strip" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.other.1597332713" name="Other linker flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.other" value=" -Wall --specs=nano.specs -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__ram_vector_table__=1 " valueType="string"/>
|
|
||||||
<inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.input.1168552163" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.input">
|
|
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
|
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
|
||||||
</inputType>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker.1475612095" name="Cross ARM C++ Linker" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections.42905068" name="Remove unused sections (-Xlinker --gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections" value="true" valueType="boolean"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.archiver.717958418" name="Cross ARM GNU Archiver" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.archiver"/>
|
|
||||||
<tool command="${cross_prefix}${cross_objcopy}${cross_suffix}" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT}" id="ilg.gnuarmeclipse.managedbuild.cross.tool.createflash.1498748442" name="Cross ARM GNU Create Flash Image" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.createflash">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice.396105459" name="Output file format (-O)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice" value="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice.binary" valueType="enumerated"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.createlisting.1921141825" name="Cross ARM GNU Create Listing" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.createlisting">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.source.1147761851" name="Display source (--source|-S)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.source" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.allheaders.326654770" name="Display all headers (--all-headers|-x)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.allheaders" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.demangle.2012585764" name="Demangle names (--demangle|-C)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.demangle" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.linenumbers.1639985926" name="Display line numbers (--line-numbers|-l)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.linenumbers" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.wide.795915960" name="Wide lines (--wide|-w)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.wide" value="true" valueType="boolean"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.printsize.204256629" name="Cross ARM GNU Print Size" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.printsize">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.printsize.format.48990078" name="Size format" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.printsize.format"/>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="drivers/fsl_uart_freertos.c|drivers/fsl_i2c_freertos.c|drivers/fsl_dspi_freertos.c|lwip/src/netif/ppp|lwip/src/core/snmp|lwip/src/core/ipv6" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.release.1939339834">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.release.1939339834" moduleId="org.eclipse.cdt.core.settings" name="release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="${cross_rm} -rf" description="" id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.release.1939339834" name="release" parent="ilg.gnuarmeclipse.managedbuild.cross.config.elf.release">
|
|
||||||
<folderInfo id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.release.1939339834." name="/" resourcePath="">
|
|
||||||
<toolChain id="ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.release.338803166" name="Cross ARM GCC" superClass="ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.release">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level.1916499380" name="Optimization Level" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level" value="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level.size" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.messagelength.1460543599" name="Message length (-fmessage-length=0)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.messagelength" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.signedchar.177322323" name="'char' is signed (-fsigned-char)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.signedchar" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.functionsections.356292453" name="Function sections (-ffunction-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.functionsections" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.datasections.666658360" name="Data sections (-fdata-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.datasections" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.allwarn.1018775359" name="Enable all common warnings (-Wall)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.allwarn" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level.597989734" name="Debug level" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level" value="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level.none" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format.773110826" name="Debug format" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format" value="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format.default" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.name.28437861" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.name" value="Custom" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.architecture.1461080496" name="Architecture" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.architecture" value="ilg.gnuarmeclipse.managedbuild.cross.option.architecture.arm" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.family.1124565964" name="ARM family" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.family" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.mcpu.cortex-m4" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset.1600158089" name="Instruction set" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset.thumb" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.prefix.1115996221" name="Prefix" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.prefix" value="arm-none-eabi-" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.c.1677262447" name="C compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.c" value="gcc" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.cpp.1626484215" name="C++ compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.cpp" value="g++" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.objcopy.634682233" name="Hex/Bin converter" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.objcopy" value="objcopy" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.objdump.361919006" name="Listing generator" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.objdump" value="objdump" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.size.279076886" name="Size command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.size" value="size" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.make.1573227602" name="Build command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.make" value="make" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.rm.1269834234" name="Remove command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.rm" value="rm" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createflash.286942610" name="Create flash image" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createflash" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.printsize.992362786" name="Print size" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.printsize" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.useglobalpath.1682061124" name="Use global path" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.useglobalpath" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.ar.43762243" name="Archiver" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.ar" value="ar" valueType="string"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi.1631437179" name="Float ABI" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi.hard" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit.977377894" name="FPU Type" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit.fpv4spd16" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.nowarn.9812480522" name="Inhibit all warnings (-w)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.nowarn" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.extrawarn.6099870842" name="Enable extra warnings (-Wextra)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.extrawarn" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.conversion.9882524396" name="Warn on implicit conversions (-Wconversion)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.conversion" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.unitialized.2606229498" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.unitialized" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.floatequal.42789858" name="Warn if floats are compared as equal (-Wfloat-equal)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.floatequal" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.shadow.3530540211" name="Warn if shadowed variable (-Wshadow)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.shadow" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.pointerarith.9307654893" name="Warn if pointer arithmetic (-Wpointer-arith)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.pointerarith" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.badfunctioncast.6258034364" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.badfunctioncast" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.logicalop.3900312088" name="Warn if suspicious logical ops (-Wlogical-op)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.logicalop" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.agreggatereturn.8356362713" name="Warn if struct is returned (-Wagreggate-return)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.agreggatereturn" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.missingdeclaration.6547268175" name="Warn on undeclared global function (-Wmissing-declaration)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.missingdeclaration" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.toerrors.4066775435" name="Generate errors instead of warnings (-Werror)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.toerrors" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createlisting.4668208574" name="Create extended listing" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createlisting" value="false" valueType="boolean"/>
|
|
||||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="ilg.gnuarmeclipse.managedbuild.cross.targetPlatform.1508624923" isAbstract="false" osList="all" superClass="ilg.gnuarmeclipse.managedbuild.cross.targetPlatform"/>
|
|
||||||
<builder buildPath="${workspace_loc:/k64f}/release" id="ilg.gnuarmeclipse.managedbuild.cross.builder.506636371" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" stopOnErr="false" superClass="ilg.gnuarmeclipse.managedbuild.cross.builder"/>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.142183468" name="Cross ARM GNU Assembler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.usepreprocessor.260968363" name="Use preprocessor" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.usepreprocessor" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.include.paths.2659987684" name="Include paths (-I)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.include.paths" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value="../.."/>
|
|
||||||
<listOptionValue builtIn="false" value="../../../../../../../../devices/MK64F12/drivers"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.defs.9065992226" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.defs" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="__STARTUP_CLEAR_BSS"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.nostdinc.7407691783" name="Do not search system directories (-nostdinc)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.nostdinc" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.other.4185642263" name="Other assembler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.other" value=" -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs " valueType="string"/>
|
|
||||||
<inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.input.871599837" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.955273220" name="Cross ARM C Compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.paths.767758500" name="Include paths (-I)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.paths" useByScannerDiscovery="false" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""../..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""../../../../""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/drivers}/..""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/drivers}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/utilities}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/lwip/port}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/lwip/src/include}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/lwip/src/include/ipv4}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/Mongoose_FRDMK64F_BM/CMSIS_Include}""/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.997197032" name="Language standard" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.gnu99" valueType="enumerated"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs.6830536915" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs" useByScannerDiscovery="false" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="NDEBUG"/>
|
|
||||||
<listOptionValue builtIn="false" value="CPU_MK64FN1M0VMD12"/>
|
|
||||||
<listOptionValue builtIn="false" value="FRDM_K64F"/>
|
|
||||||
<listOptionValue builtIn="false" value="FREEDOM"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.nostdinc.9102863623" name="Do not search system directories (-nostdinc)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.nostdinc" useByScannerDiscovery="true" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.other.9524876677" name="Other compiler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.other" useByScannerDiscovery="true" value=" -fno-common -ffreestanding -fno-builtin -mapcs " valueType="string"/>
|
|
||||||
<inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input.1711058916" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler.270191615" name="Cross ARM C++ Compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler"/>
|
|
||||||
<tool commandLinePattern="${COMMAND} ${cross_toolchain_flags} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} -Xlinker --start-group ${INPUTS} -Xlinker --end-group" id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.1286541465" name="Cross ARM C Linker" outputPrefix="" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections.1012325190" name="Remove unused sections (-Xlinker --gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs.3003655888" name="Other objects" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.otherobjs"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.scriptfile.1938135444" name="Script files (-T)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.scriptfile" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="../MK64FN1M0xxx12_flash.ld"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostart.7190303728" name="Do not use standard start files (-nostartfiles)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostart" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nodeflibs.2673291920" name="Do not use default libraries (-nodefaultlibs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nodeflibs" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.libs.7037434604" name="Libraries (-l)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.libs" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value="m"/>
|
|
||||||
<listOptionValue builtIn="false" value="g"/>
|
|
||||||
<listOptionValue builtIn="false" value="gcc"/>
|
|
||||||
<listOptionValue builtIn="false" value="nosys"/>
|
|
||||||
</option>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.cref.6043148641" name="Cross reference (-Xlinker --cref)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.cref" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.printgcsections.4277279969" name="Print removed sections (-Xlinker --print-gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.printgcsections" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.strip.2164842634" name="Omit all symbol information (-s)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.strip" value="false" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.other.4493069774" name="Other linker flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.other" value=" -Wall --specs=nano.specs -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__ram_vector_table__=1 " valueType="string"/>
|
|
||||||
<inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.input.1297163151" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.input">
|
|
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
|
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
|
||||||
</inputType>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker.1288631479" name="Cross ARM C++ Linker" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections.1722094624" name="Remove unused sections (-Xlinker --gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections" value="true" valueType="boolean"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.archiver.571275503" name="Cross ARM GNU Archiver" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.archiver"/>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.createflash.815118717" name="Cross ARM GNU Create Flash Image" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.createflash">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice.338690695" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice" value="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice.binary" valueType="enumerated"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.createlisting.254728314" name="Cross ARM GNU Create Listing" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.createlisting">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.source.1925404631" name="Display source (--source|-S)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.source" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.allheaders.167640084" name="Display all headers (--all-headers|-x)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.allheaders" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.demangle.1474313123" name="Demangle names (--demangle|-C)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.demangle" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.linenumbers.1969680589" name="Display line numbers (--line-numbers|-l)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.linenumbers" value="true" valueType="boolean"/>
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.wide.240541858" name="Wide lines (--wide|-w)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.wide" value="true" valueType="boolean"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.printsize.572718337" name="Cross ARM GNU Print Size" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.printsize">
|
|
||||||
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.printsize.format.1162591107" name="Size format" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.printsize.format"/>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry excluding="drivers/fsl_uart_freertos.c|drivers/fsl_i2c_freertos.c|drivers/fsl_dspi_freertos.c|lwip/src/core/snmp|lwip/src/core/ipv6" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="k64f.ilg.gnuarmeclipse.managedbuild.cross.target.elf.1537007018" name="Executable" projectType="ilg.gnuarmeclipse.managedbuild.cross.target.elf"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
|
||||||
<configuration configurationName="Multiple configurations">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/FRDM-K64F_Demo"/>
|
|
||||||
</configuration>
|
|
||||||
<configuration configurationName="debug">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/Mongoose_FRDMK64F_BM"/>
|
|
||||||
</configuration>
|
|
||||||
<configuration configurationName="release">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/Mongoose_FRDMK64F_BM"/>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
|
|
||||||
<storageModule moduleId="scannerConfiguration">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
<scannerConfigBuildInfo instanceId="ilg.gnuarmeclipse.managedbuild.cross.config.elf.release.1939339834;ilg.gnuarmeclipse.managedbuild.cross.config.elf.release.1939339834.;ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.955273220;ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input.1711058916">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
<scannerConfigBuildInfo instanceId="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1792027861;ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1792027861.;ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.1397207158;ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input.1895544709">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</scannerConfigBuildInfo>
|
|
||||||
</storageModule>
|
|
||||||
</cproject>
|
|
||||||
@@ -1,144 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>Mongoose_FRDMK64F_BM</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>com.freescale.processorexpert.core.expertprojectbuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<triggers>clean,full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>com.freescale.processorexpert.core.expertprojectnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
<linkedResources>
|
|
||||||
<link>
|
|
||||||
<name>CMSIS_Include</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>$%7BSDK_PATH%7D/CMSIS/Include</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>drivers</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>SDK_PATH/devices/MK64F12/drivers</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>lwip</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>LWIP_PATH</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>virtual:/virtual</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>startup</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>virtual:/virtual</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>utilities</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>SDK_PATH/devices/MK64F12/utilities</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/board.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/board.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/board.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/board.h</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/clock_config.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/clock_config.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/clock_config.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/clock_config.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/fsl_phy.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/fsl_phy.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/fsl_phy.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/fsl_phy.h</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/main.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/main.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/mongoose.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-3-PROJECT_LOC/mongoose.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/mongoose.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-3-PROJECT_LOC/mongoose.h</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/pin_mux.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/pin_mux.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>source/pin_mux.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>PARENT-1-PROJECT_LOC/pin_mux.h</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>startup/startup_MK64F12.S</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>SDK_PATH/devices/MK64F12/gcc/startup_MK64F12.S</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>startup/system_MK64F12.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>SDK_PATH/devices/MK64F12/system_MK64F12.c</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>startup/system_MK64F12.h</name>
|
|
||||||
<type>1</type>
|
|
||||||
<locationURI>SDK_PATH/devices/MK64F12/system_MK64F12.h</locationURI>
|
|
||||||
</link>
|
|
||||||
</linkedResources>
|
|
||||||
<variableList>
|
|
||||||
<variable>
|
|
||||||
<name>LWIP_PATH</name>
|
|
||||||
<value>$%7BSDK_PATH%7D/middleware/lwip_1.4.1</value>
|
|
||||||
</variable>
|
|
||||||
<variable>
|
|
||||||
<name>SDK_PATH</name>
|
|
||||||
<value>$%7BPARENT-1-PROJECT_LOC%7D/SDK_2.0_FRDM-K64F</value>
|
|
||||||
</variable>
|
|
||||||
</variableList>
|
|
||||||
</projectDescription>
|
|
||||||
@@ -1,261 +0,0 @@
|
|||||||
/*
|
|
||||||
** ###################################################################
|
|
||||||
** Processors: MK64FN1M0VDC12
|
|
||||||
** MK64FN1M0VLL12
|
|
||||||
** MK64FN1M0VLQ12
|
|
||||||
** MK64FN1M0VMD12
|
|
||||||
**
|
|
||||||
** Compiler: GNU C Compiler
|
|
||||||
** Reference manual: K64P144M120SF5RM, Rev.2, January 2014
|
|
||||||
** Version: rev. 2.8, 2015-02-19
|
|
||||||
** Build: b151217
|
|
||||||
**
|
|
||||||
** Abstract:
|
|
||||||
** Linker file for the GNU C Compiler
|
|
||||||
**
|
|
||||||
** Copyright (c) 2015 Freescale Semiconductor, Inc.
|
|
||||||
** All rights reserved.
|
|
||||||
**
|
|
||||||
** Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
** are permitted provided that the following conditions are met:
|
|
||||||
**
|
|
||||||
** o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
** of conditions and the following disclaimer.
|
|
||||||
**
|
|
||||||
** o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
** list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
** other materials provided with the distribution.
|
|
||||||
**
|
|
||||||
** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
** contributors may be used to endorse or promote products derived from this
|
|
||||||
** software without specific prior written permission.
|
|
||||||
**
|
|
||||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
**
|
|
||||||
** http: www.freescale.com
|
|
||||||
** mail: support@freescale.com
|
|
||||||
**
|
|
||||||
** ###################################################################
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Entry Point */
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x1000;
|
|
||||||
STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0400;
|
|
||||||
M_VECTOR_RAM_SIZE = DEFINED(__ram_vector_table__) ? 0x0400 : 0x0;
|
|
||||||
|
|
||||||
/* Specify the memory areas */
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400
|
|
||||||
m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
|
|
||||||
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x000FFBF0
|
|
||||||
m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
|
|
||||||
m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00030000
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into internal flash */
|
|
||||||
.interrupts :
|
|
||||||
{
|
|
||||||
__VECTOR_TABLE = .;
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > m_interrupts
|
|
||||||
|
|
||||||
.flash_config :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.FlashConfig)) /* Flash Configuration Field (FCF) */
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > m_flash_config
|
|
||||||
|
|
||||||
/* The program code and other data goes into internal flash */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text) /* .text sections (code) */
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata) /* .rodata sections (constants, strings, etc.) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
*(.glue_7) /* glue arm to thumb code */
|
|
||||||
*(.glue_7t) /* glue thumb to arm code */
|
|
||||||
*(.eh_frame)
|
|
||||||
KEEP (*(.init))
|
|
||||||
KEEP (*(.fini))
|
|
||||||
. = ALIGN(4);
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
.ARM.extab :
|
|
||||||
{
|
|
||||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
.ARM :
|
|
||||||
{
|
|
||||||
__exidx_start = .;
|
|
||||||
*(.ARM.exidx*)
|
|
||||||
__exidx_end = .;
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
.ctors :
|
|
||||||
{
|
|
||||||
__CTOR_LIST__ = .;
|
|
||||||
/* gcc uses crtbegin.o to find the start of
|
|
||||||
the constructors, so we make sure it is
|
|
||||||
first. Because this is a wildcard, it
|
|
||||||
doesn't matter if the user does not
|
|
||||||
actually link against crtbegin.o; the
|
|
||||||
linker won't look for a file to match a
|
|
||||||
wildcard. The wildcard also means that it
|
|
||||||
doesn't matter which directory crtbegin.o
|
|
||||||
is in. */
|
|
||||||
KEEP (*crtbegin.o(.ctors))
|
|
||||||
KEEP (*crtbegin?.o(.ctors))
|
|
||||||
/* We don't want to include the .ctor section from
|
|
||||||
from the crtend.o file until after the sorted ctors.
|
|
||||||
The .ctor section from the crtend file contains the
|
|
||||||
end of ctors marker and it must be last */
|
|
||||||
KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors))
|
|
||||||
KEEP (*(SORT(.ctors.*)))
|
|
||||||
KEEP (*(.ctors))
|
|
||||||
__CTOR_END__ = .;
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
.dtors :
|
|
||||||
{
|
|
||||||
__DTOR_LIST__ = .;
|
|
||||||
KEEP (*crtbegin.o(.dtors))
|
|
||||||
KEEP (*crtbegin?.o(.dtors))
|
|
||||||
KEEP (*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors))
|
|
||||||
KEEP (*(SORT(.dtors.*)))
|
|
||||||
KEEP (*(.dtors))
|
|
||||||
__DTOR_END__ = .;
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
.preinit_array :
|
|
||||||
{
|
|
||||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
|
||||||
KEEP (*(.preinit_array*))
|
|
||||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
.init_array :
|
|
||||||
{
|
|
||||||
PROVIDE_HIDDEN (__init_array_start = .);
|
|
||||||
KEEP (*(SORT(.init_array.*)))
|
|
||||||
KEEP (*(.init_array*))
|
|
||||||
PROVIDE_HIDDEN (__init_array_end = .);
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
.fini_array :
|
|
||||||
{
|
|
||||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
|
||||||
KEEP (*(SORT(.fini_array.*)))
|
|
||||||
KEEP (*(.fini_array*))
|
|
||||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
|
||||||
} > m_text
|
|
||||||
|
|
||||||
__etext = .; /* define a global symbol at end of code */
|
|
||||||
__DATA_ROM = .; /* Symbol is used by startup for data initialization */
|
|
||||||
|
|
||||||
.interrupts_ram :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
__VECTOR_RAM__ = .;
|
|
||||||
__interrupts_ram_start__ = .; /* Create a global symbol at data start */
|
|
||||||
*(.m_interrupts_ram) /* This is a user defined section */
|
|
||||||
. += M_VECTOR_RAM_SIZE;
|
|
||||||
. = ALIGN(4);
|
|
||||||
__interrupts_ram_end__ = .; /* Define a global symbol at data end */
|
|
||||||
} > m_data
|
|
||||||
|
|
||||||
__VECTOR_RAM = DEFINED(__ram_vector_table__) ? __VECTOR_RAM__ : ORIGIN(m_interrupts);
|
|
||||||
__RAM_VECTOR_TABLE_SIZE_BYTES = DEFINED(__ram_vector_table__) ? (__interrupts_ram_end__ - __interrupts_ram_start__) : 0x0;
|
|
||||||
|
|
||||||
.data : AT(__DATA_ROM)
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
__DATA_RAM = .;
|
|
||||||
__data_start__ = .; /* create a global symbol at data start */
|
|
||||||
*(.data) /* .data sections */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
KEEP(*(.jcr*))
|
|
||||||
. = ALIGN(4);
|
|
||||||
__data_end__ = .; /* define a global symbol at data end */
|
|
||||||
} > m_data
|
|
||||||
|
|
||||||
__DATA_END = __DATA_ROM + (__data_end__ - __data_start__);
|
|
||||||
text_end = ORIGIN(m_text) + LENGTH(m_text);
|
|
||||||
ASSERT(__DATA_END <= text_end, "region m_text overflowed with text and data")
|
|
||||||
|
|
||||||
USB_RAM_GAP = DEFINED(__usb_ram_size__) ? __usb_ram_size__ : 0x800;
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
/* This is used by the startup in order to initialize the .bss section */
|
|
||||||
. = ALIGN(4);
|
|
||||||
__START_BSS = .;
|
|
||||||
__bss_start__ = .;
|
|
||||||
*(.bss)
|
|
||||||
*(.bss*)
|
|
||||||
. = ALIGN(512);
|
|
||||||
USB_RAM_START = .;
|
|
||||||
. += USB_RAM_GAP;
|
|
||||||
*(COMMON)
|
|
||||||
. = ALIGN(4);
|
|
||||||
__bss_end__ = .;
|
|
||||||
__END_BSS = .;
|
|
||||||
} > m_data
|
|
||||||
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
__end__ = .;
|
|
||||||
PROVIDE(end = .);
|
|
||||||
__HeapBase = .;
|
|
||||||
. += HEAP_SIZE;
|
|
||||||
__HeapLimit = .;
|
|
||||||
__heap_limit = .; /* Add for _sbrk */
|
|
||||||
} > m_data_2
|
|
||||||
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
. += STACK_SIZE;
|
|
||||||
} > m_data_2
|
|
||||||
|
|
||||||
m_usb_bdt USB_RAM_START (NOLOAD) :
|
|
||||||
{
|
|
||||||
*(m_usb_bdt)
|
|
||||||
USB_RAM_BDT_END = .;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_usb_global USB_RAM_BDT_END (NOLOAD) :
|
|
||||||
{
|
|
||||||
*(m_usb_global)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Initializes stack on the end of block */
|
|
||||||
__StackTop = ORIGIN(m_data_2) + LENGTH(m_data_2);
|
|
||||||
__StackLimit = __StackTop - STACK_SIZE;
|
|
||||||
PROVIDE(__stack = __StackTop);
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
|
|
||||||
ASSERT(__StackLimit >= __HeapLimit, "region m_data_2 overflowed with stack and heap")
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<launchConfiguration type="ilg.gnuarmeclipse.debug.gdbjtag.openocd.launchConfigurationType">
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doConnectToRunning" value="false"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doContinue" value="true"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doDebugInRam" value="false"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doFirstReset" value="true"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doGdbServerAllocateConsole" value="true"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doGdbServerAllocateTelnetConsole" value="false"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doSecondReset" value="true"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.doStartGdbServer" value="true"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.enableSemihosting" value="true"/>
|
|
||||||
<booleanAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.enableSemihostingIoclientTelnet" value="false"/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.firstResetType" value="init"/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbClientOtherCommands" value="set mem inaccessible-by-default off"/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbClientOtherOptions" value=""/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbServerConnectionAddress" value=""/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbServerExecutable" value="/opt/Freescale/KDS_v3/openocd/bin/openocd"/>
|
|
||||||
<intAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbServerGdbPortNumber" value="3333"/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbServerLog" value=""/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbServerOther" value="-f kinetis.cfg"/>
|
|
||||||
<intAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.gdbServerTelnetPortNumber" value="4444"/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.otherInitCommands" value=""/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.otherRunCommands" value=""/>
|
|
||||||
<stringAttribute key="ilg.gnuarmeclipse.debug.gdbjtag.openocd.secondResetType" value="halt"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU ARM OpenOCD"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
|
|
||||||
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="3333"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useRemoteTarget" value="true"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.mi.core.commandFactory" value="Standard (Windows)"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.mi.core.protocol" value="mi"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.debug.mi.core.verboseMode" value="false"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${cross_prefix}gdb${cross_suffix}"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
|
|
||||||
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="debug/Mongoose_FRDMK64F_BM.elf"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="Mongoose_FRDMK64F_BM"/>
|
|
||||||
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
|
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.1792027861"/>
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
|
||||||
<listEntry value="/Mongoose_FRDMK64F_BM"/>
|
|
||||||
</listAttribute>
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
|
||||||
<listEntry value="4"/>
|
|
||||||
</listAttribute>
|
|
||||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="Context string"/> "/>
|
|
||||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
|
||||||
</launchConfiguration>
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<workspace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="workingsets.xsd">
|
|
||||||
<projects>
|
|
||||||
<project><name>Mongoose_FRDMK64F_BM</name><path>.</path><open>true</open><activeconfig>debug</activeconfig><buildreferences config="debug">false</buildreferences><activeconfig>release</activeconfig><buildreferences config="release">false</buildreferences></project></projects>
|
|
||||||
<workingsets>
|
|
||||||
<workingSet editPageId="org.eclipse.cdt.ui.CElementWorkingSetPage" id="1323268527287_1" label="Mongoose_FRDMK64F_BM" name="Mongoose_FRDMK64F_BM"><item factoryID="org.eclipse.cdt.ui.PersistableCElementFactory" path="/Mongoose_FRDMK64F_BM" type="4"/></workingSet></workingsets>
|
|
||||||
<cdtconfigurations>
|
|
||||||
<workingSet name="Mongoose_FRDMK64F_BM"><config name="debug"><project config="com.freescale.arm.cdt.toolchain.config.arm.release.695495605" name="Mongoose_FRDMK64F_BM" configName="debug"/></config><config name="release"><project config="com.freescale.arm.cdt.toolchain.config.arm.release.695495605" name="Mongoose_FRDMK64F_BM" configName="release"/></config></workingSet></cdtconfigurations>
|
|
||||||
</workspace>
|
|
||||||
@@ -1,157 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#include "lwip/dhcp.h"
|
|
||||||
#include "lwip/init.h"
|
|
||||||
#include "lwip/netif.h"
|
|
||||||
#include "lwip/timers.h"
|
|
||||||
#include "netif/etharp.h"
|
|
||||||
|
|
||||||
#include "ethernetif.h"
|
|
||||||
#include "board.h"
|
|
||||||
#include "fsl_gpio.h"
|
|
||||||
#include "fsl_port.h"
|
|
||||||
|
|
||||||
#include "pin_mux.h"
|
|
||||||
|
|
||||||
/* IP address configuration. */
|
|
||||||
#define USE_DHCP 1 /* For static IP, set to 0 and configure options below */
|
|
||||||
#if !USE_DHCP
|
|
||||||
#define STATIC_IP "192.168.0.111"
|
|
||||||
#define STATIC_NM "255.255.255.0"
|
|
||||||
#define STATIC_GW "192.168.0.1"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void gpio_init() {
|
|
||||||
CLOCK_EnableClock(kCLOCK_PortA);
|
|
||||||
CLOCK_EnableClock(kCLOCK_PortB);
|
|
||||||
CLOCK_EnableClock(kCLOCK_PortE);
|
|
||||||
PORT_SetPinMux(BOARD_LED_RED_GPIO_PORT, BOARD_LED_RED_GPIO_PIN,
|
|
||||||
kPORT_MuxAsGpio);
|
|
||||||
LED_RED_INIT(0);
|
|
||||||
PORT_SetPinMux(BOARD_LED_GREEN_GPIO_PORT, BOARD_LED_GREEN_GPIO_PIN,
|
|
||||||
kPORT_MuxAsGpio);
|
|
||||||
LED_GREEN_INIT(0);
|
|
||||||
PORT_SetPinMux(BOARD_LED_BLUE_GPIO_PORT, BOARD_LED_BLUE_GPIO_PIN,
|
|
||||||
kPORT_MuxAsGpio);
|
|
||||||
LED_BLUE_INIT(0);
|
|
||||||
LED_BLUE_OFF();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|
||||||
if (ev == MG_EV_POLL) return;
|
|
||||||
/* printf("ev %d\r\n", ev); */
|
|
||||||
switch (ev) {
|
|
||||||
case MG_EV_ACCEPT: {
|
|
||||||
char addr[32];
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
printf("%p: Connection from %s\r\n", nc, addr);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_REQUEST: {
|
|
||||||
struct http_message *hm = (struct http_message *) ev_data;
|
|
||||||
char addr[32];
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
printf("%p: %.*s %.*s\r\n", nc, (int) hm->method.len, hm->method.p,
|
|
||||||
(int) hm->uri.len, hm->uri.p);
|
|
||||||
mg_send_response_line(nc, 200,
|
|
||||||
"Content-Type: text/html\r\n"
|
|
||||||
"Connection: close");
|
|
||||||
mg_printf(nc,
|
|
||||||
"\r\n<h1>Hello, %s!</h1>\r\n"
|
|
||||||
"You asked for %.*s\r\n",
|
|
||||||
addr, (int) hm->uri.len, hm->uri.p);
|
|
||||||
nc->flags |= MG_F_SEND_AND_CLOSE;
|
|
||||||
LED_BLUE_TOGGLE();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_CLOSE: {
|
|
||||||
printf("%p: Connection closed\r\n", nc);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This is a callback invoked by Mongoose to signal that a poll is needed soon.
|
|
||||||
* Since we're in a tight polling loop anyway (see below), we don't need to do
|
|
||||||
* anything.
|
|
||||||
*/
|
|
||||||
void mg_lwip_mgr_schedule_poll(struct mg_mgr *mgr) {
|
|
||||||
}
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
struct netif eth0;
|
|
||||||
MPU_Type *base = MPU;
|
|
||||||
BOARD_InitPins();
|
|
||||||
BOARD_BootClockRUN();
|
|
||||||
BOARD_InitDebugConsole();
|
|
||||||
/* Disable MPU. */
|
|
||||||
base->CESR &= ~MPU_CESR_VLD_MASK;
|
|
||||||
lwip_init();
|
|
||||||
gpio_init();
|
|
||||||
LED_RED_ON();
|
|
||||||
printf("Waiting for link...\r\n");
|
|
||||||
#if USE_DHCP
|
|
||||||
netif_add(ð0, NULL, NULL, NULL, NULL, ethernetif_init, ethernet_input);
|
|
||||||
printf("Waiting for DHCP...\r\n");
|
|
||||||
LED_GREEN_ON();
|
|
||||||
dhcp_start(ð0);
|
|
||||||
u8_t os = 0xff, ds;
|
|
||||||
do {
|
|
||||||
ds = eth0.dhcp->state;
|
|
||||||
if (ds != os) {
|
|
||||||
printf(" DHCP state: %d\r\n", ds);
|
|
||||||
os = ds;
|
|
||||||
}
|
|
||||||
sys_check_timeouts();
|
|
||||||
} while (ds != DHCP_BOUND);
|
|
||||||
printf("DHCP bound.\r\n");
|
|
||||||
#else
|
|
||||||
ip_addr_t ip, nm, gw;
|
|
||||||
if (!ipaddr_aton(STATIC_IP, &ip) || !ipaddr_aton(STATIC_NM, &nm) ||
|
|
||||||
!ipaddr_aton(STATIC_GW, &gw)) {
|
|
||||||
printf("Invalid static IP configuration.\r\n");
|
|
||||||
return 1;
|
|
||||||
} else {
|
|
||||||
netif_add(ð0, &ip, &nm, &gw, NULL, ethernetif_init, ethernet_input);
|
|
||||||
netif_set_up(ð0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
netif_set_default(ð0);
|
|
||||||
printf("Setting up HTTP server...\r\n");
|
|
||||||
|
|
||||||
struct mg_mgr mgr;
|
|
||||||
mg_mgr_init(&mgr, NULL);
|
|
||||||
|
|
||||||
const char *err;
|
|
||||||
struct mg_bind_opts opts = {};
|
|
||||||
opts.error_string = &err;
|
|
||||||
struct mg_connection *nc = mg_bind_opt(&mgr, "80", ev_handler, opts);
|
|
||||||
if (nc == NULL) {
|
|
||||||
printf("Failed to create listener: %s\r\n", err);
|
|
||||||
LED_RED_ON();
|
|
||||||
LED_GREEN_OFF();
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
mg_set_protocol_http_websocket(nc);
|
|
||||||
printf("Server address: http://%s/\r\n", ipaddr_ntoa(ð0.ip_addr));
|
|
||||||
LED_RED_OFF();
|
|
||||||
LED_GREEN_ON();
|
|
||||||
|
|
||||||
while (1) {
|
|
||||||
sys_check_timeouts();
|
|
||||||
mg_mgr_poll(&mgr, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "fsl_device_registers.h"
|
|
||||||
#include "fsl_common.h"
|
|
||||||
#include "fsl_port.h"
|
|
||||||
#include "pin_mux.h"
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
* Code
|
|
||||||
******************************************************************************/
|
|
||||||
void BOARD_InitPins(void)
|
|
||||||
{
|
|
||||||
port_pin_config_t configENET = {0};
|
|
||||||
|
|
||||||
/* Initialize UART0 pins below */
|
|
||||||
/* Ungate the port clock */
|
|
||||||
/* Ungate the port clock */
|
|
||||||
CLOCK_EnableClock(kCLOCK_PortB);
|
|
||||||
/* Affects PORTB_PCR16 register */
|
|
||||||
PORT_SetPinMux(PORTB, 16u, kPORT_MuxAlt3);
|
|
||||||
/* Affects PORTB_PCR17 register */
|
|
||||||
PORT_SetPinMux(PORTB, 17u, kPORT_MuxAlt3);
|
|
||||||
|
|
||||||
CLOCK_EnableClock(kCLOCK_PortC);
|
|
||||||
/* Affects PORTC_PCR16 register */
|
|
||||||
PORT_SetPinMux(PORTC, 16u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTC_PCR17 register */
|
|
||||||
PORT_SetPinMux(PORTC, 17u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTC_PCR18 register */
|
|
||||||
PORT_SetPinMux(PORTC, 18u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTC_PCR19 register */
|
|
||||||
PORT_SetPinMux(PORTC, 19u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTB_PCR1 register */
|
|
||||||
PORT_SetPinMux(PORTB, 1u, kPORT_MuxAlt4);
|
|
||||||
|
|
||||||
configENET.openDrainEnable = kPORT_OpenDrainEnable;
|
|
||||||
configENET.mux = kPORT_MuxAlt4;
|
|
||||||
configENET.pullSelect = kPORT_PullUp;
|
|
||||||
/* Ungate the port clock */
|
|
||||||
CLOCK_EnableClock(kCLOCK_PortA);
|
|
||||||
/* Affects PORTB_PCR0 register */
|
|
||||||
PORT_SetPinConfig(PORTB, 0u, &configENET);
|
|
||||||
|
|
||||||
/* Affects PORTA_PCR13 register */
|
|
||||||
PORT_SetPinMux(PORTA, 13u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTA_PCR12 register */
|
|
||||||
PORT_SetPinMux(PORTA, 12u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTA_PCR14 register */
|
|
||||||
PORT_SetPinMux(PORTA, 14u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTA_PCR5 register */
|
|
||||||
PORT_SetPinMux(PORTA, 5u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTA_PCR16 register */
|
|
||||||
PORT_SetPinMux(PORTA, 16u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTA_PCR17 register */
|
|
||||||
PORT_SetPinMux(PORTA, 17u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTA_PCR15 register */
|
|
||||||
PORT_SetPinMux(PORTA, 15u, kPORT_MuxAlt4);
|
|
||||||
/* Affects PORTA_PCR28 register */
|
|
||||||
PORT_SetPinMux(PORTA, 28u, kPORT_MuxAlt4);
|
|
||||||
|
|
||||||
/* Enable SW port clock */
|
|
||||||
CLOCK_EnableClock(kCLOCK_PortA);
|
|
||||||
/* Affects PORTA_PCR4 register */
|
|
||||||
port_pin_config_t config = {0};
|
|
||||||
config.pullSelect = kPORT_PullUp;
|
|
||||||
config.mux = kPORT_MuxAsGpio;
|
|
||||||
PORT_SetPinConfig(PORTA, 4U, &config);
|
|
||||||
}
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2015, Freescale Semiconductor, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* o Redistributions of source code must retain the above copyright notice, this list
|
|
||||||
* of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* o Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
* other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its
|
|
||||||
* contributors may be used to endorse or promote products derived from this
|
|
||||||
* software without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _PIN_MUX_H_
|
|
||||||
#define _PIN_MUX_H_
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* @brief configure all pins for this demo/example
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void BOARD_InitPins(void);
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#endif /* _PIN_MUX_H_ */
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
Please download the [LPCOpen QSB SDK](https://www.embeddedartists.com/sites/default/files/support/qsb/lpc4088/lpcopen_2_10_lpcxpresso_arm_university_4088qsb.zip) and unpack it into this directory.
|
|
||||||
@@ -1,275 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
|
||||||
<cconfiguration id="com.crt.advproject.config.exe.debug.1882216153">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.crt.advproject.config.exe.debug.1882216153" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="axf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="Debug build" errorParsers="org.eclipse.cdt.core.CWDLocator;org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="com.crt.advproject.config.exe.debug.1882216153" name="Debug" parent="com.crt.advproject.config.exe.debug" postannouncebuildStep="Performing post-build steps" postbuildStep="arm-none-eabi-size "${BuildArtifactFileName}"; # arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" ; # checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"; ">
|
|
||||||
<folderInfo id="com.crt.advproject.config.exe.debug.1882216153." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.crt.advproject.toolchain.exe.debug.2128201970" name="Code Red MCU Tools" superClass="com.crt.advproject.toolchain.exe.debug">
|
|
||||||
<targetPlatform binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.GNU_ELF" id="com.crt.advproject.platform.exe.debug.912746979" name="ARM-based MCU (Debug)" superClass="com.crt.advproject.platform.exe.debug"/>
|
|
||||||
<builder buildPath="${workspace_loc:/Mongoose_LPC4088_QSB_BM}/Debug" id="com.crt.advproject.builder.exe.debug.1371321473" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="com.crt.advproject.builder.exe.debug"/>
|
|
||||||
<tool id="com.crt.advproject.cpp.exe.debug.1514969325" name="MCU C++ Compiler" superClass="com.crt.advproject.cpp.exe.debug"/>
|
|
||||||
<tool id="com.crt.advproject.gcc.exe.debug.458215824" name="MCU C Compiler" superClass="com.crt.advproject.gcc.exe.debug">
|
|
||||||
<option id="com.crt.advproject.gcc.arch.10015788" name="Architecture" superClass="com.crt.advproject.gcc.arch" value="com.crt.advproject.gcc.target.cm4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gcc.thumb.71629009" name="Thumb mode" superClass="com.crt.advproject.gcc.thumb" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.c.compiler.option.preprocessor.def.symbols.1023083765" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="DEBUG"/>
|
|
||||||
<listOptionValue builtIn="false" value="__CODE_RED"/>
|
|
||||||
<listOptionValue builtIn="false" value="__USE_LPCOPEN"/>
|
|
||||||
<listOptionValue builtIn="false" value="CORE_M4"/>
|
|
||||||
<listOptionValue builtIn="false" value="__REDLIB__"/>
|
|
||||||
</option>
|
|
||||||
<option id="gnu.c.compiler.option.misc.other.1666010095" name="Other flags" superClass="gnu.c.compiler.option.misc.other" value="-c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant" valueType="string"/>
|
|
||||||
<option id="com.crt.advproject.gcc.hdrlib.2136945501" name="Library headers" superClass="com.crt.advproject.gcc.hdrlib" value="com.crt.advproject.gcc.hdrlib.codered" valueType="enumerated"/>
|
|
||||||
<option id="gnu.c.compiler.option.include.paths.916170407" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value="../../../../.."/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_chip_40xx/inc}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_board_ea_devkit_4088/inc}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/example/inc}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_chip_40xx}/../webserver/lwip/inc""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_chip_40xx}/../webserver/lwip/inc/ipv4""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.crt.advproject.gcc.fpu.933161555" name="Floating point" superClass="com.crt.advproject.gcc.fpu" value="com.crt.advproject.gcc.fpu.fpv4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gcc.specs.2021862892" name="Specs" superClass="com.crt.advproject.gcc.specs" value="com.crt.advproject.gcc.specs.codered" valueType="enumerated"/>
|
|
||||||
<option id="gnu.c.compiler.option.misc.verbose.1004080197" name="Verbose (-v)" superClass="gnu.c.compiler.option.misc.verbose" value="false" valueType="boolean"/>
|
|
||||||
<inputType id="com.crt.advproject.compiler.input.354631257" superClass="com.crt.advproject.compiler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.crt.advproject.gas.exe.debug.501973529" name="MCU Assembler" superClass="com.crt.advproject.gas.exe.debug">
|
|
||||||
<option id="com.crt.advproject.gas.arch.837659505" name="Architecture" superClass="com.crt.advproject.gas.arch" value="com.crt.advproject.gas.target.cm4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gas.thumb.1720687740" name="Thumb mode" superClass="com.crt.advproject.gas.thumb" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.both.asm.option.flags.crt.656053338" name="Assembler flags" superClass="gnu.both.asm.option.flags.crt" value="-c -x assembler-with-cpp -DDEBUG -D__CODE_RED -D__REDLIB__" valueType="string"/>
|
|
||||||
<option id="com.crt.advproject.gas.hdrlib.1160701072" name="Library headers" superClass="com.crt.advproject.gas.hdrlib" value="com.crt.advproject.gas.hdrlib.codered" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gas.fpu.1925065374" name="Floating point" superClass="com.crt.advproject.gas.fpu" value="com.crt.advproject.gas.fpu.fpv4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gas.specs.2073510237" name="Specs" superClass="com.crt.advproject.gas.specs" value="com.crt.advproject.gas.specs.codered" valueType="enumerated"/>
|
|
||||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.115546582" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
|
|
||||||
<inputType id="com.crt.advproject.assembler.input.916650704" name="Additional Assembly Source Files" superClass="com.crt.advproject.assembler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.crt.advproject.link.cpp.exe.debug.810235917" name="MCU C++ Linker" superClass="com.crt.advproject.link.cpp.exe.debug"/>
|
|
||||||
<tool id="com.crt.advproject.link.exe.debug.324492678" name="MCU Linker" superClass="com.crt.advproject.link.exe.debug">
|
|
||||||
<option id="com.crt.advproject.link.arch.829579535" name="Architecture" superClass="com.crt.advproject.link.arch" value="com.crt.advproject.link.target.cm4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.link.thumb.510266819" name="Thumb mode" superClass="com.crt.advproject.link.thumb" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.crt.advproject.link.script.350895421" name="Linker script" superClass="com.crt.advproject.link.script" value=""Mongoose_LPC4088_QSB_BM_Debug.ld"" valueType="string"/>
|
|
||||||
<option id="com.crt.advproject.link.manage.889427171" name="Manage linker script" superClass="com.crt.advproject.link.manage" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.c.link.option.nostdlibs.1159445202" name="No startup or default libs (-nostdlib)" superClass="gnu.c.link.option.nostdlibs" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.c.link.option.other.1069741234" name="Other options (-Xlinker [option])" superClass="gnu.c.link.option.other" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="-Map="${BuildArtifactFileBaseName}.map""/>
|
|
||||||
<listOptionValue builtIn="false" value="--gc-sections"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.crt.advproject.link.gcc.hdrlib.413287865" name="Library" superClass="com.crt.advproject.link.gcc.hdrlib" value="com.crt.advproject.gcc.link.hdrlib.codered.nohost" valueType="enumerated"/>
|
|
||||||
<option id="gnu.c.link.option.libs.1297855852" name="Libraries (-l)" superClass="gnu.c.link.option.libs" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value="lpc_board_ea_devkit_4088"/>
|
|
||||||
<listOptionValue builtIn="false" value="lpc_chip_40xx"/>
|
|
||||||
</option>
|
|
||||||
<option id="gnu.c.link.option.paths.1003376581" name="Library search path (-L)" superClass="gnu.c.link.option.paths" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_chip_40xx/Debug}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_board_ea_devkit_4088/Debug}""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.crt.advproject.link.fpu.486337035" name="Floating point" superClass="com.crt.advproject.link.fpu" value="com.crt.advproject.link.fpu.fpv4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.link.gcc.multicore.master.1571517241" name="Multicore master" superClass="com.crt.advproject.link.gcc.multicore.master"/>
|
|
||||||
<option id="com.crt.advproject.link.gcc.multicore.master.userobjs.1142489770" name="Slave Objects (not visible)" superClass="com.crt.advproject.link.gcc.multicore.master.userobjs" valueType="userObjs"/>
|
|
||||||
<option id="com.crt.advproject.link.gcc.multicore.slave.1330923807" name="Multicore configuration" superClass="com.crt.advproject.link.gcc.multicore.slave"/>
|
|
||||||
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1357197797" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
|
|
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
|
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
|
||||||
</inputType>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="example"/>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="lwip"/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
<cconfiguration id="com.crt.advproject.config.exe.release.426518678">
|
|
||||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.crt.advproject.config.exe.release.426518678" moduleId="org.eclipse.cdt.core.settings" name="Release">
|
|
||||||
<externalSettings/>
|
|
||||||
<extensions>
|
|
||||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GNU_ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
|
||||||
</extensions>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<configuration artifactExtension="axf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="Release build" errorParsers="org.eclipse.cdt.core.CWDLocator;org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="com.crt.advproject.config.exe.release.426518678" name="Release" parent="com.crt.advproject.config.exe.release" postannouncebuildStep="Performing post-build steps" postbuildStep="arm-none-eabi-size "${BuildArtifactFileName}"; # arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" ; # checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"; ">
|
|
||||||
<folderInfo id="com.crt.advproject.config.exe.release.426518678." name="/" resourcePath="">
|
|
||||||
<toolChain id="com.crt.advproject.toolchain.exe.release.1501144192" name="Code Red MCU Tools" superClass="com.crt.advproject.toolchain.exe.release">
|
|
||||||
<targetPlatform binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.GNU_ELF" id="com.crt.advproject.platform.exe.release.1220404691" name="ARM-based MCU (Release)" superClass="com.crt.advproject.platform.exe.release"/>
|
|
||||||
<builder buildPath="${workspace_loc:/Mongoose_LPC4088_QSB_BM}/Release" id="com.crt.advproject.builder.exe.release.703435662" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="com.crt.advproject.builder.exe.release"/>
|
|
||||||
<tool id="com.crt.advproject.cpp.exe.release.1433389026" name="MCU C++ Compiler" superClass="com.crt.advproject.cpp.exe.release"/>
|
|
||||||
<tool id="com.crt.advproject.gcc.exe.release.1793760672" name="MCU C Compiler" superClass="com.crt.advproject.gcc.exe.release">
|
|
||||||
<option id="com.crt.advproject.gcc.arch.854315106" name="Architecture" superClass="com.crt.advproject.gcc.arch" value="com.crt.advproject.gcc.target.cm4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gcc.thumb.1298723970" name="Thumb mode" superClass="com.crt.advproject.gcc.thumb" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.c.compiler.option.preprocessor.def.symbols.368676434" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
|
|
||||||
<listOptionValue builtIn="false" value="__REDLIB__"/>
|
|
||||||
<listOptionValue builtIn="false" value="NDEBUG"/>
|
|
||||||
<listOptionValue builtIn="false" value="__CODE_RED"/>
|
|
||||||
<listOptionValue builtIn="false" value="__USE_LPCOPEN"/>
|
|
||||||
<listOptionValue builtIn="false" value="CORE_M4"/>
|
|
||||||
</option>
|
|
||||||
<option id="gnu.c.compiler.option.misc.other.244918570" name="Other flags" superClass="gnu.c.compiler.option.misc.other" value="-c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant" valueType="string"/>
|
|
||||||
<option id="com.crt.advproject.gcc.hdrlib.1263825310" name="Library headers" superClass="com.crt.advproject.gcc.hdrlib" value="Redlib" valueType="enumerated"/>
|
|
||||||
<option id="gnu.c.compiler.option.include.paths.818921239" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_chip_40xx/inc}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_board_ea_devkit_4088/inc}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/example/inc}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lwip/inc}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/lwip/inc/ipv4}""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.crt.advproject.gcc.fpu.341412753" name="Floating point" superClass="com.crt.advproject.gcc.fpu" value="com.crt.advproject.gcc.fpu.fpv4" valueType="enumerated"/>
|
|
||||||
<inputType id="com.crt.advproject.compiler.input.1964857851" superClass="com.crt.advproject.compiler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.crt.advproject.gas.exe.release.1465855843" name="MCU Assembler" superClass="com.crt.advproject.gas.exe.release">
|
|
||||||
<option id="com.crt.advproject.gas.arch.156615847" name="Architecture" superClass="com.crt.advproject.gas.arch" value="com.crt.advproject.gas.target.cm4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gas.thumb.304046670" name="Thumb mode" superClass="com.crt.advproject.gas.thumb" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.both.asm.option.flags.crt.580261315" name="Assembler flags" superClass="gnu.both.asm.option.flags.crt" value="-c -x assembler-with-cpp -D__REDLIB__ -DNDEBUG -D__CODE_RED" valueType="string"/>
|
|
||||||
<option id="com.crt.advproject.gas.hdrlib.979107554" name="Library headers" superClass="com.crt.advproject.gas.hdrlib" value="Redlib" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.gas.fpu.1853399316" name="Floating point" superClass="com.crt.advproject.gas.fpu" value="com.crt.advproject.gas.fpu.fpv4" valueType="enumerated"/>
|
|
||||||
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.984433225" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
|
|
||||||
<inputType id="com.crt.advproject.assembler.input.1403737014" name="Additional Assembly Source Files" superClass="com.crt.advproject.assembler.input"/>
|
|
||||||
</tool>
|
|
||||||
<tool id="com.crt.advproject.link.cpp.exe.release.1738219118" name="MCU C++ Linker" superClass="com.crt.advproject.link.cpp.exe.release"/>
|
|
||||||
<tool id="com.crt.advproject.link.exe.release.561786138" name="MCU Linker" superClass="com.crt.advproject.link.exe.release">
|
|
||||||
<option id="com.crt.advproject.link.arch.88583324" name="Architecture" superClass="com.crt.advproject.link.arch" value="com.crt.advproject.link.target.cm4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.link.thumb.207282575" name="Thumb mode" superClass="com.crt.advproject.link.thumb" value="true" valueType="boolean"/>
|
|
||||||
<option id="com.crt.advproject.link.script.1400827349" name="Linker script" superClass="com.crt.advproject.link.script" value=""Mongoose_LPC4088_QSB_BM_Release.ld"" valueType="string"/>
|
|
||||||
<option id="com.crt.advproject.link.manage.895977836" name="Manage linker script" superClass="com.crt.advproject.link.manage" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.c.link.option.nostdlibs.764101758" name="No startup or default libs (-nostdlib)" superClass="gnu.c.link.option.nostdlibs" value="true" valueType="boolean"/>
|
|
||||||
<option id="gnu.c.link.option.other.1098097611" name="Other options (-Xlinker [option])" superClass="gnu.c.link.option.other" valueType="stringList">
|
|
||||||
<listOptionValue builtIn="false" value="-Map="${BuildArtifactFileBaseName}.map""/>
|
|
||||||
<listOptionValue builtIn="false" value="--gc-sections"/>
|
|
||||||
</option>
|
|
||||||
<option id="com.crt.advproject.link.gcc.hdrlib.1949931706" name="Library" superClass="com.crt.advproject.link.gcc.hdrlib" value="com.crt.advproject.gcc.link.hdrlib.codered.nohost" valueType="enumerated"/>
|
|
||||||
<option id="gnu.c.link.option.libs.70665694" name="Libraries (-l)" superClass="gnu.c.link.option.libs" valueType="libs">
|
|
||||||
<listOptionValue builtIn="false" value="lpc_board_ea_devkit_4088"/>
|
|
||||||
<listOptionValue builtIn="false" value="lpc_chip_40xx"/>
|
|
||||||
</option>
|
|
||||||
<option id="gnu.c.link.option.paths.102053364" name="Library search path (-L)" superClass="gnu.c.link.option.paths" valueType="libPaths">
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_chip_40xx/Release}""/>
|
|
||||||
<listOptionValue builtIn="false" value=""${workspace_loc:/lpc_board_ea_devkit_4088/Release}""/>
|
|
||||||
</option>
|
|
||||||
<option id="com.crt.advproject.link.fpu.1502244730" name="Floating point" superClass="com.crt.advproject.link.fpu" value="com.crt.advproject.link.fpu.fpv4" valueType="enumerated"/>
|
|
||||||
<option id="com.crt.advproject.link.gcc.multicore.master.2040292131" name="Multicore master" superClass="com.crt.advproject.link.gcc.multicore.master"/>
|
|
||||||
<option id="com.crt.advproject.link.gcc.multicore.master.userobjs.1141078308" name="Slave Objects (not visible)" superClass="com.crt.advproject.link.gcc.multicore.master.userobjs" valueType="userObjs"/>
|
|
||||||
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1927031931" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
|
|
||||||
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
|
|
||||||
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
|
|
||||||
</inputType>
|
|
||||||
</tool>
|
|
||||||
</toolChain>
|
|
||||||
</folderInfo>
|
|
||||||
<sourceEntries>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="example"/>
|
|
||||||
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="lwip"/>
|
|
||||||
</sourceEntries>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
|
||||||
</cconfiguration>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
|
||||||
<project id="Mongoose_LPC4088_QSB_BM.com.crt.advproject.projecttype.exe.319794849" name="Executable" projectType="com.crt.advproject.projecttype.exe"/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="scannerConfiguration">
|
|
||||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
|
||||||
<storageModule moduleId="com.crt.config">
|
|
||||||
<projectStorage><?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<TargetConfig>
|
|
||||||
<Properties property_0="None" property_2="LPC177x_8x_407x_8x_512.cfx" property_3="NXP" property_4="LPC4088" property_count="5" version="70200"/>
|
|
||||||
<infoList vendor="NXP"><info chip="LPC4088" flash_driver="LPC177x_8x_407x_8x_512.cfx" match_id="0x481D3F47" name="LPC4088" stub="crt_emu_cm3_nxp"><chip><name>LPC4088</name>
|
|
||||||
<family>LPC407x_8x</family>
|
|
||||||
<vendor>NXP (formerly Philips)</vendor>
|
|
||||||
<reset board="None" core="Real" sys="Real"/>
|
|
||||||
<clock changeable="TRUE" freq="12MHz" is_accurate="TRUE"/>
|
|
||||||
<memory can_program="true" id="Flash" is_ro="true" type="Flash"/>
|
|
||||||
<memory id="RAM" type="RAM"/>
|
|
||||||
<memory id="Periph" is_volatile="true" type="Peripheral"/>
|
|
||||||
<memoryInstance derived_from="Flash" edited="true" id="MFlash512" location="0x0" size="0x80000"/>
|
|
||||||
<memoryInstance derived_from="RAM" edited="true" id="RamPeriph32" location="0x20000000" size="0x8000"/>
|
|
||||||
<memoryInstance derived_from="RAM" edited="true" id="RamLoc64" location="0x10000000" size="0x10000"/>
|
|
||||||
<prog_flash blocksz="0x1000" location="0x0" maxprgbuff="0x1000" progwithcode="TRUE" size="0x10000"/>
|
|
||||||
<prog_flash blocksz="0x8000" location="0x10000" maxprgbuff="0x1000" progwithcode="TRUE" size="0x70000"/>
|
|
||||||
<peripheralInstance derived_from="V7M_MPU" id="MPU" location="0xe000ed90"/>
|
|
||||||
<peripheralInstance derived_from="V7M_NVIC" id="NVIC" location="0xe000e000"/>
|
|
||||||
<peripheralInstance derived_from="V7M_DCR" id="DCR" location="0xe000edf0"/>
|
|
||||||
<peripheralInstance derived_from="V7M_ITM" id="ITM" location="0xe0000000"/>
|
|
||||||
<peripheralInstance derived_from="FLASHCTRL" id="FLASHCTRL" location="0x200000"/>
|
|
||||||
<peripheralInstance derived_from="GPDMA" id="GPDMA" location="0x20080000"/>
|
|
||||||
<peripheralInstance derived_from="ETHERNET" id="ETHERNET" location="0x20084000"/>
|
|
||||||
<peripheralInstance derived_from="LCD" id="LCD" location="0x20088000"/>
|
|
||||||
<peripheralInstance derived_from="USB" id="USB" location="0x2008c000"/>
|
|
||||||
<peripheralInstance derived_from="CRC" id="CRC" location="0x20090000"/>
|
|
||||||
<peripheralInstance derived_from="GPIO" id="GPIO" location="0x20098000"/>
|
|
||||||
<peripheralInstance derived_from="EMC" id="EMC" location="0x2009c000"/>
|
|
||||||
<peripheralInstance derived_from="WWDT" id="WWDT" location="0x40000000"/>
|
|
||||||
<peripheralInstance derived_from="TIMER0" id="TIMER0" location="0x40004000"/>
|
|
||||||
<peripheralInstance derived_from="TIMER1" id="TIMER1" location="0x40008000"/>
|
|
||||||
<peripheralInstance derived_from="UART0" id="UART0" location="0x4000c000"/>
|
|
||||||
<peripheralInstance derived_from="UART1" id="UART1" location="0x40010000"/>
|
|
||||||
<peripheralInstance derived_from="PWM0" id="PWM0" location="0x40014000"/>
|
|
||||||
<peripheralInstance derived_from="PWM1" id="PWM1" location="0x40018000"/>
|
|
||||||
<peripheralInstance derived_from="I2C0" id="I2C0" location="0x4001c000"/>
|
|
||||||
<peripheralInstance derived_from="COMPARATOR" id="COMPARATOR" location="0x40020000"/>
|
|
||||||
<peripheralInstance derived_from="RTC" id="RTC" location="0x40024000"/>
|
|
||||||
<peripheralInstance derived_from="GPIOINT" id="GPIOINT" location="0x40028080"/>
|
|
||||||
<peripheralInstance derived_from="IOCON" id="IOCON" location="0x4002c000"/>
|
|
||||||
<peripheralInstance derived_from="SSP1" id="SSP1" location="0x40030000"/>
|
|
||||||
<peripheralInstance derived_from="ADC" id="ADC" location="0x40034000"/>
|
|
||||||
<peripheralInstance derived_from="CANAFRAM" id="CANAFRAM" location="0x40038000"/>
|
|
||||||
<peripheralInstance derived_from="CANAF" id="CANAF" location="0x4003c000"/>
|
|
||||||
<peripheralInstance derived_from="CCAN" id="CCAN" location="0x40040000"/>
|
|
||||||
<peripheralInstance derived_from="CAN1" id="CAN1" location="0x40044000"/>
|
|
||||||
<peripheralInstance derived_from="CAN2" id="CAN2" location="0x40048000"/>
|
|
||||||
<peripheralInstance derived_from="I2C1" id="I2C1" location="0x4005c000"/>
|
|
||||||
<peripheralInstance derived_from="SSP0" id="SSP0" location="0x40088000"/>
|
|
||||||
<peripheralInstance derived_from="DAC" id="DAC" location="0x4008c000"/>
|
|
||||||
<peripheralInstance derived_from="TIMER2" id="TIMER2" location="0x40090000"/>
|
|
||||||
<peripheralInstance derived_from="TIMER3" id="TIMER3" location="0x40094000"/>
|
|
||||||
<peripheralInstance derived_from="UART2" id="UART2" location="0x40098000"/>
|
|
||||||
<peripheralInstance derived_from="UART3" id="UART3" location="0x4009c000"/>
|
|
||||||
<peripheralInstance derived_from="I2C2" id="I2C2" location="0x400a0000"/>
|
|
||||||
<peripheralInstance derived_from="UART4" id="UART4" location="0x400a4000"/>
|
|
||||||
<peripheralInstance derived_from="I2S" id="I2S" location="0x400a8000"/>
|
|
||||||
<peripheralInstance derived_from="SSP2" id="SSP2" location="0x400ac000"/>
|
|
||||||
<peripheralInstance derived_from="MCPWM" id="MCPWM" location="0x400b8000"/>
|
|
||||||
<peripheralInstance derived_from="QEI" id="QEI" location="0x400bc000"/>
|
|
||||||
<peripheralInstance derived_from="SDMMC" id="SDMMC" location="0x400c0000"/>
|
|
||||||
<peripheralInstance derived_from="SYSCON" id="SYSCON" location="0x400fc000"/>
|
|
||||||
</chip>
|
|
||||||
<processor><name gcc_name="cortex-m4">Cortex-M4</name>
|
|
||||||
<family>Cortex-M</family>
|
|
||||||
</processor>
|
|
||||||
<link href="nxp_lpc407x_8x_peripheral.xme" show="embed" type="simple"/>
|
|
||||||
</info>
|
|
||||||
</infoList>
|
|
||||||
</TargetConfig></projectStorage>
|
|
||||||
</storageModule>
|
|
||||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
|
||||||
<configuration configurationName="Debug">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/Mongoose_LPC4088_QSB_BM"/>
|
|
||||||
</configuration>
|
|
||||||
<configuration configurationName="Release">
|
|
||||||
<resource resourceType="PROJECT" workspacePath="/Mongoose_LPC4088_QSB_BM"/>
|
|
||||||
</configuration>
|
|
||||||
</storageModule>
|
|
||||||
</cproject>
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>Mongoose_LPC4088_QSB_BM</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
<project>lpc_chip_40xx</project>
|
|
||||||
<project>lpc_board_ea_devkit_4088</project>
|
|
||||||
<project>webserver</project>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
|
||||||
<triggers>clean,full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
|
||||||
<triggers>full,incremental,</triggers>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
|
||||||
</natures>
|
|
||||||
<linkedResources>
|
|
||||||
<link>
|
|
||||||
<name>lwip</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>LWIP_PATH</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
|
||||||
<name>example/src/mongoose.c</name>
|
|
||||||
<type>1</type>
|
|
||||||
<location>$%7BPARENT-4-PROJECT_LOC%7D/mongoose.c</location>
|
|
||||||
</link>
|
|
||||||
</linkedResources>
|
|
||||||
<variableList>
|
|
||||||
<variable>
|
|
||||||
<name>LWIP_PATH</name>
|
|
||||||
<value>$%7BSDK_PATH%7D/webserver/lwip</value>
|
|
||||||
</variable>
|
|
||||||
<variable>
|
|
||||||
<name>SDK_PATH</name>
|
|
||||||
<value>$%7BPARENT-2-PROJECT_LOC%7D/LPCOpen_QSB</value>
|
|
||||||
</variable>
|
|
||||||
</variableList>
|
|
||||||
</projectDescription>
|
|
||||||
-73
@@ -1,73 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* @brief LPC17xx/LPC40xx EMAC and PHY driver configuration file for LWIP
|
|
||||||
*
|
|
||||||
* @note
|
|
||||||
* Copyright(C) NXP Semiconductors, 2012
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* @par
|
|
||||||
* Software that is described herein is for illustrative purposes only
|
|
||||||
* which provides customers with programming information regarding the
|
|
||||||
* LPC products. This software is supplied "AS IS" without any warranties of
|
|
||||||
* any kind, and NXP Semiconductors and its licensor disclaim any and
|
|
||||||
* all warranties, express or implied, including all implied warranties of
|
|
||||||
* merchantability, fitness for a particular purpose and non-infringement of
|
|
||||||
* intellectual property rights. NXP Semiconductors assumes no responsibility
|
|
||||||
* or liability for the use of the software, conveys no license or rights under any
|
|
||||||
* patent, copyright, mask work right, or any other intellectual property rights in
|
|
||||||
* or to any products. NXP Semiconductors reserves the right to make changes
|
|
||||||
* in the software without notification. NXP Semiconductors also makes no
|
|
||||||
* representation or warranty that such application will be suitable for the
|
|
||||||
* specified use without further testing or modification.
|
|
||||||
*
|
|
||||||
* @par
|
|
||||||
* Permission to use, copy, modify, and distribute this software and its
|
|
||||||
* documentation is hereby granted, under NXP Semiconductors' and its
|
|
||||||
* licensor's relevant copyrights in the software, without fee, provided that it
|
|
||||||
* is used in conjunction with NXP Semiconductors microcontrollers. This
|
|
||||||
* copyright, permission, and disclaimer notice must appear in all copies of
|
|
||||||
* this code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __LPC_17XX40XX_EMAC_CONFIG_H_
|
|
||||||
#define __LPC_17XX40XX_EMAC_CONFIG_H_
|
|
||||||
|
|
||||||
#include "lwip/opt.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* The PHY address connected the to MII/RMII */
|
|
||||||
#define LPC_PHYDEF_PHYADDR 1
|
|
||||||
|
|
||||||
/* Autonegotiation mode enable flag */
|
|
||||||
#define PHY_USE_AUTONEG 1
|
|
||||||
|
|
||||||
/* PHY interface full duplex operation or half duplex enable flag.
|
|
||||||
Only applies if PHY_USE_AUTONEG = 0 */
|
|
||||||
#define PHY_USE_FULL_DUPLEX 1
|
|
||||||
|
|
||||||
/* PHY interface 100MBS or 10MBS enable flag.
|
|
||||||
Only applies if PHY_USE_AUTONEG = 0 */
|
|
||||||
#define PHY_USE_100MBS 1
|
|
||||||
|
|
||||||
/* Defines the number of descriptors used for RX */
|
|
||||||
#define LPC_NUM_BUFF_RXDESCS 4
|
|
||||||
|
|
||||||
/* Defines the number of descriptors used for TX */
|
|
||||||
#define LPC_NUM_BUFF_TXDESCS 4
|
|
||||||
|
|
||||||
/* Disable slow speed memory buffering */
|
|
||||||
#define LPC_CHECK_SLOWMEM 0
|
|
||||||
|
|
||||||
/* Array of slow memory address ranges for LPC_CHECK_SLOWMEM */
|
|
||||||
#define LPC_SLOWMEM_ARRAY
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __LPC_17XX40XX_EMAC_CONFIG_H_ */
|
|
||||||
@@ -1,128 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* @brief LWIP build option override file
|
|
||||||
*
|
|
||||||
* @note
|
|
||||||
* Copyright(C) NXP Semiconductors, 2012
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* @par
|
|
||||||
* Software that is described herein is for illustrative purposes only
|
|
||||||
* which provides customers with programming information regarding the
|
|
||||||
* LPC products. This software is supplied "AS IS" without any warranties of
|
|
||||||
* any kind, and NXP Semiconductors and its licensor disclaim any and
|
|
||||||
* all warranties, express or implied, including all implied warranties of
|
|
||||||
* merchantability, fitness for a particular purpose and non-infringement of
|
|
||||||
* intellectual property rights. NXP Semiconductors assumes no responsibility
|
|
||||||
* or liability for the use of the software, conveys no license or rights under any
|
|
||||||
* patent, copyright, mask work right, or any other intellectual property rights in
|
|
||||||
* or to any products. NXP Semiconductors reserves the right to make changes
|
|
||||||
* in the software without notification. NXP Semiconductors also makes no
|
|
||||||
* representation or warranty that such application will be suitable for the
|
|
||||||
* specified use without further testing or modification.
|
|
||||||
*
|
|
||||||
* @par
|
|
||||||
* Permission to use, copy, modify, and distribute this software and its
|
|
||||||
* documentation is hereby granted, under NXP Semiconductors' and its
|
|
||||||
* licensor's relevant copyrights in the software, without fee, provided that it
|
|
||||||
* is used in conjunction with NXP Semiconductors microcontrollers. This
|
|
||||||
* copyright, permission, and disclaimer notice must appear in all copies of
|
|
||||||
* this code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __LWIPOPTS_H_
|
|
||||||
#define __LWIPOPTS_H_
|
|
||||||
|
|
||||||
/* Standalone build */
|
|
||||||
#define NO_SYS 1
|
|
||||||
|
|
||||||
//#define LWIP_DEBUG 1
|
|
||||||
#define LPC_TX_PBUF_BOUNCE_EN 1
|
|
||||||
//#define HTTPD_DEBUG LWIP_DBG_ON
|
|
||||||
|
|
||||||
/* Use LWIP timers */
|
|
||||||
#define NO_SYS_NO_TIMERS 0
|
|
||||||
|
|
||||||
#define LWIP_HTTPD_DYNAMIC_HEADERS 1
|
|
||||||
|
|
||||||
/* Need for memory protection */
|
|
||||||
#define SYS_LIGHTWEIGHT_PROT 0
|
|
||||||
|
|
||||||
/* 32-bit alignment */
|
|
||||||
#define MEM_ALIGNMENT 4
|
|
||||||
|
|
||||||
/* pbuf buffers in pool. In zero-copy mode, these buffers are
|
|
||||||
located in peripheral RAM. In copied mode, they are located in
|
|
||||||
internal IRAM */
|
|
||||||
#define PBUF_POOL_SIZE 7
|
|
||||||
|
|
||||||
/* No padding needed */
|
|
||||||
#define ETH_PAD_SIZE 0
|
|
||||||
|
|
||||||
#define IP_SOF_BROADCAST 1
|
|
||||||
#define IP_SOF_BROADCAST_RECV 1
|
|
||||||
|
|
||||||
/* The ethernet FCS is performed in hardware. The IP, TCP, and UDP
|
|
||||||
CRCs still need to be done in hardware. */
|
|
||||||
#define CHECKSUM_GEN_IP 1
|
|
||||||
#define CHECKSUM_GEN_UDP 1
|
|
||||||
#define CHECKSUM_GEN_TCP 1
|
|
||||||
#define CHECKSUM_CHECK_IP 1
|
|
||||||
#define CHECKSUM_CHECK_UDP 1
|
|
||||||
#define CHECKSUM_CHECK_TCP 1
|
|
||||||
#define LWIP_CHECKSUM_ON_COPY 1
|
|
||||||
|
|
||||||
/* Use LWIP version of htonx() to allow generic functionality across
|
|
||||||
all platforms. If you are using the Cortex Mx devices, you might
|
|
||||||
be able to use the Cortex __rev instruction instead. */
|
|
||||||
#define LWIP_PLATFORM_BYTESWAP 0
|
|
||||||
|
|
||||||
/* Non-static memory, used with DMA pool */
|
|
||||||
#define MEM_SIZE (12 * 1024)
|
|
||||||
|
|
||||||
/* Raw interface not needed */
|
|
||||||
#define LWIP_RAW 1
|
|
||||||
|
|
||||||
/* DHCP is ok, UDP is required with DHCP */
|
|
||||||
#define LWIP_DHCP 1
|
|
||||||
#define LWIP_UDP 1
|
|
||||||
|
|
||||||
/* Hostname can be used */
|
|
||||||
#define LWIP_NETIF_HOSTNAME 1
|
|
||||||
|
|
||||||
#define LWIP_BROADCAST_PING 1
|
|
||||||
|
|
||||||
/* MSS should match the hardware packet size */
|
|
||||||
#define TCP_MSS 1460
|
|
||||||
#define TCP_SND_BUF (2 * TCP_MSS)
|
|
||||||
|
|
||||||
#define LWIP_SOCKET 0
|
|
||||||
#define LWIP_NETCONN 0
|
|
||||||
#define MEMP_NUM_SYS_TIMEOUT 300
|
|
||||||
|
|
||||||
#define LWIP_STATS 0
|
|
||||||
#define LINK_STATS 0
|
|
||||||
#define LWIP_STATS_DISPLAY 0
|
|
||||||
|
|
||||||
/* There are more *_DEBUG options that can be selected.
|
|
||||||
See opts.h. Make sure that LWIP_DEBUG is defined when
|
|
||||||
building the code to use debug. */
|
|
||||||
#define TCP_DEBUG LWIP_DBG_OFF
|
|
||||||
#define ETHARP_DEBUG LWIP_DBG_OFF
|
|
||||||
#define PBUF_DEBUG LWIP_DBG_OFF
|
|
||||||
#define IP_DEBUG LWIP_DBG_OFF
|
|
||||||
#define TCPIP_DEBUG LWIP_DBG_OFF
|
|
||||||
#define DHCP_DEBUG LWIP_DBG_OFF
|
|
||||||
#define UDP_DEBUG LWIP_DBG_OFF
|
|
||||||
|
|
||||||
/* This define is custom for the LPC EMAC driver. Enabled it to
|
|
||||||
get debug messages for the driver. */
|
|
||||||
#define EMAC_DEBUG LWIP_DBG_OFF
|
|
||||||
|
|
||||||
#define MEM_LIBC_MALLOC 1
|
|
||||||
#define MEMP_MEM_MALLOC 1
|
|
||||||
|
|
||||||
/* Needed for malloc/free */
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#endif /* __LWIPOPTS_H_ */
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
Mongoose Web Server example without an RTOS
|
|
||||||
===========================================
|
|
||||||
|
|
||||||
This project sets up a simple Web server using the Mongoose Web Server and
|
|
||||||
Networking library.
|
|
||||||
|
|
||||||
This project depends on lpc_chip_40xx and lpc_board_ea_devkit_4088 (for
|
|
||||||
drivers) and the webserver example project (for LWIP).
|
|
||||||
-419
@@ -1,419 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
//*****************************************************************************
|
|
||||||
// LPC407x_8x Microcontroller Startup code for use with LPCXpresso IDE
|
|
||||||
//
|
|
||||||
// Version : 140114
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// Copyright(C) NXP Semiconductors, 2014
|
|
||||||
// All rights reserved.
|
|
||||||
//
|
|
||||||
// Software that is described herein is for illustrative purposes only
|
|
||||||
// which provides customers with programming information regarding the
|
|
||||||
// LPC products. This software is supplied "AS IS" without any warranties of
|
|
||||||
// any kind, and NXP Semiconductors and its licensor disclaim any and
|
|
||||||
// all warranties, express or implied, including all implied warranties of
|
|
||||||
// merchantability, fitness for a particular purpose and non-infringement of
|
|
||||||
// intellectual property rights. NXP Semiconductors assumes no responsibility
|
|
||||||
// or liability for the use of the software, conveys no license or rights under any
|
|
||||||
// patent, copyright, mask work right, or any other intellectual property rights in
|
|
||||||
// or to any products. NXP Semiconductors reserves the right to make changes
|
|
||||||
// in the software without notification. NXP Semiconductors also makes no
|
|
||||||
// representation or warranty that such application will be suitable for the
|
|
||||||
// specified use without further testing or modification.
|
|
||||||
//
|
|
||||||
// Permission to use, copy, modify, and distribute this software and its
|
|
||||||
// documentation is hereby granted, under NXP Semiconductors' and its
|
|
||||||
// licensor's relevant copyrights in the software, without fee, provided that it
|
|
||||||
// is used in conjunction with NXP Semiconductors microcontrollers. This
|
|
||||||
// copyright, permission, and disclaimer notice must appear in all copies of
|
|
||||||
// this code.
|
|
||||||
//*****************************************************************************
|
|
||||||
#if defined (__cplusplus)
|
|
||||||
#ifdef __REDLIB__
|
|
||||||
#error Redlib does not support C++
|
|
||||||
#else
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// The entry point for the C++ library startup
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
extern "C" {
|
|
||||||
extern void __libc_init_array(void);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define WEAK __attribute__ ((weak))
|
|
||||||
#define ALIAS(f) __attribute__ ((weak, alias (#f)))
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
#if defined (__cplusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
#if defined (__USE_CMSIS) || defined (__USE_LPCOPEN)
|
|
||||||
// Declaration of external SystemInit function
|
|
||||||
extern void SystemInit(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// Forward declaration of the default handlers. These are aliased.
|
|
||||||
// When the application defines a handler (with the same name), this will
|
|
||||||
// automatically take precedence over these weak definitions
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
void ResetISR(void);
|
|
||||||
WEAK void NMI_Handler(void);
|
|
||||||
WEAK void HardFault_Handler(void);
|
|
||||||
WEAK void MemManage_Handler(void);
|
|
||||||
WEAK void BusFault_Handler(void);
|
|
||||||
WEAK void UsageFault_Handler(void);
|
|
||||||
WEAK void SVC_Handler(void);
|
|
||||||
WEAK void DebugMon_Handler(void);
|
|
||||||
WEAK void PendSV_Handler(void);
|
|
||||||
WEAK void SysTick_Handler(void);
|
|
||||||
WEAK void IntDefaultHandler(void);
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// Forward declaration of the specific IRQ handlers. These are aliased
|
|
||||||
// to the IntDefaultHandler, which is a 'forever' loop. When the application
|
|
||||||
// defines a handler (with the same name), this will automatically take
|
|
||||||
// precedence over these weak definitions
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
void WDT_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void TIMER0_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void TIMER1_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void TIMER2_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void TIMER3_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void UART0_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void UART1_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void UART2_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void UART3_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void PWM1_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void I2C0_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void I2C1_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void I2C2_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void SPI_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void SSP0_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void SSP1_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void PLL0_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void RTC_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void EINT0_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void EINT1_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void EINT2_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void EINT3_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void ADC_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void BOD_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void USB_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void CAN_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void DMA_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void I2S_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
#if defined (__USE_LPCOPEN)
|
|
||||||
void ETH_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
#else
|
|
||||||
void ENET_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
#endif
|
|
||||||
void RIT_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void MCPWM_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void QEI_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void PLL1_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void USBActivity_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void CANActivity_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
#if defined (__USE_LPCOPEN)
|
|
||||||
void SDIO_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
#else
|
|
||||||
void MCI_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
#endif
|
|
||||||
void UART4_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void SSP2_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void LCD_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void GPIO_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void PWM0_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
void EEPROM_IRQHandler(void) ALIAS(IntDefaultHandler);
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// The entry point for the application.
|
|
||||||
// __main() is the entry point for Redlib based applications
|
|
||||||
// main() is the entry point for Newlib based applications
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
#if defined (__REDLIB__)
|
|
||||||
extern void __main(void);
|
|
||||||
#endif
|
|
||||||
extern int main(void);
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// External declaration for the pointer to the stack top from the Linker Script
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
extern void _vStackTop(void);
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
#if defined (__cplusplus)
|
|
||||||
} // extern "C"
|
|
||||||
#endif
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// The vector table.
|
|
||||||
// This relies on the linker script to place at correct location in memory.
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
extern void (* const g_pfnVectors[])(void);
|
|
||||||
__attribute__ ((section(".isr_vector")))
|
|
||||||
void (* const g_pfnVectors[])(void) = {
|
|
||||||
// Core Level - CM4
|
|
||||||
&_vStackTop, // The initial stack pointer
|
|
||||||
ResetISR, // The reset handler
|
|
||||||
NMI_Handler, // The NMI handler
|
|
||||||
HardFault_Handler, // The hard fault handler
|
|
||||||
MemManage_Handler, // The MPU fault handler
|
|
||||||
BusFault_Handler, // The bus fault handler
|
|
||||||
UsageFault_Handler, // The usage fault handler
|
|
||||||
0, // Reserved
|
|
||||||
0, // Reserved
|
|
||||||
0, // Reserved
|
|
||||||
0, // Reserved
|
|
||||||
SVC_Handler, // SVCall handler
|
|
||||||
DebugMon_Handler, // Debug monitor handler
|
|
||||||
0, // Reserved
|
|
||||||
PendSV_Handler, // The PendSV handler
|
|
||||||
SysTick_Handler, // The SysTick handler
|
|
||||||
|
|
||||||
// Chip Level - LPC40xx
|
|
||||||
WDT_IRQHandler, // 16, 0x40 - WDT
|
|
||||||
TIMER0_IRQHandler, // 17, 0x44 - TIMER0
|
|
||||||
TIMER1_IRQHandler, // 18, 0x48 - TIMER1
|
|
||||||
TIMER2_IRQHandler, // 19, 0x4c - TIMER2
|
|
||||||
TIMER3_IRQHandler, // 20, 0x50 - TIMER3
|
|
||||||
UART0_IRQHandler, // 21, 0x54 - UART0
|
|
||||||
UART1_IRQHandler, // 22, 0x58 - UART1
|
|
||||||
UART2_IRQHandler, // 23, 0x5c - UART2
|
|
||||||
UART3_IRQHandler, // 24, 0x60 - UART3
|
|
||||||
PWM1_IRQHandler, // 25, 0x64 - PWM1
|
|
||||||
I2C0_IRQHandler, // 26, 0x68 - I2C0
|
|
||||||
I2C1_IRQHandler, // 27, 0x6c - I2C1
|
|
||||||
I2C2_IRQHandler, // 28, 0x70 - I2C2
|
|
||||||
IntDefaultHandler, // 29, Not used
|
|
||||||
SSP0_IRQHandler, // 30, 0x78 - SSP0
|
|
||||||
SSP1_IRQHandler, // 31, 0x7c - SSP1
|
|
||||||
PLL0_IRQHandler, // 32, 0x80 - PLL0 (Main PLL)
|
|
||||||
RTC_IRQHandler, // 33, 0x84 - RTC
|
|
||||||
EINT0_IRQHandler, // 34, 0x88 - EINT0
|
|
||||||
EINT1_IRQHandler, // 35, 0x8c - EINT1
|
|
||||||
EINT2_IRQHandler, // 36, 0x90 - EINT2
|
|
||||||
EINT3_IRQHandler, // 37, 0x94 - EINT3
|
|
||||||
ADC_IRQHandler, // 38, 0x98 - ADC
|
|
||||||
BOD_IRQHandler, // 39, 0x9c - BOD
|
|
||||||
USB_IRQHandler, // 40, 0xA0 - USB
|
|
||||||
CAN_IRQHandler, // 41, 0xa4 - CAN
|
|
||||||
DMA_IRQHandler, // 42, 0xa8 - GP DMA
|
|
||||||
I2S_IRQHandler, // 43, 0xac - I2S
|
|
||||||
#if defined (__USE_LPCOPEN)
|
|
||||||
ETH_IRQHandler, // 44, 0xb0 - Ethernet
|
|
||||||
SDIO_IRQHandler, // 45, 0xb4 - SD/MMC card I/F
|
|
||||||
#else
|
|
||||||
ENET_IRQHandler, // 44, 0xb0 - Ethernet
|
|
||||||
MCI_IRQHandler, // 45, 0xb4 - SD/MMC card I/F
|
|
||||||
#endif
|
|
||||||
MCPWM_IRQHandler, // 46, 0xb8 - Motor Control PWM
|
|
||||||
QEI_IRQHandler, // 47, 0xbc - Quadrature Encoder
|
|
||||||
PLL1_IRQHandler, // 48, 0xc0 - PLL1 (USB PLL)
|
|
||||||
USBActivity_IRQHandler, // 49, 0xc4 - USB Activity interrupt to wakeup
|
|
||||||
CANActivity_IRQHandler, // 50, 0xc8 - CAN Activity interrupt to wakeup
|
|
||||||
UART4_IRQHandler, // 51, 0xcc - UART4
|
|
||||||
SSP2_IRQHandler, // 52, 0xd0 - SSP2
|
|
||||||
LCD_IRQHandler, // 53, 0xd4 - LCD
|
|
||||||
GPIO_IRQHandler, // 54, 0xd8 - GPIO
|
|
||||||
PWM0_IRQHandler, // 55, 0xdc - PWM0
|
|
||||||
EEPROM_IRQHandler, // 56, 0xe0 - EEPROM
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// Functions to carry out the initialization of RW and BSS data sections. These
|
|
||||||
// are written as separate functions rather than being inlined within the
|
|
||||||
// ResetISR() function in order to cope with MCUs with multiple banks of
|
|
||||||
// memory.
|
|
||||||
//*****************************************************************************
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void data_init(unsigned int romstart, unsigned int start, unsigned int len) {
|
|
||||||
unsigned int *pulDest = (unsigned int*) start;
|
|
||||||
unsigned int *pulSrc = (unsigned int*) romstart;
|
|
||||||
unsigned int loop;
|
|
||||||
for (loop = 0; loop < len; loop = loop + 4)
|
|
||||||
*pulDest++ = *pulSrc++;
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void bss_init(unsigned int start, unsigned int len) {
|
|
||||||
unsigned int *pulDest = (unsigned int*) start;
|
|
||||||
unsigned int loop;
|
|
||||||
for (loop = 0; loop < len; loop = loop + 4)
|
|
||||||
*pulDest++ = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// The following symbols are constructs generated by the linker, indicating
|
|
||||||
// the location of various points in the "Global Section Table". This table is
|
|
||||||
// created by the linker via the Code Red managed linker script mechanism. It
|
|
||||||
// contains the load address, execution address and length of each RW data
|
|
||||||
// section and the execution and length of each BSS (zero initialized) section.
|
|
||||||
//*****************************************************************************
|
|
||||||
extern unsigned int __data_section_table;
|
|
||||||
extern unsigned int __data_section_table_end;
|
|
||||||
extern unsigned int __bss_section_table;
|
|
||||||
extern unsigned int __bss_section_table_end;
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// Reset entry point for your code.
|
|
||||||
// Sets up a simple runtime environment and initializes the C/C++
|
|
||||||
// library.
|
|
||||||
//*****************************************************************************
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void
|
|
||||||
ResetISR(void) {
|
|
||||||
|
|
||||||
//
|
|
||||||
// Copy the data sections from flash to SRAM.
|
|
||||||
//
|
|
||||||
unsigned int LoadAddr, ExeAddr, SectionLen;
|
|
||||||
unsigned int *SectionTableAddr;
|
|
||||||
|
|
||||||
// Load base address of Global Section Table
|
|
||||||
SectionTableAddr = &__data_section_table;
|
|
||||||
|
|
||||||
// Copy the data sections from flash to SRAM.
|
|
||||||
while (SectionTableAddr < &__data_section_table_end) {
|
|
||||||
LoadAddr = *SectionTableAddr++;
|
|
||||||
ExeAddr = *SectionTableAddr++;
|
|
||||||
SectionLen = *SectionTableAddr++;
|
|
||||||
data_init(LoadAddr, ExeAddr, SectionLen);
|
|
||||||
}
|
|
||||||
// At this point, SectionTableAddr = &__bss_section_table;
|
|
||||||
// Zero fill the bss segment
|
|
||||||
while (SectionTableAddr < &__bss_section_table_end) {
|
|
||||||
ExeAddr = *SectionTableAddr++;
|
|
||||||
SectionLen = *SectionTableAddr++;
|
|
||||||
bss_init(ExeAddr, SectionLen);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined (__VFP_FP__) && !defined (__SOFTFP__)
|
|
||||||
/*
|
|
||||||
* Code to enable the Cortex-M4 FPU only included
|
|
||||||
* if appropriate build options have been selected.
|
|
||||||
* Code taken from Section 7.1, Cortex-M4 TRM (DDI0439C)
|
|
||||||
*/
|
|
||||||
// Read CPACR (located at address 0xE000ED88)
|
|
||||||
// Set bits 20-23 to enable CP10 and CP11 coprocessors
|
|
||||||
// Write back the modified value to the CPACR
|
|
||||||
asm volatile ("LDR.W R0, =0xE000ED88\n\t"
|
|
||||||
"LDR R1, [R0]\n\t"
|
|
||||||
"ORR R1, R1, #(0xF << 20)\n\t"
|
|
||||||
"STR R1, [R0]");
|
|
||||||
#endif // (__VFP_FP__) && !(__SOFTFP__)
|
|
||||||
|
|
||||||
// Check to see if we are running the code from a non-zero
|
|
||||||
// address (eg RAM, external flash), in which case we need
|
|
||||||
// to modify the VTOR register to tell the CPU that the
|
|
||||||
// vector table is located at a non-0x0 address.
|
|
||||||
|
|
||||||
// Note that we do not use the CMSIS register access mechanism,
|
|
||||||
// as there is no guarantee that the project has been configured
|
|
||||||
// to use CMSIS.
|
|
||||||
unsigned int * pSCB_VTOR = (unsigned int *) 0xE000ED08;
|
|
||||||
if ((unsigned int *)g_pfnVectors!=(unsigned int *) 0x00000000) {
|
|
||||||
// CMSIS : SCB->VTOR = <address of vector table>
|
|
||||||
*pSCB_VTOR = (unsigned int)g_pfnVectors;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined (__USE_CMSIS) || defined (__USE_LPCOPEN)
|
|
||||||
SystemInit();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined (__cplusplus)
|
|
||||||
//
|
|
||||||
// Call C++ library initialisation
|
|
||||||
//
|
|
||||||
__libc_init_array();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined (__REDLIB__)
|
|
||||||
// Call the Redlib library, which in turn calls main()
|
|
||||||
__main() ;
|
|
||||||
#else
|
|
||||||
main();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
|
||||||
// main() shouldn't return, but if it does, we'll just enter an infinite loop
|
|
||||||
//
|
|
||||||
while (1) {
|
|
||||||
;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
// Default exception handlers. Override the ones here by defining your own
|
|
||||||
// handler routines in your application code.
|
|
||||||
//*****************************************************************************
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void NMI_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void HardFault_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void MemManage_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void BusFault_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void UsageFault_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void SVC_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void DebugMon_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void PendSV_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void SysTick_Handler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
//*****************************************************************************
|
|
||||||
//
|
|
||||||
// Processor ends up here if an unexpected interrupt occurs or a specific
|
|
||||||
// handler is not present in the application code.
|
|
||||||
//
|
|
||||||
//*****************************************************************************
|
|
||||||
__attribute__ ((section(".after_vectors")))
|
|
||||||
void IntDefaultHandler(void)
|
|
||||||
{ while(1) {}
|
|
||||||
}
|
|
||||||
@@ -1,190 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
|
||||||
* All rights reserved
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "mongoose.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include "lwip/dhcp.h"
|
|
||||||
#include "lwip/init.h"
|
|
||||||
#include "lwip/netif.h"
|
|
||||||
#include "lwip/raw.h"
|
|
||||||
#include "lwip/timers.h"
|
|
||||||
#include "netif/etharp.h"
|
|
||||||
|
|
||||||
#include "board.h"
|
|
||||||
#include "lpc_phy.h"
|
|
||||||
#include "arch/lpc17xx_40xx_emac.h"
|
|
||||||
#include "arch/lpc_arch.h"
|
|
||||||
|
|
||||||
/* IP address configuration. */
|
|
||||||
#define USE_DHCP 1 /* For static IP, set to 0 and configure options below */
|
|
||||||
#if !USE_DHCP
|
|
||||||
#define STATIC_IP "192.168.0.111"
|
|
||||||
#define STATIC_NM "255.255.255.0"
|
|
||||||
#define STATIC_GW "192.168.0.1"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|
||||||
if (ev == MG_EV_POLL) return;
|
|
||||||
/* printf("ev %d\r\n", ev); */
|
|
||||||
switch (ev) {
|
|
||||||
case MG_EV_ACCEPT: {
|
|
||||||
char addr[32];
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
printf("%p: Connection from %s\r\n", nc, addr);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_HTTP_REQUEST: {
|
|
||||||
struct http_message *hm = (struct http_message *) ev_data;
|
|
||||||
char addr[32];
|
|
||||||
mg_sock_addr_to_str(&nc->sa, addr, sizeof(addr),
|
|
||||||
MG_SOCK_STRINGIFY_IP | MG_SOCK_STRINGIFY_PORT);
|
|
||||||
printf("%p: %.*s %.*s\r\n", nc, (int) hm->method.len, hm->method.p,
|
|
||||||
(int) hm->uri.len, hm->uri.p);
|
|
||||||
mg_send_response_line(nc, 200,
|
|
||||||
"Content-Type: text/html\r\n"
|
|
||||||
"Connection: close");
|
|
||||||
mg_printf(nc,
|
|
||||||
"\r\n<h1>Hello, %s!</h1>\r\n"
|
|
||||||
"You asked for %.*s\r\n",
|
|
||||||
addr, (int) hm->uri.len, hm->uri.p);
|
|
||||||
nc->flags |= MG_F_SEND_AND_CLOSE;
|
|
||||||
Board_LED_Toggle(2);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case MG_EV_CLOSE: {
|
|
||||||
printf("%p: Connection closed\r\n", nc);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void handle_eth(struct netif *eth_if) {
|
|
||||||
/* PHY link status. */
|
|
||||||
uint32_t status = lpcPHYStsPoll();
|
|
||||||
|
|
||||||
if (status & PHY_LINK_CHANGED) {
|
|
||||||
if (status & PHY_LINK_CONNECTED) {
|
|
||||||
Board_LED_Set(0, true);
|
|
||||||
|
|
||||||
if (status & PHY_LINK_SPEED100) {
|
|
||||||
Chip_ENET_Set100Mbps(LPC_ETHERNET);
|
|
||||||
} else {
|
|
||||||
Chip_ENET_Set10Mbps(LPC_ETHERNET);
|
|
||||||
}
|
|
||||||
if (status & PHY_LINK_FULLDUPLX) {
|
|
||||||
Chip_ENET_SetFullDuplex(LPC_ETHERNET);
|
|
||||||
} else {
|
|
||||||
Chip_ENET_SetHalfDuplex(LPC_ETHERNET);
|
|
||||||
}
|
|
||||||
|
|
||||||
netif_set_link_up(eth_if);
|
|
||||||
printf("Link up\r\n");
|
|
||||||
} else {
|
|
||||||
Board_LED_Set(0, false);
|
|
||||||
netif_set_link_down(eth_if);
|
|
||||||
printf("Link down\r\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Board_LED_Set(1, (eth_if->dhcp->state == DHCP_BOUND));
|
|
||||||
|
|
||||||
/* Handle packets as part of this loop, not in the IRQ handler */
|
|
||||||
lpc_enetif_input(eth_if);
|
|
||||||
|
|
||||||
/* Free TX buffers that are done sending */
|
|
||||||
lpc_tx_reclaim(eth_if);
|
|
||||||
}
|
|
||||||
|
|
||||||
int gettimeofday(struct timeval *tv, void *tzvp) {
|
|
||||||
tv->tv_sec = time(NULL);
|
|
||||||
tv->tv_usec = 0;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This is a callback invoked by Mongoose to signal that a poll is needed soon.
|
|
||||||
* Since we're in a tight polling loop anyway (see below), we don't need to do
|
|
||||||
* anything.
|
|
||||||
*/
|
|
||||||
void mg_lwip_mgr_schedule_poll(struct mg_mgr *mgr) {
|
|
||||||
}
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
struct netif eth0;
|
|
||||||
|
|
||||||
SystemCoreClockUpdate();
|
|
||||||
Board_Init();
|
|
||||||
SysTick_Enable(1);
|
|
||||||
|
|
||||||
lwip_init();
|
|
||||||
|
|
||||||
Board_LED_Set(0, false); /* Link state */
|
|
||||||
Board_LED_Set(1, false); /* DHCP state */
|
|
||||||
Board_LED_Set(2, false); /* HTTP request activity indicator */
|
|
||||||
Board_LED_Set(3, false); /* Error indicator */
|
|
||||||
|
|
||||||
#if USE_DHCP
|
|
||||||
netif_add(ð0, NULL, NULL, NULL, NULL, lpc_enetif_init, ethernet_input);
|
|
||||||
printf("Waiting for DHCP...\r\n");
|
|
||||||
dhcp_start(ð0);
|
|
||||||
u8_t os = 0xff, ds;
|
|
||||||
do {
|
|
||||||
ds = eth0.dhcp->state;
|
|
||||||
if (ds != os) {
|
|
||||||
printf(" DHCP state: %d\r\n", ds);
|
|
||||||
os = ds;
|
|
||||||
}
|
|
||||||
handle_eth(ð0);
|
|
||||||
sys_check_timeouts();
|
|
||||||
} while (ds != DHCP_BOUND);
|
|
||||||
printf("DHCP bound.\r\n");
|
|
||||||
#else
|
|
||||||
ip_addr_t ip, nm, gw;
|
|
||||||
if (!ipaddr_aton(STATIC_IP, &ip) || !ipaddr_aton(STATIC_NM, &nm) ||
|
|
||||||
!ipaddr_aton(STATIC_GW, &gw)) {
|
|
||||||
printf("Invalid static IP configuration.\r\n");
|
|
||||||
Board_LED_Set(3, true);
|
|
||||||
return 1;
|
|
||||||
} else {
|
|
||||||
netif_add(ð0, &ip, &nm, &gw, NULL, lpc_enetif_init, ethernet_input);
|
|
||||||
netif_set_up(ð0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
netif_set_default(ð0);
|
|
||||||
printf("Setting up HTTP server...\r\n");
|
|
||||||
|
|
||||||
struct mg_mgr mgr;
|
|
||||||
mg_mgr_init(&mgr, NULL);
|
|
||||||
|
|
||||||
const char *err;
|
|
||||||
struct mg_bind_opts opts = {};
|
|
||||||
opts.error_string = &err;
|
|
||||||
struct mg_connection *nc = mg_bind_opt(&mgr, "80", ev_handler, opts);
|
|
||||||
if (nc == NULL) {
|
|
||||||
printf("Failed to create listener: %s\r\n", err);
|
|
||||||
Board_LED_Set(3, true);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
mg_set_protocol_http_websocket(nc);
|
|
||||||
printf("Server address: http://%s/\r\n", ipaddr_ntoa(ð0.ip_addr));
|
|
||||||
|
|
||||||
while (1) {
|
|
||||||
/* Ethernet link status, low level input. */
|
|
||||||
handle_eth(ð0);
|
|
||||||
|
|
||||||
/* LWIP timers - ARP, DHCP, TCP, etc. */
|
|
||||||
sys_check_timeouts();
|
|
||||||
|
|
||||||
/* Mongoose poll */
|
|
||||||
mg_mgr_poll(&mgr, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
/* clang-format off */
|
|
||||||
/*
|
|
||||||
* @brief Common SystemInit function for LPC17xx/40xx chips
|
|
||||||
*
|
|
||||||
* @note
|
|
||||||
* Copyright(C) NXP Semiconductors, 2013
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* @par
|
|
||||||
* Software that is described herein is for illustrative purposes only
|
|
||||||
* which provides customers with programming information regarding the
|
|
||||||
* LPC products. This software is supplied "AS IS" without any warranties of
|
|
||||||
* any kind, and NXP Semiconductors and its licensor disclaim any and
|
|
||||||
* all warranties, express or implied, including all implied warranties of
|
|
||||||
* merchantability, fitness for a particular purpose and non-infringement of
|
|
||||||
* intellectual property rights. NXP Semiconductors assumes no responsibility
|
|
||||||
* or liability for the use of the software, conveys no license or rights under any
|
|
||||||
* patent, copyright, mask work right, or any other intellectual property rights in
|
|
||||||
* or to any products. NXP Semiconductors reserves the right to make changes
|
|
||||||
* in the software without notification. NXP Semiconductors also makes no
|
|
||||||
* representation or warranty that such application will be suitable for the
|
|
||||||
* specified use without further testing or modification.
|
|
||||||
*
|
|
||||||
* @par
|
|
||||||
* Permission to use, copy, modify, and distribute this software and its
|
|
||||||
* documentation is hereby granted, under NXP Semiconductors' and its
|
|
||||||
* licensor's relevant copyrights in the software, without fee, provided that it
|
|
||||||
* is used in conjunction with NXP Semiconductors microcontrollers. This
|
|
||||||
* copyright, permission, and disclaimer notice must appear in all copies of
|
|
||||||
* this code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "board.h"
|
|
||||||
|
|
||||||
/*****************************************************************************
|
|
||||||
* Private types/enumerations/variables
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/*****************************************************************************
|
|
||||||
* Public types/enumerations/variables
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/*****************************************************************************
|
|
||||||
* Private functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/*****************************************************************************
|
|
||||||
* Public functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/* Set up and initialize hardware prior to call to main */
|
|
||||||
void SystemInit(void)
|
|
||||||
{
|
|
||||||
unsigned int *pSCB_VTOR = (unsigned int *) 0xE000ED08;
|
|
||||||
|
|
||||||
#if defined(__IAR_SYSTEMS_ICC__)
|
|
||||||
extern void *__vector_table;
|
|
||||||
|
|
||||||
*pSCB_VTOR = (unsigned int) &__vector_table;
|
|
||||||
#elif defined(__CODE_RED)
|
|
||||||
extern void *g_pfnVectors;
|
|
||||||
|
|
||||||
*pSCB_VTOR = (unsigned int) &g_pfnVectors;
|
|
||||||
#elif defined(__ARMCC_VERSION)
|
|
||||||
extern void *__Vectors;
|
|
||||||
|
|
||||||
*pSCB_VTOR = (unsigned int) &__Vectors;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__FPU_PRESENT) && __FPU_PRESENT == 1
|
|
||||||
fpuInit();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(NO_BOARD_LIB)
|
|
||||||
/* Chip specific SystemInit */
|
|
||||||
Chip_SystemInit();
|
|
||||||
#else
|
|
||||||
/* Setup system clocking and muxing */
|
|
||||||
Board_SystemInit();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
Mongoose Web Server example without an RTOS
|
|
||||||
===========================================
|
|
||||||
|
|
||||||
This project sets up a simple Web server using the Mongoose Web Server and
|
|
||||||
Networking library.
|
|
||||||
|
|
||||||
This project is based on the [LPC4088 QuickStart Board](https://www.embeddedartists.com/products/boards/lpc4088_qsb.php) from Embedded Artists.
|
|
||||||
|
|
||||||
Please download the [modified LPCOpen SDK](https://www.embeddedartists.com/sites/default/files/support/qsb/lpc4088/lpcopen_2_10_lpcxpresso_arm_university_4088qsb.zip)
|
|
||||||
and unpack it into the `LPCOpen_QSB` directory.
|
|
||||||
|
|
||||||
This project depends on `lpc_chip_40xx` and `lpc_board_ea_devkit_4088` (for drivers)
|
|
||||||
and the `webserver` example project (for LWIP). Please import them along with this project.
|
|
||||||
|
|
||||||
By default, the project uses DHCP to obtain an IP address.
|
|
||||||
If you want to configure a static IP address, please edit the settings at the top of `example/src/main.c`.
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
#
|
|
||||||
# There exist several targets which are by default empty and which can be
|
|
||||||
# used for execution of your targets. These targets are usually executed
|
|
||||||
# before and after some main targets. They are:
|
|
||||||
#
|
|
||||||
# .build-pre: called before 'build' target
|
|
||||||
# .build-post: called after 'build' target
|
|
||||||
# .clean-pre: called before 'clean' target
|
|
||||||
# .clean-post: called after 'clean' target
|
|
||||||
# .clobber-pre: called before 'clobber' target
|
|
||||||
# .clobber-post: called after 'clobber' target
|
|
||||||
# .all-pre: called before 'all' target
|
|
||||||
# .all-post: called after 'all' target
|
|
||||||
# .help-pre: called before 'help' target
|
|
||||||
# .help-post: called after 'help' target
|
|
||||||
#
|
|
||||||
# Targets beginning with '.' are not intended to be called on their own.
|
|
||||||
#
|
|
||||||
# Main targets can be executed directly, and they are:
|
|
||||||
#
|
|
||||||
# build build a specific configuration
|
|
||||||
# clean remove built files from a configuration
|
|
||||||
# clobber remove all built files
|
|
||||||
# all build all configurations
|
|
||||||
# help print help mesage
|
|
||||||
#
|
|
||||||
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
|
|
||||||
# .help-impl are implemented in nbproject/makefile-impl.mk.
|
|
||||||
#
|
|
||||||
# Available make variables:
|
|
||||||
#
|
|
||||||
# CND_BASEDIR base directory for relative paths
|
|
||||||
# CND_DISTDIR default top distribution directory (build artifacts)
|
|
||||||
# CND_BUILDDIR default top build directory (object files, ...)
|
|
||||||
# CONF name of current configuration
|
|
||||||
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
|
|
||||||
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
|
|
||||||
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
|
|
||||||
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
|
|
||||||
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
|
|
||||||
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
|
|
||||||
#
|
|
||||||
# NOCDDL
|
|
||||||
|
|
||||||
|
|
||||||
# Environment
|
|
||||||
MKDIR=mkdir
|
|
||||||
CP=cp
|
|
||||||
CCADMIN=CCadmin
|
|
||||||
RANLIB=ranlib
|
|
||||||
|
|
||||||
|
|
||||||
# build
|
|
||||||
build: .build-post
|
|
||||||
|
|
||||||
.build-pre:
|
|
||||||
# Add your pre 'build' code here...
|
|
||||||
|
|
||||||
.build-post: .build-impl
|
|
||||||
# Add your post 'build' code here...
|
|
||||||
|
|
||||||
|
|
||||||
# clean
|
|
||||||
clean: .clean-post
|
|
||||||
|
|
||||||
.clean-pre:
|
|
||||||
# Add your pre 'clean' code here...
|
|
||||||
# WARNING: the IDE does not call this target since it takes a long time to
|
|
||||||
# simply run make. Instead, the IDE removes the configuration directories
|
|
||||||
# under build and dist directly without calling make.
|
|
||||||
# This target is left here so people can do a clean when running a clean
|
|
||||||
# outside the IDE.
|
|
||||||
|
|
||||||
.clean-post: .clean-impl
|
|
||||||
# Add your post 'clean' code here...
|
|
||||||
|
|
||||||
|
|
||||||
# clobber
|
|
||||||
clobber: .clobber-post
|
|
||||||
|
|
||||||
.clobber-pre:
|
|
||||||
# Add your pre 'clobber' code here...
|
|
||||||
|
|
||||||
.clobber-post: .clobber-impl
|
|
||||||
# Add your post 'clobber' code here...
|
|
||||||
|
|
||||||
|
|
||||||
# all
|
|
||||||
all: .all-post
|
|
||||||
|
|
||||||
.all-pre:
|
|
||||||
# Add your pre 'all' code here...
|
|
||||||
|
|
||||||
.all-post: .all-impl
|
|
||||||
# Add your post 'all' code here...
|
|
||||||
|
|
||||||
|
|
||||||
# help
|
|
||||||
help: .help-post
|
|
||||||
|
|
||||||
.help-pre:
|
|
||||||
# Add your pre 'help' code here...
|
|
||||||
|
|
||||||
.help-post: .help-impl
|
|
||||||
# Add your post 'help' code here...
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# include project implementation makefile
|
|
||||||
include nbproject/Makefile-impl.mk
|
|
||||||
|
|
||||||
# include project make variables
|
|
||||||
include nbproject/Makefile-variables.mk
|
|
||||||
-9
@@ -1,9 +0,0 @@
|
|||||||
#
|
|
||||||
#Wed Oct 26 16:05:10 EEST 2016
|
|
||||||
pic32mx_eth_sk2_encx24j600.languagetoolchain.dir=/opt/microchip/xc32/v1.42/bin
|
|
||||||
pic32mx_eth_sk2_encx24j600.com-microchip-mplab-nbide-toolchainXC32-XC32LanguageToolchain.md5=7787462309de955deefcc6f5508f88a9
|
|
||||||
pic32mx_eth_sk2_encx24j600.languagetoolchain.version=1.42
|
|
||||||
configurations-xml=2f70242829ecb692b68d01a3f7c4e1e7
|
|
||||||
com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=02b44c60b7ea0aab28d65f169487b894
|
|
||||||
host.platform=linux
|
|
||||||
conf.ids=pic32mx_eth_sk2_encx24j600
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
#
|
|
||||||
# Generated Makefile - do not edit!
|
|
||||||
#
|
|
||||||
# Edit the Makefile in the project folder instead (../Makefile). Each target
|
|
||||||
# has a pre- and a post- target defined where you can add customization code.
|
|
||||||
#
|
|
||||||
# This makefile implements macros and targets common to all configurations.
|
|
||||||
#
|
|
||||||
# NOCDDL
|
|
||||||
|
|
||||||
|
|
||||||
# Building and Cleaning subprojects are done by default, but can be controlled with the SUB
|
|
||||||
# macro. If SUB=no, subprojects will not be built or cleaned. The following macro
|
|
||||||
# statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf
|
|
||||||
# and .clean-reqprojects-conf unless SUB has the value 'no'
|
|
||||||
SUB_no=NO
|
|
||||||
SUBPROJECTS=${SUB_${SUB}}
|
|
||||||
BUILD_SUBPROJECTS_=.build-subprojects
|
|
||||||
BUILD_SUBPROJECTS_NO=
|
|
||||||
BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}}
|
|
||||||
CLEAN_SUBPROJECTS_=.clean-subprojects
|
|
||||||
CLEAN_SUBPROJECTS_NO=
|
|
||||||
CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}}
|
|
||||||
|
|
||||||
|
|
||||||
# Project Name
|
|
||||||
PROJECTNAME=http_server.X
|
|
||||||
|
|
||||||
# Active Configuration
|
|
||||||
DEFAULTCONF=pic32mx_eth_sk2_encx24j600
|
|
||||||
CONF=${DEFAULTCONF}
|
|
||||||
|
|
||||||
# All Configurations
|
|
||||||
ALLCONFS=pic32mx_eth_sk2_encx24j600
|
|
||||||
|
|
||||||
|
|
||||||
# build
|
|
||||||
.build-impl: .build-pre
|
|
||||||
${MAKE} -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-conf
|
|
||||||
|
|
||||||
|
|
||||||
# clean
|
|
||||||
.clean-impl: .clean-pre
|
|
||||||
${MAKE} -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .clean-conf
|
|
||||||
|
|
||||||
# clobber
|
|
||||||
.clobber-impl: .clobber-pre .depcheck-impl
|
|
||||||
${MAKE} SUBPROJECTS=${SUBPROJECTS} CONF=pic32mx_eth_sk2_encx24j600 clean
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# all
|
|
||||||
.all-impl: .all-pre .depcheck-impl
|
|
||||||
${MAKE} SUBPROJECTS=${SUBPROJECTS} CONF=pic32mx_eth_sk2_encx24j600 build
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# dependency checking support
|
|
||||||
.depcheck-impl:
|
|
||||||
# @echo "# This code depends on make tool being used" >.dep.inc
|
|
||||||
# @if [ -n "${MAKE_VERSION}" ]; then \
|
|
||||||
# echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES}))" >>.dep.inc; \
|
|
||||||
# echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \
|
|
||||||
# echo "include \$${DEPFILES}" >>.dep.inc; \
|
|
||||||
# echo "endif" >>.dep.inc; \
|
|
||||||
# else \
|
|
||||||
# echo ".KEEP_STATE:" >>.dep.inc; \
|
|
||||||
# echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \
|
|
||||||
# fi
|
|
||||||
-36
@@ -1,36 +0,0 @@
|
|||||||
#
|
|
||||||
# Generated Makefile - do not edit!
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# This file contains information about the location of compilers and other tools.
|
|
||||||
# If you commmit this file into your revision control server, you will be able to
|
|
||||||
# to checkout the project and build it from the command line with make. However,
|
|
||||||
# if more than one person works on the same project, then this file might show
|
|
||||||
# conflicts since different users are bound to have compilers in different places.
|
|
||||||
# In that case you might choose to not commit this file and let MPLAB X recreate this file
|
|
||||||
# for each user. The disadvantage of not commiting this file is that you must run MPLAB X at
|
|
||||||
# least once so the file gets created and the project can be built. Finally, you can also
|
|
||||||
# avoid using this file at all if you are only building from the command line with make.
|
|
||||||
# You can invoke make with the values of the macros:
|
|
||||||
# $ makeMP_CC="/opt/microchip/mplabc30/v3.30c/bin/pic30-gcc" ...
|
|
||||||
#
|
|
||||||
PATH_TO_IDE_BIN=/opt/microchip/mplabx/v3.40/mplab_ide/platform/../mplab_ide/modules/../../bin/
|
|
||||||
# Adding MPLAB X bin directory to path.
|
|
||||||
PATH:=/opt/microchip/mplabx/v3.40/mplab_ide/platform/../mplab_ide/modules/../../bin/:$(PATH)
|
|
||||||
# Path to java used to run MPLAB X when this makefile was created
|
|
||||||
MP_JAVA_PATH="/opt/microchip/mplabx/v3.40/sys/java/jre1.8.0_91/bin/"
|
|
||||||
OS_CURRENT="$(shell uname -s)"
|
|
||||||
MP_CC="/opt/microchip/xc32/v1.42/bin/xc32-gcc"
|
|
||||||
MP_CPPC="/opt/microchip/xc32/v1.42/bin/xc32-g++"
|
|
||||||
# MP_BC is not defined
|
|
||||||
MP_AS="/opt/microchip/xc32/v1.42/bin/xc32-as"
|
|
||||||
MP_LD="/opt/microchip/xc32/v1.42/bin/xc32-ld"
|
|
||||||
MP_AR="/opt/microchip/xc32/v1.42/bin/xc32-ar"
|
|
||||||
DEP_GEN=${MP_JAVA_PATH}java -jar "/opt/microchip/mplabx/v3.40/mplab_ide/platform/../mplab_ide/modules/../../bin/extractobjectdependencies.jar"
|
|
||||||
MP_CC_DIR="/opt/microchip/xc32/v1.42/bin"
|
|
||||||
MP_CPPC_DIR="/opt/microchip/xc32/v1.42/bin"
|
|
||||||
# MP_BC_DIR is not defined
|
|
||||||
MP_AS_DIR="/opt/microchip/xc32/v1.42/bin"
|
|
||||||
MP_LD_DIR="/opt/microchip/xc32/v1.42/bin"
|
|
||||||
MP_AR_DIR="/opt/microchip/xc32/v1.42/bin"
|
|
||||||
# MP_BC_DIR is not defined
|
|
||||||
-1011
File diff suppressed because it is too large.
Load diff
@@ -1,13 +0,0 @@
|
|||||||
#
|
|
||||||
# Generated - do not edit!
|
|
||||||
#
|
|
||||||
# NOCDDL
|
|
||||||
#
|
|
||||||
CND_BASEDIR=`pwd`
|
|
||||||
# pic32mx_eth_sk2_encx24j600 configuration
|
|
||||||
CND_ARTIFACT_DIR_pic32mx_eth_sk2_encx24j600=dist/pic32mx_eth_sk2_encx24j600/production
|
|
||||||
CND_ARTIFACT_NAME_pic32mx_eth_sk2_encx24j600=http_server.X.production.hex
|
|
||||||
CND_ARTIFACT_PATH_pic32mx_eth_sk2_encx24j600=dist/pic32mx_eth_sk2_encx24j600/production/http_server.X.production.hex
|
|
||||||
CND_PACKAGE_DIR_pic32mx_eth_sk2_encx24j600=${CND_DISTDIR}/pic32mx_eth_sk2_encx24j600/package
|
|
||||||
CND_PACKAGE_NAME_pic32mx_eth_sk2_encx24j600=httpserver.x.tar
|
|
||||||
CND_PACKAGE_PATH_pic32mx_eth_sk2_encx24j600=${CND_DISTDIR}/pic32mx_eth_sk2_encx24j600/package/httpserver.x.tar
|
|
||||||
-73
@@ -1,73 +0,0 @@
|
|||||||
#!/bin/bash -x
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generated - do not edit!
|
|
||||||
#
|
|
||||||
|
|
||||||
# Macros
|
|
||||||
TOP=`pwd`
|
|
||||||
CND_CONF=pic32mx_eth_sk2_encx24j600
|
|
||||||
CND_DISTDIR=dist
|
|
||||||
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
|
|
||||||
TMPDIRNAME=tmp-packaging
|
|
||||||
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/http_server.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
|
|
||||||
OUTPUT_BASENAME=http_server.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
|
|
||||||
PACKAGE_TOP_DIR=httpserver.x/
|
|
||||||
|
|
||||||
# Functions
|
|
||||||
function checkReturnCode
|
|
||||||
{
|
|
||||||
rc=$?
|
|
||||||
if [ $rc != 0 ]
|
|
||||||
then
|
|
||||||
exit $rc
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
function makeDirectory
|
|
||||||
# $1 directory path
|
|
||||||
# $2 permission (optional)
|
|
||||||
{
|
|
||||||
mkdir -p "$1"
|
|
||||||
checkReturnCode
|
|
||||||
if [ "$2" != "" ]
|
|
||||||
then
|
|
||||||
chmod $2 "$1"
|
|
||||||
checkReturnCode
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
function copyFileToTmpDir
|
|
||||||
# $1 from-file path
|
|
||||||
# $2 to-file path
|
|
||||||
# $3 permission
|
|
||||||
{
|
|
||||||
cp "$1" "$2"
|
|
||||||
checkReturnCode
|
|
||||||
if [ "$3" != "" ]
|
|
||||||
then
|
|
||||||
chmod $3 "$2"
|
|
||||||
checkReturnCode
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup
|
|
||||||
cd "${TOP}"
|
|
||||||
mkdir -p ${CND_DISTDIR}/${CND_CONF}/package
|
|
||||||
rm -rf ${TMPDIR}
|
|
||||||
mkdir -p ${TMPDIR}
|
|
||||||
|
|
||||||
# Copy files and create directories and links
|
|
||||||
cd "${TOP}"
|
|
||||||
makeDirectory ${TMPDIR}/httpserver.x/bin
|
|
||||||
copyFileToTmpDir "${OUTPUT_PATH}" "${TMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755
|
|
||||||
|
|
||||||
|
|
||||||
# Generate tar file
|
|
||||||
cd "${TOP}"
|
|
||||||
rm -f ${CND_DISTDIR}/${CND_CONF}/package/httpserver.x.tar
|
|
||||||
cd ${TMPDIR}
|
|
||||||
tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/package/httpserver.x.tar *
|
|
||||||
checkReturnCode
|
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
cd "${TOP}"
|
|
||||||
rm -rf ${TMPDIR}
|
|
||||||
Loaded 100 of 352 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user