px4_micro_hal: add PX4_ARCH_DCACHE_LINESIZE definition

This commit is contained in:
Beat Küng
2019-09-02 15:40:19 +02:00
parent 132dcdaf25
commit 3234aca53b
5 changed files with 4 additions and 3 deletions

View File

@@ -41,6 +41,7 @@
#include <board_config.h>
#include <px4_config.h>
#include <px4_micro_hal.h>
#include <perf/perf_counter.h>
@@ -164,6 +165,6 @@ private:
/**
* IO Buffer storage
*/
static uint8_t _io_buffer_storage[] __attribute__((aligned(PX4IO_SERIAL_BUF_ALIGN)));
static uint8_t _io_buffer_storage[] __attribute__((aligned(PX4_ARCH_DCACHE_LINESIZE)));
};

View File

@@ -46,6 +46,7 @@ __BEGIN_DECLS
# define PX4_BBSRAM_GETDESC_IOCTL STM32_BBSRAM_GETDESC_IOCTL
#endif
#define PX4_NUMBER_I2C_BUSES STM32_NI2C
#define PX4_ARCH_DCACHE_LINESIZE 32
__END_DECLS

View File

@@ -33,6 +33,5 @@
#pragma once
#define PX4IO_SERIAL_BUF_ALIGN 4
#include "../../../stm32_common/include/px4_arch/px4io_serial.h"

View File

@@ -46,6 +46,7 @@ __BEGIN_DECLS
#define PX4_BBSRAM_GETDESC_IOCTL STM32F7_BBSRAM_GETDESC_IOCTL
#define PX4_FLASH_BASE 0x08000000
#define PX4_NUMBER_I2C_BUSES STM32F7_NI2C
#define PX4_ARCH_DCACHE_LINESIZE ARMV7M_DCACHE_LINESIZE
void stm32_flash_lock(void);
void stm32_flash_unlock(void);

View File

@@ -33,6 +33,5 @@
#pragma once
#define PX4IO_SERIAL_BUF_ALIGN ARMV7M_DCACHE_LINESIZE
#include "../../../stm32_common/include/px4_arch/px4io_serial.h"