Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Data Structures | |
struct | foo_single_dev_data |
struct | foo_single_config_info |
struct | foo_mult_dev_data |
struct | foo_mult_config_info |
Macros | |
#define | DT_DRV_COMPAT fakedriver |
#define | DEV_DATA(dev) ((struct foo_mult_dev_data *)((dev)->data)) |
#define | DEV_CFG(dev) ((struct foo_mult_config_info *)((dev)->config)) |
Functions | |
int | foo_single_init (const struct device *dev) |
void | test_mmio_single (void) |
Test DEVICE_MMIO_* macros. More... | |
int | foo_mult_init (const struct device *dev) |
void | test_mmio_multiple (void) |
Test DEVICE_MMIO_NAMED_* macros. More... | |
DEVICE_MMIO_TOPLEVEL (foo3, DT_DRV_INST(3)) | |
DEVICE_MMIO_TOPLEVEL_STATIC (foo4, DT_DRV_INST(4)) | |
void | test_mmio_toplevel (void) |
Test DEVICE_MMIO_TOPLEVEL_* macros. More... | |
void | test_mmio_device_map (void) |
device_map() test More... | |
Variables | |
struct foo_single_dev_data | foo0_data |
const struct foo_single_config_info | foo0_config |
struct foo_mult_dev_data | foo12_data |
const struct foo_mult_config_info | foo12_config |
#define DEV_CFG | ( | dev | ) | ((struct foo_mult_config_info *)((dev)->config)) |
#define DEV_DATA | ( | dev | ) | ((struct foo_mult_dev_data *)((dev)->data)) |
#define DT_DRV_COMPAT fakedriver |
DEVICE_MMIO_TOPLEVEL | ( | foo3 | , |
DT_DRV_INST(3) | |||
) |
DEVICE_MMIO_TOPLEVEL_STATIC | ( | foo4 | , |
DT_DRV_INST(4) | |||
) |
int foo_mult_init | ( | const struct device * | dev | ) |
int foo_single_init | ( | const struct device * | dev | ) |
device_map() test
Show that device_map() populates a memory address. We don't do anything else; tests for k_map() will prove that virtual memory mapping actually works.
const struct foo_single_config_info foo0_config |
struct foo_single_dev_data foo0_data |
const struct foo_mult_config_info foo12_config |
struct foo_mult_dev_data foo12_data |