MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dtb_node_read_s32_default

Function dtb_node_read_s32_default

components/legacy/fdt/src/dtb_access.c:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94int dtb_node_read_s32_default(const struct dtb_node *node, const char *propname, int32_t def)
95{
96 RT_ASSERT(dtb_node_valid(node));
97 dtb_node_read_u32(node, propname, (uint32_t *)&def);
98
99 return def;
100}
101
102int dtb_node_read_u32_index(const struct dtb_node *dn, const char *propname,
103 int index, uint32_t *outp)

Callers

nothing calls this directly

Calls 2

dtb_node_validFunction · 0.85
dtb_node_read_u32Function · 0.85

Tested by

no test coverage detected