zephyr-configurator/snippets/bluetooth/button/button_svc.h

27 lines
384 B
C
Raw Permalink Normal View History

2023-09-08 11:28:04 +00:00
/** @file
* @brief Button Service
*/
/*
* Copyright (c) 2019 Marcio Montenegro <mtuxpe@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ST_BLE_SENSOR_BUTTON_SVC_H_
#define ST_BLE_SENSOR_BUTTON_SVC_H_
#include <zephyr/drivers/gpio.h>
#ifdef __cplusplus
extern "C" {
#endif
int button_init(gpio_callback_handler_t handler);
#ifdef __cplusplus
}
#endif
#endif