Esempio n. 1
0
//----------------------------------------------------------
//      Init the platform as if on cold reset
//----------------------------------------------------------
void initPlatform(void)
{
    // no clock calibration for launchpad (?)
    // initialize main timers in system mode (no timer B available)
    msp430InitTimerA();

#if USE_USER_BUTTON
    userButtonInit();
#endif
}
Esempio n. 2
0
static void msp430InitClocks(void)
{
#if USE_HARDWARE_TIMERS
    // reset timers
    TACTL = TACLR;
    TBCTL = TBCLR;

    msp430CalibrateDCO();

    // no need to disable oscillator fault NMI: LFXT1 was configured in LF mode
    // IE1 &= ~OFIE;

    // initialize main timers in system mode
    msp430InitTimerA();
    msp430InitTimerB();
#endif
}