mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 20:13:34 +08:00
NuttX and apps update 7.29
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvic.h"
|
||||
#include "cache.h"
|
||||
#include <nuttx/cache.h>
|
||||
#include "up_arch.h"
|
||||
|
||||
#include <parameters/param.h>
|
||||
@@ -93,7 +93,7 @@ void board_configure_dcache(int stage)
|
||||
/* On boot we should default to disabled on effected HW */
|
||||
|
||||
if (erratta && stage == 0) {
|
||||
arch_disable_dcache();
|
||||
up_disable_dcache();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -106,15 +106,15 @@ void board_configure_dcache(int stage)
|
||||
switch (dcache) {
|
||||
default:
|
||||
case 0:
|
||||
erratta ? arch_disable_dcache() : arch_enable_dcache();
|
||||
erratta ? up_disable_dcache() : up_enable_dcache();
|
||||
break;
|
||||
|
||||
case 1:
|
||||
arch_disable_dcache();
|
||||
up_disable_dcache();
|
||||
break;
|
||||
|
||||
case 2:
|
||||
arch_enable_dcache();
|
||||
up_enable_dcache();
|
||||
break;
|
||||
return;
|
||||
}
|
||||
@@ -157,11 +157,11 @@ int board_dcache_info(int action, char **pmesg, bool *pstate)
|
||||
}
|
||||
|
||||
if (action == 0) {
|
||||
arch_disable_dcache();
|
||||
up_disable_dcache();
|
||||
}
|
||||
|
||||
if (action == 1) {
|
||||
arch_enable_dcache();
|
||||
up_enable_dcache();
|
||||
}
|
||||
|
||||
if (pmesg) {
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#ifdef PX4IO_INTERFACE_F7
|
||||
|
||||
#include "stm32_uart.h"
|
||||
#include "cache.h"
|
||||
#include <nuttx/cache.h>
|
||||
|
||||
/* serial register accessors */
|
||||
#define REG(_x) (*(volatile uint32_t *)(PX4IO_SERIAL_BASE + (_x)))
|
||||
@@ -288,8 +288,8 @@ PX4IO_serial_f7::_bus_exchange(IOPacket *_packet)
|
||||
stm32_dmastart(_rx_dma, _dma_callback, this, false);
|
||||
|
||||
/* Clean _current_packet, so DMA can see the data */
|
||||
arch_clean_dcache((uintptr_t)_current_packet,
|
||||
(uintptr_t)_current_packet + ALIGNED_IO_BUFFER_SIZE);
|
||||
up_clean_dcache((uintptr_t)_current_packet,
|
||||
(uintptr_t)_current_packet + ALIGNED_IO_BUFFER_SIZE);
|
||||
|
||||
/* start TX DMA - no callback if we also expect a reply */
|
||||
/* DMA setup time ~3µs */
|
||||
@@ -458,8 +458,8 @@ PX4IO_serial_f7::_do_interrupt()
|
||||
/* if there is DMA reception going on, this is a short packet */
|
||||
if (_rx_dma_status == _dma_status_waiting) {
|
||||
/* Invalidate _current_packet, so we get fresh data from RAM */
|
||||
arch_invalidate_dcache((uintptr_t)_current_packet,
|
||||
(uintptr_t)_current_packet + ALIGNED_IO_BUFFER_SIZE);
|
||||
up_invalidate_dcache((uintptr_t)_current_packet,
|
||||
(uintptr_t)_current_packet + ALIGNED_IO_BUFFER_SIZE);
|
||||
|
||||
/* verify that the received packet is complete */
|
||||
size_t length = sizeof(*_current_packet) - stm32_dmaresidual(_rx_dma);
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
#include <parameters/param.h>
|
||||
|
||||
#include "cache.h"
|
||||
#include <nuttx/cache.h>
|
||||
|
||||
#if defined(CONFIG_ARMV7M_DCACHE) && defined(CONFIG_ARMV7M_DCACHE_WRITETHROUGH)
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ void print_load_buffer(uint64_t t, char *buffer, int buffer_length, print_load_c
|
||||
print_state->interval_time_ms_inv = 1.f / ((float)((print_state->new_time - print_state->interval_start_time) / 1000));
|
||||
|
||||
/* header for task list */
|
||||
snprintf(buffer, buffer_length, "%4s %*-s %8s %6s %11s %10s %-5s %2s",
|
||||
snprintf(buffer, buffer_length, "%4s %-*s %8s %6s %11s %10s %-5s %2s",
|
||||
"PID",
|
||||
CONFIG_TASK_NAME_SIZE, "COMMAND",
|
||||
"CPU(ms)",
|
||||
@@ -282,7 +282,7 @@ void print_load_buffer(uint64_t t, char *buffer, int buffer_length, print_load_c
|
||||
}
|
||||
|
||||
// print output
|
||||
int print_len = snprintf(buffer, buffer_length, "%4d %*-s %8d %2d.%03d %5u/%5u %3u (%3u) ",
|
||||
int print_len = snprintf(buffer, buffer_length, "%4d %-*s %8d %2d.%03d %5u/%5u %3u (%3u) ",
|
||||
tcb_pid,
|
||||
CONFIG_TASK_NAME_SIZE, tcb_name,
|
||||
total_runtime[i],
|
||||
|
||||
Reference in New Issue
Block a user