|
@ -19,7 +19,12 @@ |
|
|
#include "nrf_ble_qwr.h" |
|
|
#include "nrf_ble_qwr.h" |
|
|
#include "nrf_block_dev_sdc.h" |
|
|
#include "nrf_block_dev_sdc.h" |
|
|
#include "nrf_delay.h" |
|
|
#include "nrf_delay.h" |
|
|
|
|
|
#include "nrf_drv_pwm.h" |
|
|
|
|
|
#include "nrf_drv_saadc.h" |
|
|
#include "nrf_drv_spi.h" |
|
|
#include "nrf_drv_spi.h" |
|
|
|
|
|
#include "nrf_drv_twi.h" |
|
|
|
|
|
#include "nrf_drv_wdt.h" |
|
|
|
|
|
#include "nrf_gpio.h" |
|
|
#include "nrf_log.h" |
|
|
#include "nrf_log.h" |
|
|
#include "nrf_log_ctrl.h" |
|
|
#include "nrf_log_ctrl.h" |
|
|
#include "nrf_log_default_backends.h" |
|
|
#include "nrf_log_default_backends.h" |
|
@ -31,8 +36,18 @@ |
|
|
// |
|
|
// |
|
|
#define APP_BLE_CONN_CFG_TAG 1 /**< A tag identifying the SoftDevice BLE configuration. */ |
|
|
#define APP_BLE_CONN_CFG_TAG 1 /**< A tag identifying the SoftDevice BLE configuration. */ |
|
|
|
|
|
|
|
|
void zsys_init(); |
|
|
|
|
|
void zsys_loop(); |
|
|
|
|
|
|
|
|
/******************************************************************************* |
|
|
|
|
|
* UTILS * |
|
|
|
|
|
*******************************************************************************/ |
|
|
|
|
|
void znordic_init(); |
|
|
|
|
|
void znordic_loop(); |
|
|
|
|
|
|
|
|
|
|
|
void znrf_gpio_cfg_output(uint32_t pin_number, nrf_gpio_pin_pull_t pull); |
|
|
|
|
|
int16_t znrf_adc_channel_read_val(uint16_t channel); |
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************* |
|
|
|
|
|
* LOG * |
|
|
|
|
|
*******************************************************************************/ |
|
|
|
|
|
|
|
|
#define ZLOGI(...) NRF_LOG_INFO(__VA_ARGS__) |
|
|
#define ZLOGI(...) NRF_LOG_INFO(__VA_ARGS__) |
|
|
#define ZLOGE(...) NRF_LOG_ERROR(__VA_ARGS__) |
|
|
#define ZLOGE(...) NRF_LOG_ERROR(__VA_ARGS__) |