Note: This KBA has been marked as deprecated. A more updated KBA can be found here.
One of the features of the Bluetooth Smart stack is ability to indicate transmit or receive activity with a GPIO pin. Currently, pins 6 through 11 on PortC are available for this purpose. To enable this functionality in the C-SDK, first add the following to your stack configuration struct
.radio_obs.flags = RADIO_OBS_FLAGS_ENABLED,
.radio_obs.tx_pin = 6,
.radio_obs.rx_pin = 7
This indicates to the stack which pins to use for signalling transmit and receive activity.
Next, it will be necessary to disable any peripheral which shares these pins. If you are using our WSTK board, this will be USART1. The easiest way to disable it is to comment out the call to
which is found in InitDevice.c.
Finally, it is necessary to power cycle the WSTK for the changes to take effect.