Update MSP430X IAR port to ensure the power settings are correct for the clock speed.

This commit is contained in:
Richard Barry 2012-04-01 17:54:07 +00:00
parent f16af5d27e
commit 3b4771e1a9
11 changed files with 433 additions and 17 deletions

View file

@ -443,14 +443,10 @@ xQueueMessage xMessage;
static void prvSetupHardware( void )
{
/* Convert a Hz value to a KHz value, as required by the Init_FLL_Settle()
function. */
unsigned long ulCPU_Clock_KHz = ( configCPU_CLOCK_HZ / 1000UL );
halBoardInit();
LFXT_Start( XT1DRIVE_0 );
Init_FLL_Settle( ( unsigned short ) ulCPU_Clock_KHz, 488 );
hal430SetSystemClock( configCPU_CLOCK_HZ, configLFXT_CLOCK_HZ );
halButtonsInit( BUTTON_ALL );
halButtonsInterruptEnable( BUTTON_SELECT );