Lines Matching +full:pmic +full:- +full:int +full:- +full:pin
3 * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/dt-bindings/regulator/npm1300.h>
30 static const struct device *pmic = DEVICE_DT_GET(DT_NODELABEL(npm1300_ek_pmic)); variable
34 int ret; in configure_ui()
37 printk("Error: button device %s is not ready\n", button1.port->name); in configure_ui()
43 printk("Error %d: failed to configure %s pin %d\n", ret, button1.port->name, in configure_ui()
44 button1.pin); in configure_ui()
48 printk("Set up button at %s pin %d\n", button1.port->name, button1.pin); in configure_ui()
63 if (!device_is_ready(pmic)) { in configure_events()
64 printk("Pmic device not ready.\n"); in configure_events()
73 mfd_npm1300_add_callback(pmic, &event_cb); in configure_events()
98 printk("I: %s%d.%04d ", ((current.val1 < 0) || (current.val2 < 0)) ? "-" : "", in read_sensors()
101 printk("T: %s%d.%02d\n", ((temp.val1 < 0) || (temp.val2 < 0)) ? "-" : "", abs(temp.val1), in read_sensors()
108 int main(void) in main()
127 static int dvs_state; in main()
135 /* Update PMIC LED if button state has changed */ in main()
145 static int count; in main()