mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
boards/ARDUINO_PORTENTA_H7: Move ETH DMA buffers into SRAM3.
Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
This commit is contained in:
parent
9816ea6eb9
commit
2985545497
@ -150,7 +150,7 @@
|
||||
#define OMV_CORE1_MEMORY DRAM
|
||||
#define OMV_CORE1_SIZE (512K)
|
||||
#define OMV_GC_BLOCK0_MEMORY SRAM1 // Main GC block.
|
||||
#define OMV_GC_BLOCK0_SIZE (192K)
|
||||
#define OMV_GC_BLOCK0_SIZE (176K)
|
||||
#define OMV_GC_BLOCK1_MEMORY DRAM // Extra GC block 1.
|
||||
#define OMV_GC_BLOCK1_SIZE (2560K)
|
||||
#define OMV_MSC_BUF_SIZE (2K) // USB MSC bot data
|
||||
@ -165,9 +165,9 @@
|
||||
#define OMV_SRAM0_ORIGIN 0x24000000
|
||||
#define OMV_SRAM0_LENGTH 512K
|
||||
#define OMV_SRAM1_ORIGIN 0x30000000
|
||||
#define OMV_SRAM1_LENGTH 256K // SRAM1 + SRAM2
|
||||
#define OMV_SRAM1_LENGTH 240K // SRAM1 + SRAM2
|
||||
#define OMV_SRAM3_ORIGIN 0x30040000 // Second half of SRAM3 reserved for M4.
|
||||
#define OMV_SRAM3_LENGTH 16K
|
||||
#define OMV_SRAM3_LENGTH 32K
|
||||
#define OMV_SRAM4_ORIGIN 0x38000000
|
||||
#define OMV_SRAM4_LENGTH 64K
|
||||
#define OMV_DRAM_ORIGIN 0x60000000
|
||||
|
||||
@ -23,8 +23,6 @@
|
||||
*
|
||||
* MicroPython port config.
|
||||
*/
|
||||
#include <mpconfigport.h>
|
||||
|
||||
#define MICROPY_NLR_RAISE_HOOK \
|
||||
do { \
|
||||
extern void fb_alloc_free_till_mark(); \
|
||||
@ -39,5 +37,8 @@
|
||||
#define MICROPY_BANNER_NAME_AND_VERSION "OpenMV " OPENMV_GIT_TAG "; MicroPython " MICROPY_GIT_TAG
|
||||
#define MICROPY_BOARD_FATAL_ERROR __fatal_error
|
||||
#define MICROPY_HW_DMA_ENABLE_AUTO_TURN_OFF (0)
|
||||
#define MICROPY_HW_ETH_DMA_ATTRIBUTE __attribute__((aligned(16384), section(".dma_buffer")));
|
||||
|
||||
void __fatal_error(const char *);
|
||||
|
||||
#include <mpconfigport.h>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user