Keil uV5, nRF51822, TWI hardware version I'm trying to use twi_hw_master.c and I have made one simple change to define the CLOCK and DATA pins to 1U and 2U for my target board (vs 24U and 25U as defined in twi_master_config.h but using Keil uV5 debugging, I can see that those GPIO pins were not programmed at all, when I call twi_master_init();
Instead of #include "twi_master_config.h" I pasted the definitions in-line into my main.c file.
#ifndef TWI_MASTER_CONFIG
#define TWI_MASTER_CONFIG
#define TWI_MASTER_CONFIG_CLOCK_PIN_NUMBER (1U)
#define TWI_MASTER_CONFIG_DATA_PIN_NUMBER (2U)
#endif
I'm trying to modify existing Example code from the SDK for a quick 'proof of concept' demonstration. Thank you.