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

Function _lcd_property_find

bsp/allwinner/libraries/drivers/lcd_cfg.c:1166–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1164u32 g_disp_config_len = sizeof(g_disp_config) / sizeof(struct property_t);
1165
1166static struct property_t *_lcd_property_find(const char *name, struct property_t *_config, const u32 config_len)
1167{
1168 u32 i;
1169
1170 for (i = 0; i < config_len; i++)
1171 {
1172 if (_config[i].type != PROPERTY_INTGER)
1173 {
1174 continue;
1175 }
1176
1177 if (!strcmp(name, _config[i].name))
1178 {
1179 return _config + i;
1180 }
1181 }
1182
1183 return NULL;
1184}
1185
1186#ifndef LCD_XML_CONFIG_FILE
1187#define LCD_CONFIG_FILE "/etc/lcd_config.xml"

Callers 1

load_lcd_config_from_xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected