mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-02 12:24:07 -04:00
Update MSP430X IAR port to ensure the power settings are correct for the clock speed.
This commit is contained in:
parent
f16af5d27e
commit
3b4771e1a9
11 changed files with 433 additions and 17 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue