I am trying to port code from an MSP430F5529 to a cc430F6137 under CCS v6.01, and MSP430ware_1_97_00_47. The ported code will eventually take advantage of the cc430 RF features in addition to the (already working) '5529 code base.
The '5529 code uses calls to driverlib.h.
However, when I try using calls to driverlib.h on the '6137 some of the calls work, but some do not. Specifically, calls to the UCS module (eg UCS_clockSignalInit(), or UCS_initFLLSettle()) fail. That said, driverlib calls to many other modules (GPIO, PMM, RTC, etc) seem to work on the '6137.
The issue seems to be related to the following:
1) Line 3794 of msp430f5529.h is: #define __MSP430_HAS_UCS__
2) Line 3840 of cc430f637.h is: #define __MSP430_HAS_UCS_RF__
These two #defines relate to the slight differences between the'5529 and '6137 UCS module
However,
3) Line 43 of ucs.h (called by driverlib.h) is:
#ifdef __MSP430_HAS_UCS__
the corresponding #endif is at the end of the file.
4) Therefore, since the cc430f6137.h defines __MSP430_HAS_UCS_RF__ instead of __MSP430_HAS_UCS__, none of the UCS function call in ucs.h get declarations when building on the '6137. This kills successful compilation, even for UCS functions that should be supported on the '6137 (ie those that do not involve most XT2 configurations.)
Am I missing something: is there a simple work around that does not involve modifying these library files? If so, would it also accommodate the differences between the basic UCS module (on the msp430 parts) and the RF UCS module on the cc430 parts, eg the aforementioned XT2 differences?
Finally, the following post suggests that driverlib is NOT supported on the '6137. Thoughts?? Thanks.
http://e2e.ti.com/support/embedded/tirtos/f/355/p/400374/1417840#1417840