Hello,
I have found a possible issue on the pin configuration definition in the SDK (checked 2.40 and 4.10), file pin.h, for CC1352R.
The file reports:
#define PIN_NOPULL (PIN_GEN | (0 << 13)) ///< (*) No pull-up or pull-down resistor #define PIN_PULLUP (PIN_GEN | (1 << 13)) ///< Pull-up resistor enabled #define PIN_PULLDOWN (PIN_GEN | (2 << 13)) ///< Pull-down resistor enabled
The Technical Reference Manual (SWCU185D, October 2019) reports different values for bits 14-13: 1h: pull down; 2h: pull up, 3h: no pull
The file pin.h also reports:
#define PIN_GPIO_OUTPUT_DIS (PIN_GEN | (0 << 23)) ///< (*) Disable output buffer when GPIO #define PIN_GPIO_OUTPUT_EN (PIN_GEN | (1 << 23)) ///< Enable output buffer when GPIO #define PIN_GPIO_LOW (PIN_GEN | (0 << 22)) ///< Output buffer drives to VSS when GPIO #define PIN_GPIO_HIGH (PIN_GEN | (1 << 22)) ///< Output buffer drives to VDD when GPIO
But the TRM reports different meanings for bits 22 and 23.
All the other bits match.
Which of the two should I trust? And if I have to trust TRM where can I find the output buffer enable/disable bit?
Thanks in advance
Regards,
Stefano