Hi guys,
sorry but first of all I have to admit that the migration is a mess. And really do not understand why you entered nrfx and did not make a clear cut. Because saving legacy stuff and new stuff in the same SDK will always be a mess... sorry but at least my experience. And as I experience it right now it is a mess. But now my problems:
1. Why there is a nrfx_config.h and a sdk_config and a apply_old_config.h to confuse everybody? And there is no or at least I've did not find it explanation on how they interact.
2. My recent problem is how to get TWI_MNGR running. There I've used the following config:
// Initate TWI
nrf_drv_twi_config_t const twi_bmx_config = {
.scl = BMX_TWI_SCL_PIN,
.sda = BMX_TWI_SDA_PIN,
.frequency = NRF_DRV_TWI_FREQ_400K,
.interrupt_priority = APP_IRQ_PRIORITY_MID,
.clear_bus_init = false
};
To get this compiling I had to enable
// <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
//==========================================================
#ifndef NRFX_TWIM_ENABLED
#define NRFX_TWIM_ENABLED 0
#endif
// <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
#ifndef NRFX_TWIM0_ENABLED
#define NRFX_TWIM0_ENABLED 0
#endif
// <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance
#ifndef NRFX_TWIM1_ENABLED
#define NRFX_TWIM1_ENABLED 0
#endif
and
// <e> TWI0_ENABLED - Enable TWI0 instance
//==========================================================
#ifndef TWI0_ENABLED
#define TWI0_ENABLED 1
#endif
// <q> TWI0_USE_EASY_DMA - Use EasyDMA (if present)
#ifndef TWI0_USE_EASY_DMA
#define TWI0_USE_EASY_DMA 1
#endif
// <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
//==========================================================
#ifndef TWI_ENABLED
#define TWI_ENABLED 1
#endif
Why and how can I switch to the new driver. In the guide you write I have to exchange all nrf_twi.... to nrfx_twim. But this is not possible since
all your headers are full of old nrf_twi. And sorry I do not want to change your headers.
So please any hint on this.
Thanks