Download Target Libraries
Transcript
W271 Target Libraries Section 2. Board Support Functions 2192-08579-000-000 An example of mapping memory on the 188EB target. void vArCS (UINT8 bCs, FLAG fEnable, FLAG fIStop, FLAG fMem, FLAG fRdy, UINT8 bWS, UINT32 ulStrtAddr, UINT32 ulStopAddr) Example : Memory on the STE bus. // // Map a block of STEbus memory from 50000h to 58000h. // #include <ArTypes.h> #include <Ar188eb.h> UINT8 FLAG FLAG FLAG FLAG UINT8 UINT32 UINT32 bCs = 4; // Pick Chip select #4 for this block. fEnable = TRUE; // Enable this CS block. fIStop = FALSE; // Stop at upper address limit. fMem = TRUE; // This is a memory block. fRdy = TRUE; // Set Rdy flag for STEbus access. bWS = 1; // Set 1 wait state but Rdy will rule. ulStrtAddr = 0x50000L; // Starting address of block. ulStopAddr = 0x58000L; // Upper limit address(+1) of block. // Now call the chip select function. vArCS (bCs, fEnable, fIStop, fMem, fRdy, bWS, ulStrtAddr, ulStopAddr) // Memory at 50000h for 32K is now available for access on the STE bus. Page 21