Home
last modified time | relevance | path

Searched refs:gpioCfg (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-buttons/src/
H A Dmain.cpp104 GpioInfo gpioCfg; in main() local
108 gpioCfg.number = getGpioNum(gpioConfig.at("pin")); in main()
115 gpioCfg.direction = config["direction"]; in main()
116 gpioCfg.name = config["name"]; in main()
117 gpioCfg.polarity = (config["polarity"] == "active_high") in main()
120 buttonCfg.gpios.push_back(gpioCfg); in main()
125 GpioInfo gpioCfg; in main() local
129 gpioCfg.number = getGpioNum(gpioConfig.at("pin")); in main()
134 gpioCfg.number = gpioConfig.at("num").get<uint32_t>(); in main()
136 gpioCfg.direction = gpioConfig["direction"]; in main()
[all …]
H A Dgpio.cpp134 for (auto& gpioCfg : buttonIFConfig.gpios) in configGroupGpio() local
136 result = configGpio(gpioCfg, buttonIFConfig); in configGroupGpio()
140 buttonIFConfig.formFactorName, "NUM", gpioCfg.number, in configGroupGpio()