77 #ifndef BSP430_PERIPH_FLLPLUS_H
78 #define BSP430_PERIPH_FLLPLUS_H
89 #define BSP430_MODULE_FLLPLUS (defined(__MSP430_HAS_FLLPLUS__) \
90 || defined(__MSP430_HAS_FLLPLUS_SMALL__))
92 #if defined(BSP430_DOXYGEN) || (BSP430_MODULE_FLLPLUS - 0)
98 #define BSP430_FLLPLUS_XT2OF_ XT2OF
100 #define BSP430_FLLPLUS_XT2OF_ 0
107 #define BSP430_FLLPLUS_LFXT1_IS_FAULTED_NI() (FLL_CTL0 & LFOF)
116 #define BSP430_FLLPLUS_XT2_IS_FAULTED_NI() (FLL_CTL0 & BSP430_FLLPLUS_XT2OF_)
121 #define BSP430_FLLPLUS_DCO_IS_FAULTED_NI() (FLL_CTL0 & DCOF)
132 #if defined(BSP430_DOXYGEN) || ! defined(BSP430_CLOCK_LFXT1_IS_FAULTED_NI)
133 #define BSP430_CLOCK_LFXT1_IS_FAULTED_NI() BSP430_FLLPLUS_LFXT1_IS_FAULTED_NI()
151 #if defined(BSP430_DOXYGEN) || ! defined(BSP430_CLOCK_XT2_IS_FAULTED_NI)
152 #define BSP430_CLOCK_XT2_IS_FAULTED_NI() ((BCSCTL1 & XT2OFF) || BSP430_FLLPLUS_XT2_IS_FAULTED_NI())
161 #if defined(BSP430_DOXYGEN) || ! defined(BSP430_CLOCK_CLEAR_FAULTS_NI)
162 #define BSP430_CLOCK_CLEAR_FAULTS_NI() do { \
163 BSP430_CLOCK_OSC_CLEAR_FAULT_NI(); \
170 #if defined(BSP430_DOXYGEN)
171 #define BSP430_FLLPLUS_XCAPxPF XCAP0PF
174 #ifndef BSP430_CLOCK_LFXT1_XCAP
175 #if defined(BSP430_FLLPLUS_XCAPxPF) && ! defined(BSP430_DOXYGEN)
177 #define BSP430_CLOCK_LFXT1_XCAP BSP430_FLLPLUS_XCAPxPF
184 #define BSP430_CLOCK_LFXT1_XCAP XCAP0PF
189 #define BSP430_CLOCK_NOMINAL_VLOCLK_HZ 12000U
192 #define BSP430_CLOCK_PUC_MCLK_HZ 1048576UL
Clock-related functions implemented on all MSP430 MCUs.
Generic peripheral support for MSP430 MCUs.