|
Zephyr Project API
3.1.0
A Scalable Open Source RTOS
|
#include <zephyr/zephyr.h>#include <ztest.h>#include <zephyr/kernel_structs.h>#include <string.h>#include <stdlib.h>#include "targets.h"Macros | |
| #define | INFO(fmt, ...) printk(fmt, ##__VA_ARGS__) |
| #define | FUNC_TO_PTR(x) (void *)(x) |
| #define | PTR_TO_FUNC(x) (int (*)(int))(x) |
| #define | DO_BARRIERS() do { } while (0) |
Functions | |
| void | k_sys_fatal_error_handler (unsigned int reason, const z_arch_esf_t *pEsf) |
| Fatal error policy handler. More... | |
| static int | add_one (int i) |
| static void | execute_from_buffer (uint8_t *dst) |
| static void | test_write_ro (void) |
| Test write to read only section. More... | |
| static void | test_write_text (void) |
| Test to execute on text section. More... | |
| static void | test_exec_data (void) |
| Test execution from data section. More... | |
| static void | test_exec_stack (void) |
| Test execution from stack section. More... | |
| static void | test_exec_heap (void) |
| Test execution from heap. More... | |
| void | test_main (void) |
| #define DO_BARRIERS | ( | ) | do { } while (0) |
| #define FUNC_TO_PTR | ( | x | ) | (void *)(x) |
| #define INFO | ( | fmt, | |
| ... | |||
| ) | printk(fmt, ##__VA_ARGS__) |
| #define PTR_TO_FUNC | ( | x | ) | (int (*)(int))(x) |
|
static |
|
static |
|
static |
Test execution from data section.
|
static |
Test execution from heap.
|
static |
Test execution from stack section.
| void test_main | ( | void | ) |
test case main entry
|
static |
Test write to read only section.
|
static |
Test to execute on text section.