Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
common_hal_buttons.h
Go to the documentation of this file.
1 /* Copyright (c) Nordic Semiconductor. All Rights Reserved.
2  *
3  * The information contained herein is property of Nordic Semiconductor ASA.
4  * Terms and conditions of usage are described in detail in NORDIC
5  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6  *
7  * Licensees are granted free, non-transferable use of the information. NO
8  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9  * the file.
10  *
11  */
12 
20 #ifdef DFU_SUPPORT
21 
22 #ifndef __COMMON_HAL_BUTTONS_H__
23 #define __COMMON_HAL_BUTTONS_H__
24 
25 #include <stdint.h>
26 
31 void common_hal_buttons_init(uint32_t button_press_duration_ms, uint8_t app_timer_prescaler);
32 
33 #endif // __COMMON_HAL_BUTTONS_H__
34 
35 #endif // DFU_SUPPORT
36 
void common_hal_buttons_init(uint32_t button_press_duration_ms, uint8_t app_timer_prescaler)
Initialize button functionality. Used only for starting DFU.