Merge pull request #2707 from cesanta/mgcfg

Rename mongoose_custom as mongoose_config
This commit is contained in:
Sergey Lyubka 2024-04-16 22:07:13 +01:00 committed by GitHub
commit e93d18d200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
123 changed files with 176 additions and 136 deletions

View File

@ -197,10 +197,12 @@ mongoose.h: $(HDRS) Makefile
(cat src/license.h; echo; echo '#ifndef MONGOOSE_H'; echo '#define MONGOOSE_H'; echo; cat src/version.h ; echo; echo '#ifdef __cplusplus'; echo 'extern "C" {'; echo '#endif'; cat src/arch.h src/arch_*.h src/net_ft.h src/net_lwip.h src/net_rl.h src/config.h src/str.h src/queue.h src/fmt.h src/printf.h src/log.h src/timer.h src/fs.h src/util.h src/url.h src/iobuf.h src/base64.h src/md5.h src/sha1.h src/sha256.h src/tls_x25519.h src/tls_aes128.h src/tls_uecc.h src/event.h src/net.h src/http.h src/ssi.h src/tls.h src/tls_mbed.h src/tls_openssl.h src/ws.h src/sntp.h src/mqtt.h src/dns.h src/json.h src/rpc.h src/ota.h src/device.h src/net_builtin.h src/profile.h src/drivers/*.h | sed -e '/keep/! s,#include ".*,,' -e 's,^#pragma once,,'; echo; echo '#ifdef __cplusplus'; echo '}'; echo '#endif'; echo '#endif // MONGOOSE_H')> $@
clean: clean_examples clean_embedded
clean: clean_examples clean_examples_embedded
rm -rf $(PROG) *.exe *.o *.dSYM *_test* ut fuzzer *.gcov *.gcno *.gcda *.obj *.exe *.ilk *.pdb slow-unit* _CL_* infer-out data.txt crash-* test/packed_fs.c pack
#find examples -maxdepth 3 -name zephyr -prune -o -name Makefile -print | xargs dirname | xargs -n1 make clean -C
clean_embedded:
examples_embedded:
@for X in $(EXAMPLES_EMBEDDED); do test -f $$X/Makefile || continue; $(MAKE) -C $$X build || exit 1; done
clean_examples_embedded:
for X in $(EXAMPLES_EMBEDDED); do test -f $$X/Makefile || continue; $(MAKE) -C $$X clean || exit 1; done

View File

@ -11,7 +11,7 @@ SOURCES = main.c syscalls.c sysinit.c
SOURCES += cmsis_mcu/devices/MIMXRT1021/gcc/startup_MIMXRT1021.S # NXP startup file. Compiler-dependent!
CFLAGS += -D__ATOLLIC__ -D__STARTUP_CLEAR_BSS # Make startup code work as expected
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -17,7 +17,7 @@ SOURCES += FreeRTOS-Kernel/portable/GCC/ARM_CM4F/port.c
CFLAGS += -IFreeRTOS-Kernel/include
CFLAGS += -IFreeRTOS-Kernel/portable/GCC/ARM_CM4F -Wno-conversion
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md
@ -38,7 +38,7 @@ ram: firmware.bin
firmware.bin: firmware.elf
arm-none-eabi-objcopy -O binary $< $@
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_mcu $(SOURCES) hal.h link_ram.ld link.ld mongoose_custom.h
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_mcu $(SOURCES) hal.h link_ram.ld link.ld mongoose_config.h
arm-none-eabi-gcc $(SOURCES) $(wildcard FreeRTOS-Kernel/*.c) $(CFLAGS) $(LDFLAGS) -o $@
flash: firmware.bin

View File

@ -11,7 +11,7 @@ SOURCES = main.c syscalls.c sysinit.c
SOURCES += cmsis_mcu/devices/MIMXRT1062/gcc/startup_MIMXRT1062.S # NXP startup file. Compiler-dependent!
CFLAGS += -D__ATOLLIC__ -D__STARTUP_CLEAR_BSS # Make startup code work as expected
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -17,7 +17,7 @@ SOURCES += FreeRTOS-Kernel/portable/GCC/ARM_CM4F/port.c
CFLAGS += -IFreeRTOS-Kernel/include
CFLAGS += -IFreeRTOS-Kernel/portable/GCC/ARM_CM4F -Wno-conversion
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md
@ -38,7 +38,7 @@ ram: firmware.bin
firmware.bin: firmware.elf
arm-none-eabi-objcopy -O binary $< $@
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_mcu $(SOURCES) hal.h link_ram.ld link.ld mongoose_custom.h
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_mcu $(SOURCES) hal.h link_ram.ld link.ld mongoose_config.h
arm-none-eabi-gcc $(SOURCES) $(wildcard FreeRTOS-Kernel/*.c) $(CFLAGS) $(LDFLAGS) -o $@
flash: firmware.bin

View File

@ -13,7 +13,7 @@ SOURCES += cmsis_mcu/devices/MIMXRT1176/gcc/startup_MIMXRT1176_cm7.S # NXP start
SOURCES += cmsis_mcu/devices/MIMXRT1176/drivers/fsl_clock.c cmsis_mcu/devices/MIMXRT1176/drivers/fsl_anatop_ai.c cmsis_mcu/devices/MIMXRT1176/drivers/fsl_pmu.c cmsis_mcu/devices/MIMXRT1176/drivers/fsl_dcdc.c cmsis_mcu/devices/MIMXRT1176/drivers/fsl_common_arm.c # NXP support files
CFLAGS += -D__ATOLLIC__ -D__STARTUP_CLEAR_BSS # Make startup code work as expected
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -3641,7 +3641,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -533,8 +533,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -859,9 +859,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3641,7 +3641,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -521,8 +521,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -862,9 +862,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -22,7 +22,7 @@ CFLAGS += -Itinyusb/src -Itinyusb/lib/networking
CFLAGS += -DSTM32F429xx
CFLAGS += -Wno-conversion -Wno-sign-conversion
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c
ifeq ($(OS),Windows_NT)

View File

@ -8,7 +8,7 @@ LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nano.specs -lc -lgcc -Wl,--
SOURCES = main.c syscalls.c sysinit.c
SOURCES += cmsis_f4/Source/Templates/gcc/startup_stm32f429xx.s # ST startup file. Compiler-dependent!
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -14,7 +14,7 @@ SOURCES += FreeRTOS-Kernel/portable/GCC/ARM_CM4F/port.c
CFLAGS += -IFreeRTOS-Kernel/include
CFLAGS += -IFreeRTOS-Kernel/portable/GCC/ARM_CM4F -Wno-conversion
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -3641,7 +3641,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>C:\Users\scaprile\mongoose\examples\stm32\nucleo-f746zg-keil-baremetal\mongoose_custom.h</Name>
<Name>C:\Users\scaprile\mongoose\examples\stm32\nucleo-f746zg-keil-baremetal\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>15</CurrentLine>

View File

@ -3688,7 +3688,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -536,8 +536,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -868,9 +868,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3677,7 +3677,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -530,8 +530,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -424,9 +424,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -885,9 +885,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3659,7 +3659,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -550,8 +550,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -862,9 +862,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3688,7 +3688,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -536,8 +536,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -868,9 +868,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3648,7 +3648,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -492,8 +492,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -862,9 +862,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3704,7 +3704,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -506,8 +506,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -865,9 +865,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3650,7 +3650,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -496,8 +496,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -859,9 +859,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3668,7 +3668,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -516,8 +516,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -865,9 +865,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3695,7 +3695,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -502,8 +502,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -865,9 +865,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -3650,7 +3650,7 @@
<PaneID>0</PaneID>
</Doc>
<Doc>
<Name>.\mongoose_custom.h</Name>
<Name>.\mongoose_config.h</Name>
<ColumnNumber>0</ColumnNumber>
<TopLine>1</TopLine>
<CurrentLine>1</CurrentLine>

View File

@ -476,8 +476,8 @@
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\mongoose_custom.h</PathWithFileName>
<FilenameWithoutPath>mongoose_custom.h</FilenameWithoutPath>
<PathWithFileName>.\mongoose_config.h</PathWithFileName>
<FilenameWithoutPath>mongoose_config.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>

View File

@ -414,9 +414,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>
@ -859,9 +859,9 @@
<FilePath>.\mongoose.c</FilePath>
</File>
<File>
<FileName>mongoose_custom.h</FileName>
<FileName>mongoose_config.h</FileName>
<FileType>5</FileType>
<FilePath>.\mongoose_custom.h</FilePath>
<FilePath>.\mongoose_config.h</FilePath>
</File>
</Files>
</Group>

View File

@ -0,0 +1,22 @@
#pragma once
// See https://mongoose.ws/documentation/#build-options
#define MG_ARCH MG_ARCH_NEWLIB
#define MG_ENABLE_TCPIP 1
#define MG_ENABLE_CUSTOM_MILLIS 1
#define MG_ENABLE_CUSTOM_RANDOM 1
#define MG_ENABLE_PACKED_FS 1
#define MG_ENABLE_DRIVER_STM32F 1
#define MG_ENABLE_TCPIP_DRIVER_INIT 1
#define MG_ENABLE_LINES 1
#define MG_ENABLE_TCPIP_PRINT_DEBUG_STATS 1
#define MG_UUID ((uint8_t *) 0x1FF0F420U) // Unique 96-bit chip ID. TRM 41.1
#define MG_MAC_ADDRESS \
{ \
2, MG_UUID[0] ^ MG_UUID[1], MG_UUID[2] ^ MG_UUID[3], \
MG_UUID[4] ^ MG_UUID[5], MG_UUID[6] ^ MG_UUID[7] ^ MG_UUID[8], \
MG_UUID[9] ^ MG_UUID[10] ^ MG_UUID[11] \
}

View File

@ -25,7 +25,7 @@ SOURCES += cmsis_mcu/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.c # HAL
SOURCES += cmsis_mcu/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c
SOURCES += cmsis_mcu/Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s # ST startup file. Compiler-dependent!
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -22,7 +22,7 @@ CFLAGS += -Itinyusb/src -Itinyusb/lib/networking
CFLAGS += -DSTM32F746xx
CFLAGS += -Wno-conversion -Wno-sign-conversion
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c
ifeq ($(OS),Windows_NT)

View File

@ -8,7 +8,7 @@ LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nano.specs -lc -lgcc -Wl,--
SOURCES = main.c syscalls.c sysinit.c
SOURCES += cmsis_f7/Source/Templates/gcc/startup_stm32f746xx.s # ST startup file. Compiler-dependent!
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -14,7 +14,7 @@ SOURCES += FreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1/port.c
CFLAGS += -IFreeRTOS-Kernel/include
CFLAGS += -IFreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1 -Wno-conversion
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -28,7 +28,7 @@ CFLAGS += -DSTM32F7xx -Wno-unused-parameter
# HAL
CFLAGS += -DSTM32F746xx -Wno-sign-compare -Wno-undef -Wno-shadow -Wno-array-bounds -Wno-error
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -8,7 +8,7 @@ LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nano.specs -lc -lgcc -Wl,--
SOURCES = main.c syscalls.c
SOURCES += cmsis_g0/Source/Templates/gcc/startup_stm32g031xx.s # ST startup file. Compiler-dependent!
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c
# Example specific build options. See README.md
@ -25,7 +25,7 @@ all build example: firmware.bin
firmware.bin: firmware.elf
arm-none-eabi-objcopy -O binary $< $@
firmware.elf: cmsis_core cmsis_g0 $(SOURCES) hal.h link.ld Makefile mongoose_custom.h
firmware.elf: cmsis_core cmsis_g0 $(SOURCES) hal.h link.ld Makefile mongoose_config.h
arm-none-eabi-gcc $(SOURCES) $(CFLAGS) $(LDFLAGS) -o $@
flash: firmware.bin

View File

@ -8,7 +8,7 @@ LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nano.specs -lc -lgcc -Wl,--
SOURCES = main.c syscalls.c sysinit.c
SOURCES += cmsis_h5/Source/Templates/gcc/startup_stm32h563xx.s # ST startup file. Compiler-dependent!
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -15,7 +15,7 @@ SOURCES += FreeRTOS-Kernel/portable/GCC/ARM_CM33_NTZ/non_secure/portasm.c
CFLAGS += -IFreeRTOS-Kernel/include
CFLAGS += -IFreeRTOS-Kernel/portable/GCC/ARM_CM33_NTZ/non_secure -Wno-conversion -Wno-unused-parameter
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md
@ -32,7 +32,7 @@ all build example: firmware.bin
firmware.bin: firmware.elf
arm-none-eabi-objcopy -O binary $< $@
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_h5 $(SOURCES) hal.h link.ld mongoose_custom.h FreeRTOSConfig.h Makefile
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_h5 $(SOURCES) hal.h link.ld mongoose_config.h FreeRTOSConfig.h Makefile
arm-none-eabi-gcc $(SOURCES) $(wildcard FreeRTOS-Kernel/*.c) $(CFLAGS) $(LDFLAGS) -o $@
flash: firmware.bin

View File

@ -8,7 +8,7 @@ LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nano.specs -lc -lgcc -Wl,--
SOURCES = main.c syscalls.c sysinit.c
SOURCES += cmsis_h7/Source/Templates/gcc/startup_stm32h723xx.s # ST startup file. Compiler-dependent!
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md

View File

@ -14,7 +14,7 @@ SOURCES += FreeRTOS-Kernel/portable/GCC/ARM_CM4F/port.c
CFLAGS += -IFreeRTOS-Kernel/include
CFLAGS += -IFreeRTOS-Kernel/portable/GCC/ARM_CM4F -Wno-conversion
# Mongoose options are defined in mongoose_custom.h
# Mongoose options are defined in mongoose_config.h
SOURCES += mongoose.c net.c packed_fs.c
# Example specific build options. See README.md
@ -31,7 +31,7 @@ all build example: firmware.bin
firmware.bin: firmware.elf
arm-none-eabi-objcopy -O binary $< $@
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_h7 $(SOURCES) hal.h link.ld mongoose_custom.h
firmware.elf: FreeRTOS-Kernel cmsis_core cmsis_h7 $(SOURCES) hal.h link.ld mongoose_config.h
arm-none-eabi-gcc $(SOURCES) $(wildcard FreeRTOS-Kernel/*.c) $(CFLAGS) $(LDFLAGS) -o $@
flash: firmware.bin

Some files were not shown because too many files have changed in this diff Show More