Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Networking v2 #24214

Merged
merged 35 commits into from Aug 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
27b15b7
AP_Periph: add support for Networking
magicrub Jul 6, 2023
0778f3d
AP_Vehicle: add support for Networking
magicrub Jul 6, 2023
8dd3001
Tools/ardupilotwaf: add support for Networking
magicrub Jul 4, 2023
84e36c8
AP_HAL_ChibiOS: allow HW without HW_RNG to SW-based create psuedo-random
magicrub Jul 4, 2023
0e8ab2e
AP_HAL_ChibiOS: add hooks to compile Networking
magicrub Jul 5, 2023
64d8cad
AP_HAL_ChibiOS: Ethernet related memory allocations
magicrub Jul 4, 2023
1414559
AP_HAL_ChibiOS: hwdef add support for Networking
magicrub Jul 5, 2023
4f90c3a
AP_Networking: new library
magicrub Jul 6, 2023
89dcf78
AP_HAL_ChibiOS: update Networking hwdef's param defaults
magicrub Jul 7, 2023
cb76f1d
AP_Networking: Enable DHCP as default, add example to default netmasks
magicrub Jul 7, 2023
ab94082
AP_Networking: astyle changes
magicrub Jul 7, 2023
16e73f2
AP_HAL_ChibiOS: dynamically allocate memory for MAC Peripheral
bugobliterator Jul 15, 2023
c3066ed
AP_Networking: dynamically allocate memory for MAC Peripheral
bugobliterator Jul 15, 2023
da0d189
AP_Networking: bugfixes for dynamic battery malloc
magicrub Jul 20, 2023
abc811c
AP_HAL_ChibiOS: update CubePilot-CANMod to support Networking
bugobliterator May 31, 2023
57c0819
AP_HAL_ChibiOS: disable watchdog on CubePilot-CANMod
bugobliterator May 31, 2023
a568744
bootloaders: add CubePilot-CANMod_bl
bugobliterator May 31, 2023
19e243d
AP_HAL_ChibiOS: disable CAN2 on CubePilot-CANMod
bugobliterator Jun 1, 2023
006d780
AP_HAL_ChibiOS: disable AP_Periph_Heavy for CubePilot-CANMod
bugobliterator Jul 28, 2023
12bc32f
AP_Networking: fix allocation of mac trx buffers
bugobliterator Jul 28, 2023
54ecbd1
AP_Networking: cleanup defines
magicrub Jul 28, 2023
8759cb8
AP_HAL_ChibiOS: fix unused var compile error
magicrub Jul 28, 2023
359aca7
modules: update ChibiOS
bugobliterator Jul 15, 2023
310c52e
AP_HAL_ChibiOS: fix alignment for Ethernet safe memory
bugobliterator Aug 2, 2023
f2c4938
AP_Networking: panic if bad memory alignment
bugobliterator Aug 2, 2023
79a015f
AP_HAL_ChibiOS: remove legacy define WATCHDOG_DISABLED
bugobliterator Aug 2, 2023
dcceb87
AP_Periph: add networking
magicrub Aug 3, 2023
654f2f6
AP_Networking: cleanup
magicrub Aug 3, 2023
ab8523e
AP_HAL_ChibiOS: fix whitespace
magicrub Aug 3, 2023
3491cdb
AP_HAL_ChibiOS: remove common_eth.ld
magicrub Aug 3, 2023
0283627
AP_HAL_ChibiOS: update hwdefs for eth
magicrub Aug 3, 2023
0716a26
AP_Networking: cleanup parameter handling and fixed lwip config
tridge Aug 5, 2023
c98787a
AP_Networking: split ChibiOS code into its own backend
tridge Aug 5, 2023
6539d0c
AP_Vehicle: update networking at 10Hz
tridge Aug 5, 2023
eba02bf
AP_Networking: use host byte order addresses internally
tridge Aug 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions Tools/AP_Periph/AP_Periph.cpp
Expand Up @@ -100,6 +100,10 @@ void AP_Periph_FW::init()

can_start();

#ifdef HAL_PERIPH_ENABLE_NETWORKING
networking.init();
#endif

#if HAL_GCS_ENABLED
stm32_watchdog_pat();
gcs().init();
Expand Down Expand Up @@ -476,6 +480,10 @@ void AP_Periph_FW::update()

can_update();

#ifdef HAL_PERIPH_ENABLE_NETWORKING
networking.update();
#endif

#if (defined(HAL_PERIPH_NEOPIXEL_COUNT_WITHOUT_NOTIFY) && HAL_PERIPH_NEOPIXEL_COUNT_WITHOUT_NOTIFY == 8) || defined(HAL_PERIPH_ENABLE_NOTIFY)
update_rainbow();
#endif
Expand Down
5 changes: 5 additions & 0 deletions Tools/AP_Periph/AP_Periph.h
Expand Up @@ -25,6 +25,7 @@
#include <AP_Scripting/AP_Scripting.h>
#include <AP_HAL/CANIface.h>
#include <AP_Stats/AP_Stats.h>
#include <AP_Networking/AP_Networking.h>
#include <AP_SerialManager/AP_SerialManager.h>
#include <AP_ESC_Telem/AP_ESC_Telem_config.h>
#if HAL_WITH_ESC_TELEM
Expand Down Expand Up @@ -303,6 +304,10 @@ class AP_Periph_FW {
AP_Logger logger;
#endif

#ifdef HAL_PERIPH_ENABLE_NETWORKING
AP_Networking networking;
#endif

#if HAL_GCS_ENABLED
GCS_Periph _gcs;
#endif
Expand Down
6 changes: 6 additions & 0 deletions Tools/AP_Periph/Parameters.cpp
Expand Up @@ -551,6 +551,12 @@ const AP_Param::Info AP_Periph_FW::var_info[] = {
#endif
#endif

#ifdef HAL_PERIPH_ENABLE_NETWORKING
// @Group: NET_
// @Path: ../libraries/AP_Networking/AP_Networking.cpp
GOBJECT(networking, "NET_", AP_Networking),
#endif

AP_VAREND
};

Expand Down
1 change: 1 addition & 0 deletions Tools/AP_Periph/Parameters.h
Expand Up @@ -76,6 +76,7 @@ class Parameters {
k_param_esc_number1,
k_param_pole_count1,
k_param_esc_serial_port1,
k_param_networking,
};

AP_Int16 format_version;
Expand Down
1 change: 1 addition & 0 deletions Tools/AP_Periph/wscript
Expand Up @@ -44,6 +44,7 @@ def build(bld):
'AP_FlashStorage',
'AP_RAMTRON',
'AP_GPS',
'AP_Networking',
'AP_SerialManager',
'AP_RTC',
'AP_Compass',
Expand Down
1 change: 1 addition & 0 deletions Tools/ardupilotwaf/ardupilotwaf.py
Expand Up @@ -64,6 +64,7 @@
'AP_Module',
'AP_Button',
'AP_ICEngine',
'AP_Networking',
'AP_Frsky_Telem',
'AP_FlashStorage',
'AP_Relay',
Expand Down
Binary file added Tools/bootloaders/CubePilot-CANMod_bl.bin
Binary file not shown.