#ifndef _HAL_PSRAM_H
#define _HAL_PSRAM_H

#include "board.h"
typedef struct
{
    union
    {
        __IO    uint32_t    WORD[MAX_RAM_BYTESIZE/4];
        __IO	uint16_t	HALFWORD[MAX_RAM_BYTESIZE/2];
        __IO 	uint8_t    	BYTE[MAX_RAM_BYTESIZE];
    };

} RAM_Access;

#define	MEM_PSRAM_UNCACHED	((RAM_Access *) MEM_PSRAM_UNCACHED_BASE)
#define	MEM_PSRAM_L1_CACHED	((RAM_Access *) MEM_PSRAM_L1_CACHED_BASE)
#define	MEM_PSRAM_BASE_ADDR	 MEM_PSRAM_L1_CACHED


void psram_init(void);
void ex_flash_set_quad_mode(void);
#endif
