| Nordic Thingy:52 v2.0.0

support_func.h
1 /*
2 Copyright (c) 2010 - 2017, Nordic Semiconductor ASA
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
7
8 1. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
10
11 2. Redistributions in binary form, except as embedded into a Nordic
12 Semiconductor ASA integrated circuit in a product or a software update for
13 such product, must reproduce the above copyright notice, this list of
14 conditions and the following disclaimer in the documentation and/or other
15 materials provided with the distribution.
16
17 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18 contributors may be used to endorse or promote products derived from this
19 software without specific prior written permission.
20
21 4. This software, with or without modification, must only be used with a
22 Nordic Semiconductor ASA integrated circuit.
23
24 5. Any software provided in binary form under this license must not be reverse
25 engineered, decompiled, modified and/or disassembled.
26
27 THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
28 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
29 OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
30 DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
31 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
33 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
36 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 */
38
48 #ifndef __SUPPORT_FUNC_H__
49 #define __SUPPORT_FUNC_H__
50
51 #include "sdk_errors.h"
52 #include "drv_ext_gpio.h"
53 #include <stdbool.h>
54
55 #define SUPPORT_FUNC_MAC_ADDR_STR_LEN ( (BLE_GAP_ADDR_LEN * 2) + 5 + 1)
67 ret_code_t support_func_ble_mac_address_get(char * p_mac_addr);
68
76 bool support_func_sys_halt_debug_enabled(void);
77
85 ret_code_t support_func_configure_io_startup(drv_ext_gpio_init_t const * const p_ext_gpio_init);
86
94 ret_code_t support_func_configure_io_shutdown(void);
95
96 #endif
97
support_func_sys_halt_debug_enabled
bool support_func_sys_halt_debug_enabled(void)
Function for checking if the device is in debug mode.
support_func_configure_io_startup
ret_code_t support_func_configure_io_startup(drv_ext_gpio_init_t const *const p_ext_gpio_init)
Function for configuring nRF IO and the GPIO extender for startup.
support_func_configure_io_shutdown
ret_code_t support_func_configure_io_shutdown(void)
Function for configuring nRF IO and the GPIO extender for shutdown.
drv_ext_gpio_init_t
GPIO extender driver configuration.
Definition: drv_ext_gpio.h:135