Skip to content

Commit 6f6535e

Browse files
cjz-nanosoftCedric Jimenez
authored and
Cedric Jimenez
committed
Initial commit, see README for implmemented functionalities
1 parent 0ae0159 commit 6f6535e

File tree

649 files changed

+312482
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

649 files changed

+312482
-2
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.vs
2+
.settings
3+
**/obj
4+
**/lib
5+
**/bin
6+
**/Debug
7+
**/Release
8+
*.bak
9+
*.orig
10+
*.sdf
11+
*.opendb
12+
*.user
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"node":"r4","format":0,"expanded":true},{"node":"pc","format":0,"expanded":true}]

.vscode/c_cpp_properties.json

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "STM32F7",
5+
"includePath": [
6+
"${workspaceFolder}/src",
7+
"${workspaceFolder}/src/apps",
8+
"${workspaceFolder}/src/apps/demo_ping",
9+
"${workspaceFolder}/src/bsps",
10+
"${workspaceFolder}/src/bsps/bsp_stm32f767",
11+
"${workspaceFolder}/src/libs",
12+
"${workspaceFolder}/src/libs/nanoip",
13+
"${workspaceFolder}/src/libs/nanoip/config",
14+
"${workspaceFolder}/src/libs/nanoip/core",
15+
"${workspaceFolder}/src/libs/nanoip/modules",
16+
"${workspaceFolder}/src/libs/nanoip/modules/dhcp",
17+
"${workspaceFolder}/src/libs/nanoip/modules/tftp",
18+
"${workspaceFolder}/src/libs/nanoip/modules/socket",
19+
"${workspaceFolder}/src/libs/nanoip/netif",
20+
"${workspaceFolder}/src/libs/nanoip/netif/phy",
21+
"${workspaceFolder}/src/libs/nanoip/oal",
22+
"${workspaceFolder}/src/libs/nanoip/oal/os_less",
23+
"${workspaceFolder}/src/libs/nanoip/packet",
24+
"${workspaceFolder}/src/libs/nanoip/tools",
25+
"${workspaceFolder}/src/libs/nanoip/log",
26+
"${workspaceFolder}/src/libs/nanoip/hal",
27+
"${workspaceFolder}/src/libs/net_if/stm32_emac_netif",
28+
29+
"C:\\gcc_arm_cortex_m_7.2\\arm-none-eabi\\include"
30+
],
31+
"defines": [
32+
],
33+
"compilerPath": "C:\\gcc_arm_cortex_m_7.2\\bin\\arm-none-eabi-gcc.exe",
34+
"intelliSenseMode": "clang-x64",
35+
"browse": {
36+
"path": [
37+
"${workspaceFolder}"
38+
],
39+
"limitSymbolsToIncludedHeaders": true,
40+
"databaseFilename": ""
41+
}
42+
},
43+
{
44+
"name": "Win32",
45+
"includePath": [
46+
"${workspaceFolder}/src",
47+
"${workspaceFolder}/src/apps",
48+
"${workspaceFolder}/src/apps/demo_ping",
49+
"${workspaceFolder}/src/bsps",
50+
"${workspaceFolder}/src/bsps/bsp_windows",
51+
"${workspaceFolder}/src/libs",
52+
"${workspaceFolder}/src/libs/nanoip",
53+
"${workspaceFolder}/src/libs/nanoip/config",
54+
"${workspaceFolder}/src/libs/nanoip/core",
55+
"${workspaceFolder}/src/libs/nanoip/modules",
56+
"${workspaceFolder}/src/libs/nanoip/modules/dhcp",
57+
"${workspaceFolder}/src/libs/nanoip/modules/tftp",
58+
"${workspaceFolder}/src/libs/nanoip/modules/socket",
59+
"${workspaceFolder}/src/libs/nanoip/netif",
60+
"${workspaceFolder}/src/libs/nanoip/oal",
61+
"${workspaceFolder}/src/libs/nanoip/oal/windows",
62+
"${workspaceFolder}/src/libs/nanoip/packet",
63+
"${workspaceFolder}/src/libs/nanoip/tools",
64+
"${workspaceFolder}/src/libs/nanoip/log",
65+
"${workspaceFolder}/src/libs/net_if/pcap_netif",
66+
"${workspaceFolder}/3rdparty/winpcap-4.1.2/Include"
67+
],
68+
"defines": [
69+
"_DEBUG",
70+
"UNICODE",
71+
"_UNICODE"
72+
],
73+
"compilerPath": "C:\\mingw32\\bin\\i686-w64-mingw32-gcc.exe",
74+
"intelliSenseMode": "clang-x64",
75+
"browse": {
76+
"path": [
77+
"${workspaceFolder}"
78+
],
79+
"limitSymbolsToIncludedHeaders": true,
80+
"databaseFilename": ""
81+
}
82+
}
83+
],
84+
"version": 4
85+
}

.vscode/launch.json

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
3+
// Pointez pour afficher la description des attributs existants.
4+
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"cwd": "${workspaceRoot}",
9+
"executable": "./build/apps/demo_socket/bin/arm-gcc-os-less-stm32f767/demo_socket.elf",
10+
"name": "J-Link Debug STM32F767",
11+
"request": "launch",
12+
"type": "cortex-debug",
13+
"servertype": "jlink",
14+
"device": "STM32F767ZI",
15+
"interface": "swd",
16+
"ipAddress": null,
17+
"serialNumber": null,
18+
"svdFile": "${workspaceRoot}/src/bsps/bsp_stm32f767/STM32F7x7.svd"
19+
},
20+
{
21+
"cwd": "${workspaceRoot}",
22+
"executable": "./build/apps/demo_socket/bin/arm-gcc-os-less-lpc43s37/demo_socket.elf",
23+
"name": "J-Link Debug LPC43S37",
24+
"request": "launch",
25+
"type": "cortex-debug",
26+
"servertype": "jlink",
27+
"device": "LPC43S37_M4",
28+
"interface": "jtag",
29+
"ipAddress": null,
30+
"serialNumber": null,
31+
"svdFile": "${workspaceRoot}/src/bsps/bsp_lpc43s37/LPC43xx_43Sxx.svd"
32+
},
33+
{
34+
"cwd": "${workspaceRoot}",
35+
"executable": "./build/apps/demo_socket/bin/arm-gcc-os-less-lpc1788/demo_socket.elf",
36+
"name": "J-Link Debug LPC1788",
37+
"request": "launch",
38+
"type": "cortex-debug",
39+
"servertype": "jlink",
40+
"device": "LPC1788",
41+
"interface": "swd",
42+
"ipAddress": null,
43+
"serialNumber": null
44+
},
45+
{
46+
"name": "MinGW Windows",
47+
"type": "cppdbg",
48+
"request": "launch",
49+
"program": "${workspaceFolder}/build/apps/demo_socket/bin/mingw-windows/demo_socket.elf",
50+
"args": [],
51+
"stopAtEntry": true,
52+
"cwd": "${workspaceFolder}",
53+
"environment": [],
54+
"externalConsole": true,
55+
"MIMode": "gdb",
56+
"miDebuggerPath": "c:/mingw32/bin/gdb.exe",
57+
"setupCommands": [
58+
{
59+
"description": "Enable pretty-printing for gdb",
60+
"text": "-enable-pretty-printing",
61+
"ignoreFailures": true
62+
}
63+
]
64+
}
65+
]
66+
}

.vscode/settings.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"cortex-debug.JLinkGDBServerPath": "C:\\Program Files (x86)\\SEGGER\\JLink_V632c\\JLinkGDBServerCL.exe",
3+
"cortex-debug.armToolchainPath": "C:\\gcc_arm_cortex_m_7.2\\bin",
4+
"files.exclude": {
5+
"**/.git": true,
6+
"**/.svn": true,
7+
"**/.hg": true,
8+
"**/CVS": true,
9+
"**/.DS_Store": true,
10+
"**/oal/linux" : true,
11+
"**/oal/os_less" : true,
12+
"**/oal/windows" : false
13+
},
14+
"files.associations": {
15+
"stdio.h": "c",
16+
"nano_ip_big_small_packet_allocator.h": "c",
17+
"nano_ip_tools.h": "c",
18+
"stm32f767xx.h": "c",
19+
"nano_ip.h": "c",
20+
"array": "c",
21+
"string_view": "c"
22+
}
23+
}

.vscode/tasks.json

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "make demo_socket STM32F767 OS less",
8+
"type": "shell",
9+
"command": "make",
10+
"args": [
11+
"-C",
12+
"${workspaceFolder}/build/apps/demo_socket",
13+
"all+",
14+
"TARGET=arm-gcc-os-less-stm32f767"
15+
],
16+
"group": "build",
17+
"problemMatcher": {
18+
"owner": "cpp",
19+
"fileLocation": [
20+
"absolute"
21+
],
22+
"pattern": {
23+
"regexp": "^(.*):([0-9]+):([0-9]+): (warning|error): (.*)$",
24+
"file": 1,
25+
"line": 2,
26+
"column": 3,
27+
"severity": 4,
28+
"message": 5
29+
}
30+
}
31+
},
32+
{
33+
"label": "clean demo_socket STM32F767 OS less",
34+
"type": "shell",
35+
"command": "make",
36+
"args": [
37+
"-C",
38+
"${workspaceFolder}/build/apps/demo_socket",
39+
"clean+",
40+
"TARGET=arm-gcc-os-less-stm32f767"
41+
],
42+
"group": "build",
43+
"problemMatcher": []
44+
},
45+
{
46+
"label": "make demo_socket LPC43S37 OS less",
47+
"type": "shell",
48+
"command": "make",
49+
"args": [
50+
"-C",
51+
"${workspaceFolder}/build/apps/demo_socket",
52+
"all+",
53+
"TARGET=arm-gcc-os-less-lpc43s37"
54+
],
55+
"group": "build",
56+
"problemMatcher": {
57+
"owner": "cpp",
58+
"fileLocation": [
59+
"absolute"
60+
],
61+
"pattern": {
62+
"regexp": "^(.*):([0-9]+):([0-9]+): (warning|error): (.*)$",
63+
"file": 1,
64+
"line": 2,
65+
"column": 3,
66+
"severity": 4,
67+
"message": 5
68+
}
69+
}
70+
},
71+
{
72+
"label": "clean demo_socket LPC43S37 OS less",
73+
"type": "shell",
74+
"command": "make",
75+
"args": [
76+
"-C",
77+
"${workspaceFolder}/build/apps/demo_socket",
78+
"clean+",
79+
"TARGET=arm-gcc-os-less-lpc43s37"
80+
],
81+
"group": "build",
82+
"problemMatcher": []
83+
},
84+
{
85+
"label": "make demo_socket LPC1788 OS less",
86+
"type": "shell",
87+
"command": "make",
88+
"args": [
89+
"-C",
90+
"${workspaceFolder}/build/apps/demo_socket",
91+
"all+",
92+
"TARGET=arm-gcc-os-less-lpc1788"
93+
],
94+
"group": "build",
95+
"problemMatcher": {
96+
"owner": "cpp",
97+
"fileLocation": [
98+
"absolute"
99+
],
100+
"pattern": {
101+
"regexp": "^(.*):([0-9]+):([0-9]+): (warning|error): (.*)$",
102+
"file": 1,
103+
"line": 2,
104+
"column": 3,
105+
"severity": 4,
106+
"message": 5
107+
}
108+
}
109+
},
110+
{
111+
"label": "clean demo_socket LPC1788 OS less",
112+
"type": "shell",
113+
"command": "make",
114+
"args": [
115+
"-C",
116+
"${workspaceFolder}/build/apps/demo_socket",
117+
"clean+",
118+
"TARGET=arm-gcc-os-less-lpc1788"
119+
],
120+
"group": "build",
121+
"problemMatcher": []
122+
},
123+
{
124+
"label": "make demo Windows",
125+
"type": "shell",
126+
"command": "make",
127+
"args": [
128+
"-C",
129+
"${workspaceFolder}/build/apps/demo_socket",
130+
"all+"
131+
],
132+
"group": {
133+
"kind": "build",
134+
"isDefault": true
135+
},
136+
"problemMatcher": {
137+
"owner": "cpp",
138+
"fileLocation": [
139+
"relative",
140+
"${workspaceFolder}"
141+
],
142+
"pattern": {
143+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
144+
"file": 1,
145+
"line": 2,
146+
"column": 3,
147+
"severity": 4,
148+
"message": 5
149+
}
150+
}
151+
},
152+
{
153+
"label": "clean demo Windows",
154+
"type": "shell",
155+
"command": "make",
156+
"args": [
157+
"-C",
158+
"${workspaceFolder}/build/apps/demo_socket",
159+
"clean+"
160+
],
161+
"group": "build",
162+
"problemMatcher": []
163+
}
164+
]
165+
}

3rdparty/libpcap-1.8.1/.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.o
2+
*.c
3+
*.3pcap
4+
*.h
5+
*.a
6+
*.so*
7+
*.log
8+
*.status
9+
Makefile
10+
net
11+
pcap-*

0 commit comments

Comments
 (0)