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: fixed cache disable area size calculation #25690

Merged
merged 2 commits into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/AP_Networking/AP_Networking_ChibiOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bool AP_Networking_ChibiOS::allocate_buffers()
sizeof(uint32_t)*STM32_MAC_TRANSMIT_BUFFERS*AP_NETWORKING_EXTERN_MAC_BUFFER_SIZE; // typically == 9240

// ensure that we allocate 32-bit aligned memory, and mark it non-cacheable
uint32_t size = 2;
uint32_t size = 1;
uint8_t rasr = 0;
// find size closest to power of 2
while (size < total_size) {
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_Vehicle/AP_Vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,16 @@ void AP_Vehicle::setup()
gcs().init();
#endif

#if AP_NETWORKING_ENABLED
networking.init();
#endif

// initialise serial ports
serial_manager.init();
#if HAL_GCS_ENABLED
gcs().setup_console();
#endif

#if AP_NETWORKING_ENABLED
networking.init();
#endif

// Register scheduler_delay_cb, which will run anytime you have
// more than 5ms remaining in your call to hal.scheduler->delay
hal.scheduler->register_delay_callback(scheduler_delay_callback, 5);
Expand Down