Skip to content

Commit

Permalink
Switch to enable sleep added for MPC55xx
Browse files Browse the repository at this point in the history
  • Loading branch information
sina committed Mar 14, 2014
1 parent c5f08d3 commit cdcde7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion arch/ppc/mpc55xx/integration/Mcu_Arc_mpc55xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@ void Mcu_Arc_InitClockPost( const Mcu_ClockSettingConfigType *clockSettingsPtr )
{
}

#if defined(CFG_MCU_ARC_LP)
/**
*
* @param mcuMode The mcuMode from Mcu_SetMode()
*/
void Mcu_Arc_SetModePre( Mcu_ModeType mcuMode)
{
#error
#if defined(CFG_MCU_ARC_CONFIG)
Mcu_Arc_SetModePre2(mcuMode, Mcu_Arc_ConfigData.sleepConfig );
#endif
Expand All @@ -123,5 +125,5 @@ void Mcu_Arc_SetModePost( Mcu_ModeType mcuMode)
#endif
}


#endif

9 changes: 8 additions & 1 deletion boards/mpc5516it/config/Mcu_Arc_Cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#define ADJUST_VECTOR 0
#endif


struct TlbEntry TlbTable[] = {
// TLB Entry 0 = 1M Internal flash
{
Expand Down Expand Up @@ -87,7 +88,7 @@ struct TlbEntry TlbTable[] = {
}
};


#if defined(CFG_MCU_ARC_LP)
/*
* Configuration only support:
* - Flash recovery only
Expand Down Expand Up @@ -119,11 +120,16 @@ const Mcu_Arc_SleepConfigType Mcu_Arc_SleepConfig = {
.pData = &sleepPrivData,
};

#endif

const struct Mcu_Arc_Config Mcu_Arc_ConfigData = {
#if defined(CFG_MCU_ARC_LP)
.sleepConfig = &Mcu_Arc_SleepConfig,
#endif
.tblTable = TlbTable,
};

#if defined(CFG_MCU_ARC_LP)

/**
* @param sleepCfg
Expand Down Expand Up @@ -212,3 +218,4 @@ void Mcu_Arc_SetModePost2( Mcu_ModeType mcuMode, const struct Mcu_Arc_SleepConfi



#endif

0 comments on commit cdcde7f

Please sign in to comment.