RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Functions
microblaze-fdt-support.h File Reference

This header file provides support for the device tree. More...

#include <stdint.h>

Go to the source code of this file.

Functions

uint32_t try_get_prop_from_device_tree (const char *compatible, const char *prop_name, uint32_t default_value)
 Get the value of a property from a compatible node in the device tree.
 

Detailed Description

This header file provides support for the device tree.

Function Documentation

◆ try_get_prop_from_device_tree()

uint32_t try_get_prop_from_device_tree ( const char *  compatible,
const char *  prop_name,
uint32_t  default_value 
)

Get the value of a property from a compatible node in the device tree.

Parameters
[in]compatibleThe 'compatible' string to match against.
[in]prop_nameThe property name.
[in]default_valueThe default value to return if no compatible node was found or the property was not found.
Returns
The value of the property or the default value.