Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
mem_partition.c File Reference
#include <kernel.h>
#include "mem_protect.h"

Functions

static volatile K_APP_DMEM (ztest_mem_partition)
 Test assigning global data and BSS variables to memory partitions. More...
 
 K_APPMEM_PARTITION_DEFINE (part_arch)
 
 K_APP_BMEM (part_arch)
 Test partitions sized per the constraints of the MPU hardware. More...
 

Function Documentation

◆ K_APP_BMEM()

K_APP_BMEM ( part_arch  )

Test partitions sized per the constraints of the MPU hardware.

  • MEM_REGION_ALLOC is pre-sized to naturally fit in the target hardware's memory management granularity. Show that the partition size matches.
  • Show that the base address of the partition is properly set, it should match the base address of buf_arc.

◆ K_APP_DMEM()

static volatile K_APP_DMEM ( ztest_mem_partition  )
static

Test assigning global data and BSS variables to memory partitions.

Test that system supports application assigning global data and BSS variables using macros K_APP_BMEM() and K_APP_DMEM

◆ K_APPMEM_PARTITION_DEFINE()

K_APPMEM_PARTITION_DEFINE ( part_arch  )