* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
+
/**
* Clock initialization for msp430's with the newer basic clock +, sometimes
* referred to as basic clock 2. Derived from the Msp430ClockP for the
* original basic clock peripheral (chips/msp430/clock/Msp430ClockP.nc), with
* some refinements suggested by TI in ther example code, filename
* MSP430x261x_dco_flashcal.c.
- *
+ *
* @author R. Steve McKown <rsmckown@gmail.com>
*/
-
+
#include "Msp430Timer.h"
generic module Msp430ClockP(uint16_t TARGET_DCO_KHZ, uint16_t ACLK_KHZ) @safe()
TACCTL2 = CM_1 + CCIS_1 + CAP; /* Capture on rising ACLK */
TACTL = TASSEL_2 + MC_2 + TACLR; /* Continuous mode, source SMCLK */
}
-
+
command void Msp430ClockInit.defaultInitClocks()
{
const unsigned int divider = TARGET_DCO_KHZ / 1000;
{
call Msp430ClockInit.defaultSetupDcoCalibrate();
}
-
+
default event void Msp430ClockInit.initClocks()
{
call Msp430ClockInit.defaultInitClocks();