2018-06-25 17:33:39 -04:00
|
|
|
#ifndef NRFX_CONFIG_H__
|
|
|
|
#define NRFX_CONFIG_H__
|
|
|
|
|
2018-06-28 16:45:02 -04:00
|
|
|
// SPI
|
2018-06-25 17:33:39 -04:00
|
|
|
#define NRFX_SPIM_ENABLED 1
|
|
|
|
|
|
|
|
#ifdef NRF52840_XXAA
|
|
|
|
#define NRFX_SPIM3_ENABLED 1
|
|
|
|
#else
|
|
|
|
#define NRFX_SPIM2_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
|
|
|
|
#define NRFX_SPIM_MISO_PULL_CFG 1
|
|
|
|
|
2018-06-28 16:45:02 -04:00
|
|
|
// TWI aka. I2C
|
|
|
|
#define NRFX_TWIM_ENABLED 1
|
|
|
|
#define NRFX_TWIM0_ENABLED 1
|
|
|
|
|
|
|
|
#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
|
|
|
|
#define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY NRF_TWIM_FREQ_400K
|
|
|
|
#define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
|
|
|
|
|
2018-07-04 05:40:53 -04:00
|
|
|
#define NRFX_POWER_ENABLED 1
|
|
|
|
#define NRFX_POWER_CONFIG_IRQ_PRIORITY 7
|
|
|
|
|
2018-06-25 17:33:39 -04:00
|
|
|
#endif
|