mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
ports/stm32: Rename FB alloc overlay size macro.
This commit is contained in:
parent
142caafee9
commit
46fb0da0fe
@ -148,10 +148,10 @@
|
||||
#define OMV_JPEG_MEMORY_OFFSET (31M) // JPEG buffer is placed after FB/fballoc memory.
|
||||
#define OMV_VOSPI_MEMORY SRAM4 // VoSPI buffer memory.
|
||||
#define OMV_FB_OVERLAY_MEMORY AXI_SRAM // Fast fb_alloc memory.
|
||||
#define OMV_FB_OVERLAY_MEMORY_OFFSET (496*1024) // Fast fb_alloc memory size.
|
||||
|
||||
#define OMV_FB_SIZE (20M) // FB memory: header + VGA/GS image
|
||||
#define OMV_FB_ALLOC_SIZE (11M) // minimum fb alloc size
|
||||
#define OMV_FB_OVERLAY_SIZE (496*1024) // Fast fb_alloc memory size.
|
||||
#define OMV_STACK_SIZE (64K)
|
||||
#define OMV_HEAP_SIZE (240K)
|
||||
#define OMV_SDRAM_SIZE (32 * 1024 * 1024) // This needs to be here for UVC firmware.
|
||||
@ -189,7 +189,7 @@
|
||||
// Domain 1 DMA buffers region.
|
||||
#define OMV_DMA_MEMORY_D1 AXI_SRAM
|
||||
#define OMV_DMA_MEMORY_D1_SIZE (16*1024) // Reserved memory for DMA buffers
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_MEMORY_OFFSET)
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_SIZE)
|
||||
#define OMV_DMA_REGION_D1_SIZE MPU_REGION_SIZE_16KB
|
||||
|
||||
// Domain 2 DMA buffers region.
|
||||
|
||||
@ -157,12 +157,12 @@
|
||||
#define OMV_VOSPI_MEMORY SRAM4 // VoSPI buffer memory.
|
||||
#define OMV_VOSPI_MEMORY_OFFSET (4K) // First 4K reserved for D3 DMA buffers.
|
||||
#define OMV_FB_OVERLAY_MEMORY AXI_SRAM // Fast fb_alloc memory.
|
||||
#define OMV_FB_OVERLAY_MEMORY_OFFSET (496*1024) // Fast fb_alloc memory size.
|
||||
#define OMV_CYW43_MEMORY FLASH_EXT // CYW43 firmware in external flash mmap'd flash.
|
||||
#define OMV_CYW43_MEMORY_OFFSET (0x90F00000)// Last Mbyte.
|
||||
|
||||
#define OMV_FB_SIZE (20M) // FB memory: header + VGA/GS image
|
||||
#define OMV_FB_ALLOC_SIZE (11M) // minimum fb alloc size
|
||||
#define OMV_FB_OVERLAY_SIZE (496*1024) // Fast fb_alloc memory size.
|
||||
#define OMV_STACK_SIZE (64K)
|
||||
#define OMV_HEAP_SIZE (197K)
|
||||
#define OMV_SDRAM_SIZE (32 * 1024 * 1024) // This needs to be here for UVC firmware.
|
||||
@ -202,7 +202,7 @@
|
||||
// Domain 1 DMA buffers region.
|
||||
#define OMV_DMA_MEMORY_D1 AXI_SRAM
|
||||
#define OMV_DMA_MEMORY_D1_SIZE (8*1024) // Reserved memory for DMA buffers
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_MEMORY_OFFSET)
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_SIZE)
|
||||
#define OMV_DMA_REGION_D1_SIZE MPU_REGION_SIZE_8KB
|
||||
|
||||
// Domain 2 DMA buffers region.
|
||||
|
||||
@ -151,10 +151,10 @@
|
||||
#define OMV_JPEG_MEMORY_OFFSET (63M) // JPEG buffer is placed after FB/fballoc memory.
|
||||
#define OMV_VOSPI_MEMORY SRAM4 // VoSPI buffer memory.
|
||||
#define OMV_FB_OVERLAY_MEMORY AXI_SRAM // Fast fb_alloc memory.
|
||||
#define OMV_FB_OVERLAY_MEMORY_OFFSET (496*1024) // Fast fb_alloc memory size.
|
||||
|
||||
#define OMV_FB_SIZE (32M) // FB memory: header + VGA/GS image
|
||||
#define OMV_FB_ALLOC_SIZE (31M) // minimum fb alloc size
|
||||
#define OMV_FB_OVERLAY_SIZE (496*1024) // Fast fb_alloc memory size.
|
||||
#define OMV_STACK_SIZE (64K)
|
||||
#define OMV_HEAP_SIZE (250K)
|
||||
#define OMV_SDRAM_SIZE (64 * 1024 * 1024) // This needs to be here for UVC firmware.
|
||||
@ -192,7 +192,7 @@
|
||||
// Domain 1 DMA buffers region.
|
||||
#define OMV_DMA_MEMORY_D1 AXI_SRAM
|
||||
#define OMV_DMA_MEMORY_D1_SIZE (16*1024) // Reserved memory for DMA buffers
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_MEMORY_OFFSET)
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_SIZE)
|
||||
#define OMV_DMA_REGION_D1_SIZE MPU_REGION_SIZE_16KB
|
||||
|
||||
// Domain 2 DMA buffers region.
|
||||
|
||||
@ -155,12 +155,12 @@
|
||||
#define OMV_JPEG_MEMORY_OFFSET (7M) // JPEG buffer is placed after FB/fballoc memory.
|
||||
#define OMV_VOSPI_MEMORY SRAM4 // VoSPI buffer memory.
|
||||
#define OMV_FB_OVERLAY_MEMORY AXI_SRAM // Fast fb_alloc memory.
|
||||
#define OMV_FB_OVERLAY_MEMORY_OFFSET (480*1024) // Fast fb_alloc memory size.
|
||||
#define OMV_CYW43_MEMORY FLASH_EXT // CYW43 firmware in external flash mmap'd flash.
|
||||
#define OMV_CYW43_MEMORY_OFFSET (0x90F00000)// Last Mbyte.
|
||||
|
||||
#define OMV_FB_SIZE (4M) // FB memory: header + VGA/GS image
|
||||
#define OMV_FB_ALLOC_SIZE (3M) // minimum fb alloc size
|
||||
#define OMV_FB_SIZE (4M) // FB memory: header + VGA/GS image
|
||||
#define OMV_FB_ALLOC_SIZE (3M) // minimum fb alloc size
|
||||
#define OMV_FB_OVERLAY_SIZE (480*1024) // Fast fb_alloc memory size.
|
||||
#define OMV_STACK_SIZE (64K)
|
||||
#define OMV_HEAP_SIZE (160K)
|
||||
#define OMV_SDRAM_SIZE (8 * 1024 * 1024) // This needs to be here for UVC firmware.
|
||||
@ -202,7 +202,7 @@
|
||||
// Domain 1 DMA buffers region.
|
||||
#define OMV_DMA_MEMORY_D1 AXI_SRAM
|
||||
#define OMV_DMA_MEMORY_D1_SIZE (16*1024) // Reserved memory for DMA buffers
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_MEMORY_OFFSET)
|
||||
#define OMV_DMA_REGION_D1_BASE (OMV_AXI_SRAM_ORIGIN+OMV_FB_OVERLAY_SIZE)
|
||||
#define OMV_DMA_REGION_D1_SIZE MPU_REGION_SIZE_32KB
|
||||
|
||||
// Domain 2 DMA buffers region.
|
||||
|
||||
@ -146,7 +146,7 @@ SECTIONS
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_fballoc_overlay_start = .;
|
||||
. = . + OMV_FB_OVERLAY_MEMORY_OFFSET;
|
||||
. = . + OMV_FB_OVERLAY_SIZE;
|
||||
_fballoc_overlay_end = .;
|
||||
} >OMV_FB_OVERLAY_MEMORY
|
||||
#endif
|
||||
|
||||
@ -108,7 +108,7 @@ SECTIONS
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_fballoc_overlay_start = .;
|
||||
. = . + OMV_FB_OVERLAY_MEMORY_OFFSET;
|
||||
. = . + OMV_FB_OVERLAY_SIZE;
|
||||
_fballoc_overlay_end = .;
|
||||
} >OMV_FB_OVERLAY_MEMORY
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user