Microchip® Advanced Software Framework

sdramc.h File Reference

SDRAM controller (SDRAMC) driver for SAM.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "sleepmgr.h"

Data Structures

union  sdramc_memory_dev::sdramc_cr
 
struct  sdramc_memory_dev::sdramc_cr::sdramc_cr_bm
 
struct  sdramc_memory_dev
 

Typedefs

typedef struct sdramc_memory_dev sdramc_memory_dev_t
 

Functions

static void sdram_disable_scrambling (void)
 Off-chip Memory Scrambling is disabled. More...
 
static void sdram_disable_unaligned_support (void)
 Unaligned access is not supported. More...
 
static void sdram_enable_scrambling (uint32_t ul_key1, uint32_t ul_key2)
 Off-chip Memory Scrambling is enabled. More...
 
static void sdram_enable_unaligned_support (void)
 Unaligned access is supported. More...
 
static void sdram_enter_deep_power_down (void)
 Enter SDRAM deep power down mode. More...
 
static void sdram_enter_power_down (void)
 Set the SDRAM in power down mode. More...
 
static void sdram_enter_self_refresh (void)
 Set the SDRAM in self-refresh mode. More...
 
static void sdram_exit_power_down (void)
 Exit from the SDRAM power down mode, and inhibit power down mode. More...
 
static void sdram_exit_self_refresh (void)
 Exit from the SDRAM self-refresh mode, and inhibit self-refresh mode. More...
 
void sdramc_deinit (void)
 De-initialize the SDRAM controller. More...
 
void sdramc_init (sdramc_memory_dev_t *p_sdram, uint32_t ul_clk)
 Initialize the SDRAM controller. More...
 

static void sdram_disable_scrambling ( void  )
inlinestatic

Off-chip Memory Scrambling is disabled.

static void sdram_disable_unaligned_support ( void  )
inlinestatic

Unaligned access is not supported.

static void sdram_enable_scrambling ( uint32_t  ul_key1,
uint32_t  ul_key2 
)
inlinestatic

Off-chip Memory Scrambling is enabled.

Parameters
ul_key1Key Part 1.
ul_key2Key Part 2.
static void sdram_enable_unaligned_support ( void  )
inlinestatic

Unaligned access is supported.

Referenced by main().

static void sdram_enter_deep_power_down ( void  )
inlinestatic

Enter SDRAM deep power down mode.

Note
This mode is unique to low-power SDRAM.

References SLEEPMGR_ACTIVE, and sleepmgr_unlock_mode().

static void sdram_enter_power_down ( void  )
inlinestatic

Set the SDRAM in power down mode.

References SLEEPMGR_ACTIVE, and sleepmgr_unlock_mode().

static void sdram_enter_self_refresh ( void  )
inlinestatic

Set the SDRAM in self-refresh mode.

References SLEEPMGR_ACTIVE, and sleepmgr_unlock_mode().

static void sdram_exit_power_down ( void  )
inlinestatic

Exit from the SDRAM power down mode, and inhibit power down mode.

References SLEEPMGR_ACTIVE, and sleepmgr_lock_mode().

static void sdram_exit_self_refresh ( void  )
inlinestatic

Exit from the SDRAM self-refresh mode, and inhibit self-refresh mode.

References SLEEPMGR_ACTIVE, and sleepmgr_lock_mode().