AnsweredAssumed Answered

memory map  bf533

Question asked by wanjin3 on Feb 4, 2013
Latest reply on Feb 18, 2013 by wanjin3

hi

When I am learning a memory-mapped, i meet this question

code------

 

#ifndef __BF5XX_H__

#define __BF5XX_H__

 

 

#include <stdio.h>

#include <cdefbf53x.h>

--

--

#define Base_Addr     0x20340000

#define ConfigOption_Reg

             (volatile unsigned short*)(Base_Addr+0x200)
#define CardStatus_Reg


(volatile unsigned short*)(Base_Addr+0x202)
#define CardCopy_Reg


(volatile unsigned short*)(Base_Addr+0x206)

 

i do not get the reason why it can be denfined  so.  and

code---------

//////////////////////////////////////////////////////////

//                       cpld address map        

/////////////////////////////////////////////////////////

#define BANK3_ADDR_BASE  0x20300000

 

 

#define IDECS0BASEADDR          (BANK3_ADDR_BASE+0x00000)

#define IDECS1BASEADDR          (BANK3_ADDR_BASE+0x10000)

#define DM9000BASEADDR          (BANK3_ADDR_BASE+0x20000)

#define USBCSBASEADDR          (BANK3_ADDR_BASE+0x30000)

#define PCMCIABASEADDR          (BANK3_ADDR_BASE+0x40000)

#define FLASHBASEADDR          (BANK3_ADDR_BASE+0xB0000)

 

and FLASHBASEADDR  can be used directly.

 

how can i learn more quickly?

thanks for giving me a direction.

Outcomes