Smart Remote 3 nRF52 v1.2
Introduction
API Reference
Modules
Data Structures
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
resources.h
1
/*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
2
10
#ifndef __RESOURCES_H__
11
#define __RESOURCES_H__
12
13
#include "nrf_pwr_mgmt.h"
14
#include "nrf_twi_mngr.h"
15
#include "app_isched.h"
16
17
#define BMA222E_TWI_ADDRESS (0x18)
18
#define LIS3DH_TWI_ADDRESS (0x19)
19
#define SX1509_TWI_ADDRESS (0x3E)
20
#define ICM20608_TWI_ADDRESS (0x68)
22
#if NRF_PWR_MGMT_ENABLED
23
#define SHUTDOWN_PRIORITY_EARLY 0
24
#define SHUTDOWN_PRIORITY_DEFAULT 1
25
#define SHUTDOWN_PRIORITY_LATE 2
26
#define SHUTDOWN_PRIORITY_STATISTICS 3
27
#define SHUTDOWN_PRIORITY_FINAL 4
28
29
#if (NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT != 5)
30
#error "Unsupported NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT value!"
31
#endif
/* (NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT != 5) */
32
#endif
/* NRF_PWR_MGMT_ENABLED */
33
34
#if NRF_SDH_BLE_ENABLED
35
#define SOC_OBSERVER_PRIORITY_DEFAULT 0
36
#define SOC_OBSERVER_PRIORITY_LOW 1
37
38
#if (NRF_SDH_SOC_OBSERVER_PRIO_LEVELS != 2)
39
#error "Unsupported NRF_SDH_SOC_OBSERVER_PRIO_LEVELS value!"
40
#endif
/* (NRF_SDH_SOC_OBSERVER_PRIO_LEVELS != 2) */
41
#endif
/* NRF_SDH_BLE_ENABLED */
42
43
#if NRF_SDH_BLE_ENABLED
44
#define BLE_OBSERVER_PRIORITY_HIGH 0
45
#define BLE_OBSERVER_PRIORITY_DEFAULT 1
46
#define BLE_OBSERVER_PRIORITY_LOW 2
47
48
#if (NRF_SDH_BLE_OBSERVER_PRIO_LEVELS != 3)
49
#error "Unsupported NRF_SDH_BLE_OBSERVER_PRIO_LEVELS value!"
50
#endif
/* (NRF_SDH_BLE_OBSERVER_PRIO_LEVELS != 3) */
51
#endif
/* NRF_SDH_BLE_ENABLED */
52
53
extern
app_isched_t
g_fg_scheduler
;
54
extern
app_isched_t
g_bg_scheduler
;
56
extern
nrf_twi_mngr_t
const
*
const
g_twi_mngr
;
57
extern
nrf_drv_twi_config_t
const
g_twi_bus_config
[2];
59
#endif
/* __RESOURCES_H__ */
60
Documentation feedback
|
Developer Zone
|
Subscribe
| Updated