/* Switch the Self-refresh mode between normal and self-refresh mode.  */
void EMC_DynCtrlSelfRefresh(uint32_t self_refresh_mode)
/* Switch the Self-refresh mode between normal and self-refresh mode.  */
void EMC_DynCtrlSelfRefresh(uint32_t self_refresh_mode)
{
   uint32_t mask = ~(uint32_t)(4);
   LPC_EMC->DynamicControl = ((LPC_EMC->DynamicControl & mask) |self_refresh_mode);
}