hello there i want to send output of i2C sensor on ble. but how to add i2c driver for ble application???
hello there i want to send output of i2C sensor on ble. but how to add i2c driver for ble application???
Hi, check nrd_drv_config.h
.
Do you have:
#define TWI0_ENABLED 0
#define TWI0_ENABLED 1
.....
#define TWI_COUNT (TWI0_ENABLED+TWI1_ENABLED)
#define TWI0_ENABLED 0
#if (TWI0_ENABLED == 1)
#define TWI0_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
#define TWI0_CONFIG_SCL 0
#define TWI0_CONFIG_SDA 1
#define TWI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
#define TWI0_INSTANCE_INDEX 0
#endif
#define TWI1_ENABLED 0
#if (TWI1_ENABLED == 1)
#define TWI1_CONFIG_FREQUENCY NRF_TWI_FREQ_100K
#define TWI1_CONFIG_SCL 0
#define TWI1_CONFIG_SDA 1
#define TWI1_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
#define TWI1_INSTANCE_INDEX (TWI0_ENABLED)
#endif
#define TWI_COUNT (TWI0_ENABLED+TWI1_ENABLED)
hey it is my file's contents
Hi, IMHO at least one of TWI0_ENABLED
or TWI!_Enabled
should be enabled (e.g. = 1). Not only to become functional, but also to set TWI_COUNT > 0, thus e.g. the array static volatile control_block_t m_cb[TWI_COUNT];
can be initialized.
how to change it??