40 #include "dev/button-sensor.h"
41 #include "lib/sensors.h"
44 static int _active = 0;
52 st_lib_bsp_pb_init(BUTTON_USER, BUTTON_MODE_EXTI);
76 return st_lib_bsp_pb_get_state(BUTTON_USER);
80 configure(
int type,
int value)
109 SENSORS_SENSOR(
button_sensor, BUTTON_SENSOR, value, configure, status);
Header file for the STM32Cube HAL APIs.
const struct sensors_sensor button_sensor
Copyright (c) 2014, Analog Devices, Inc.
static int value(int type, nrf_drv_gpiote_pin_t pin)
Return current state of a button.