Skip to content

Commit 54e78d0

Browse files
committed
[stm32] H7 ethernet and example
1 parent 4d55600 commit 54e78d0

11 files changed

Lines changed: 1568 additions & 40 deletions

File tree

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
106106
<table>
107107
<tr>
108108
<th align="center"></th>
109-
<th align="center" colspan="18">STM32</th>
109+
<th align="center" colspan="17">STM32</th>
110110
<th align="center" colspan="4">SAM</th>
111111
<th align="center" colspan="1">RP</th>
112112
<th align="center" colspan="3">NRF</th>
@@ -119,7 +119,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
119119
<th align="center">F2</th>
120120
<th align="center">F3</th>
121121
<th align="center">F4</th>
122-
<th align="center">F7</th>
123122
<th align="center">G0</th>
124123
<th align="center">G4</th>
125124
<th align="center">H5</th>
@@ -152,7 +151,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
152151
<td align="center">✅</td>
153152
<td align="center">✅</td>
154153
<td align="center">✅</td>
155-
<td align="center">✅</td>
156154
<td align="center">○</td>
157155
<td align="center">✅</td>
158156
<td align="center">○</td>
@@ -185,7 +183,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
185183
<td align="center">✅</td>
186184
<td align="center">✅</td>
187185
<td align="center">✅</td>
188-
<td align="center">✅</td>
189186
<td align="center">✕</td>
190187
<td align="center">✕</td>
191188
<td align="center">✅</td>
@@ -212,7 +209,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
212209
<td align="center">✕</td>
213210
<td align="center">✅</td>
214211
<td align="center">✕</td>
215-
<td align="center">✕</td>
216212
<td align="center">✅</td>
217213
<td align="center">✅</td>
218214
<td align="center">○</td>
@@ -254,7 +250,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
254250
<td align="center">✅</td>
255251
<td align="center">✅</td>
256252
<td align="center">✅</td>
257-
<td align="center">✅</td>
258253
<td align="center">○</td>
259254
<td align="center">○</td>
260255
<td align="center">✅</td>
@@ -276,7 +271,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
276271
<td align="center">✅</td>
277272
<td align="center">✅</td>
278273
<td align="center">✅</td>
279-
<td align="center">✅</td>
280274
<td align="center">○</td>
281275
<td align="center">✅</td>
282276
<td align="center">✅</td>
@@ -305,11 +299,10 @@ Please [discover modm's peripheral drivers for your specific device][discover].
305299
<td align="center">○</td>
306300
<td align="center">✕</td>
307301
<td align="center">✅</td>
308-
<td align="center">✅</td>
309302
<td align="center">✕</td>
310303
<td align="center">✕</td>
311304
<td align="center">○</td>
312-
<td align="center"></td>
305+
<td align="center"></td>
313306
<td align="center">✕</td>
314307
<td align="center">✕</td>
315308
<td align="center">✕</td>
@@ -348,7 +341,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
348341
<td align="center">✅</td>
349342
<td align="center">✅</td>
350343
<td align="center">✅</td>
351-
<td align="center">✅</td>
352344
<td align="center">○</td>
353345
<td align="center">○</td>
354346
<td align="center">○</td>
@@ -367,7 +359,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
367359
<td align="center">✅</td>
368360
<td align="center">○</td>
369361
<td align="center">✅</td>
370-
<td align="center">○</td>
371362
<td align="center">✕</td>
372363
<td align="center">○</td>
373364
<td align="center">○</td>
@@ -420,7 +411,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
420411
<td align="center">✅</td>
421412
<td align="center">✅</td>
422413
<td align="center">✅</td>
423-
<td align="center">✅</td>
424414
</tr><tr>
425415
<td align="left">I<sup>2</sup>C</td>
426416
<td align="center">✅</td>
@@ -437,7 +427,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
437427
<td align="center">✅</td>
438428
<td align="center">✅</td>
439429
<td align="center">✅</td>
440-
<td align="center">✅</td>
441430
<td align="center">○</td>
442431
<td align="center">○</td>
443432
<td align="center">✅</td>
@@ -460,7 +449,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
460449
<td align="center">○</td>
461450
<td align="center">○</td>
462451
<td align="center">✅</td>
463-
<td align="center">○</td>
464452
<td align="center">✅</td>
465453
<td align="center">✅</td>
466454
<td align="center">○</td>
@@ -493,7 +481,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
493481
<td align="center">✕</td>
494482
<td align="center">✕</td>
495483
<td align="center">✕</td>
496-
<td align="center">✕</td>
497484
<td align="center">○</td>
498485
<td align="center">○</td>
499486
<td align="center">✕</td>
@@ -527,7 +514,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
527514
<td align="center">✅</td>
528515
<td align="center">✅</td>
529516
<td align="center">✅</td>
530-
<td align="center">✅</td>
531517
<td align="center">✕</td>
532518
<td align="center">✅</td>
533519
<td align="center">✅</td>
@@ -564,7 +550,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
564550
<td align="center">✅</td>
565551
<td align="center">✅</td>
566552
<td align="center">✅</td>
567-
<td align="center">✅</td>
568553
<td align="center">○</td>
569554
<td align="center">○</td>
570555
<td align="center">○</td>
@@ -586,7 +571,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
586571
<td align="center">✅</td>
587572
<td align="center">✅</td>
588573
<td align="center">✅</td>
589-
<td align="center">✅</td>
590574
<td align="center">○</td>
591575
<td align="center">✅</td>
592576
<td align="center">✅</td>
@@ -634,7 +618,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
634618
<td align="center">✅</td>
635619
<td align="center">✅</td>
636620
<td align="center">✅</td>
637-
<td align="center">✅</td>
638621
<td align="center">○</td>
639622
<td align="center">○</td>
640623
<td align="center">○</td>
@@ -657,7 +640,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
657640
<td align="center">✅</td>
658641
<td align="center">✅</td>
659642
<td align="center">✅</td>
660-
<td align="center">✅</td>
661643
<td align="center">○</td>
662644
<td align="center">○</td>
663645
<td align="center">✅</td>
@@ -698,7 +680,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
698680
<td align="center">✅</td>
699681
<td align="center">✅</td>
700682
<td align="center">✅</td>
701-
<td align="center">✅</td>
702683
<td align="center">○</td>
703684
</tr><tr>
704685
<td align="left">Unique ID</td>
@@ -719,7 +700,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
719700
<td align="center">✅</td>
720701
<td align="center">✅</td>
721702
<td align="center">✅</td>
722-
<td align="center">✅</td>
723703
<td align="center">✕</td>
724704
<td align="center">✕</td>
725705
<td align="center">○</td>
@@ -752,7 +732,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
752732
<td align="center">✅</td>
753733
<td align="center">✅</td>
754734
<td align="center">✅</td>
755-
<td align="center">✅</td>
756735
<td align="center">○</td>
757736
<td align="center">✅</td>
758737
<td align="center">✅</td>
@@ -781,7 +760,6 @@ Please [discover modm's peripheral drivers for your specific device][discover].
781760
<td align="center">✅</td>
782761
<td align="center">✅</td>
783762
<td align="center">✅</td>
784-
<td align="center">✅</td>
785763
<td align="center">○</td>
786764
<td align="center">○</td>
787765
<td align="center">○</td>
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* FreeRTOS+TCP V2.2.1
3+
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
* this software and associated documentation files (the "Software"), to deal in
7+
* the Software without restriction, including without limitation the rights to
8+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
* the Software, and to permit persons to whom the Software is furnished to do so,
10+
* subject to the following conditions:
11+
*
12+
* The above copyright notice and this permission notice shall be included in all
13+
* copies or substantial portions of the Software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
*
22+
* http://www.FreeRTOS.org
23+
* http://aws.amazon.com/freertos
24+
*
25+
* 1 tab == 4 spaces!
26+
*/
27+
28+
#ifndef FREERTOS_IP_CONFIG_H
29+
#error "Don't include this file, use 'FreeRTOSIPConfig.h' instead!"
30+
#endif
31+
32+
#define ipconfigHAS_DEBUG_PRINTF 0
33+
#define ipconfigHAS_PRINTF 0
34+
35+
// Keep checksum handling in software for the first H7 ethernet backend.
36+
#define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0
37+
#define ipconfigDRIVER_INCLUDED_TX_IP_CHECKSUM 0
38+
39+
#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME (5000)
40+
#define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME (5000)
41+
42+
#define ipconfigUSE_LLMNR (0)
43+
#define ipconfigUSE_NBNS (0)
44+
45+
#define ipconfigUSE_DNS_CACHE (1)
46+
#define ipconfigDNS_CACHE_NAME_LENGTH (16)
47+
#define ipconfigDNS_CACHE_ENTRIES (4)
48+
#define ipconfigDNS_REQUEST_ATTEMPTS (2)
49+
50+
extern UBaseType_t
51+
uxRand(void);
52+
#define ipconfigRAND32() uxRand()
53+
54+
#define ipconfigUSE_NETWORK_EVENT_HOOK 1
55+
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS (5000 / portTICK_PERIOD_MS)
56+
57+
#define ipconfigUSE_DHCP 0
58+
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD (120000 / portTICK_PERIOD_MS)
59+
60+
#define ipconfigARP_CACHE_ENTRIES 6
61+
#define ipconfigMAX_ARP_RETRANSMISSIONS (5)
62+
#define ipconfigMAX_ARP_AGE 150
63+
64+
#define ipconfigINCLUDE_FULL_INET_ADDR 1
65+
66+
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
67+
#define ipconfigEVENT_QUEUE_LENGTH (ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5)
68+
69+
#define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1
70+
71+
#define ipconfigUDP_TIME_TO_LIVE 128
72+
#define ipconfigTCP_TIME_TO_LIVE 128
73+
74+
#define ipconfigUSE_TCP (1)
75+
#define ipconfigUSE_TCP_WIN (1)
76+
#define ipconfigNETWORK_MTU 1500
77+
#define ipconfigUSE_DNS 0
78+
79+
#define ipconfigREPLY_TO_INCOMING_PINGS 1
80+
#define ipconfigSUPPORT_OUTGOING_PINGS 0
81+
#define ipconfigSUPPORT_SELECT_FUNCTION 1
82+
#define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1
83+
#define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1
84+
85+
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY (20 / portTICK_PERIOD_MS)
86+
87+
#define ipconfigPACKET_FILLER_SIZE 2
88+
89+
#define ipconfigTCP_WIN_SEG_COUNT 240
90+
#define ipconfigTCP_RX_BUFFER_LENGTH (2000)
91+
#define ipconfigTCP_TX_BUFFER_LENGTH (2000)
92+
93+
#define ipconfigIS_VALID_PROG_ADDRESS(x) ((x) != NULL)
94+
95+
#define ipconfigTCP_HANG_PROTECTION (1)
96+
#define ipconfigTCP_HANG_PROTECTION_TIME (30)
97+
98+
#define ipconfigTCP_KEEP_ALIVE (1)
99+
#define ipconfigTCP_KEEP_ALIVE_INTERVAL (20)
100+
101+
#define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1
102+
#define ipconfigZERO_COPY_RX_DRIVER 0
103+
#define ipconfigZERO_COPY_TX_DRIVER 0
104+
#define ipconfigUSE_LINKED_RX_MESSAGES 1

0 commit comments

Comments
 (0)