Other Parts Discussed in Thread: SYSCONFIG, CC1352P
I am trying to figure out how to configure the RF switch when porting ZNP to CC2652P. I have been looking at the advice given by Clément in the linked thread, and also played a bit around with SysConfig in the CC1352P-2 ZNP project.
Is the advice given really the correct approach? It seems in the RF section innSysConfig I should change "Use Hardware" to "None", select the pins I want to use for switch control and then implement rfDriverCallbackCustom() myself. Is that correct?
This configuration could definitely be more clear in SysConfig, and I am not able to find it documented anywhere. Btw. "RF Antenna Pin" which is used in the RF Driver PinMux section is a really bad name.
Somewhat related, It seem the ZNP project is by default configured for 20 dBm output power, however, both the initAntennaSwitch() and rfDriverCallback() functions are not used because Board_RF_SUB1GHZ is not defined. So where is the switch between Tx and Rx handled? After all, when using CC2652P that is all I need to do.
Thanks,
Fredrik