?? mem1.c
字號:
** The memcpy routine copies characters between memory
** buffers For example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * dest - Pointer to the destination buffet
** array
** * src - Pointer to the source buffet array
** count - Size of the source buffer array
** Returns :
** --- - *dest return value
** ===================================================================
*/
/*
void* MEM1_memMemcpy(void* dest,void* src,ssize_t count)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memMemset (bean DSP_MEM)
**
** Description :
** The memset function sets user specified number of bytes
** in memory to a specific character For example see
** <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * dest - Pointer to the destination buffer
** array
** c - Value to fill
** count - Size of array to fill
** Returns :
** --- - *dest return value
** ===================================================================
*/
/*
void* MEM1_memMemset(void* dest,int c,ssize_t count)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memReadP16 (bean DSP_MEM)
**
** Description :
** The function memReadP16 reads a 16-bit word from the
** program data (P data), address space. The memReadP16
** executes the specific instructions to reference program P
** data, as opposed to X data. For example see <Typical
** Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pSrc - The address in P memory from which to
** read a 16-bit word
** Returns :
** --- - Contents of program memory word (16
** bits)
** ===================================================================
*/
/*
UWord16 MEM1_memReadP16(UWord16 *pSrc)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memReadP32 (bean DSP_MEM)
**
** Description :
** The function memReadP32 reads a 32-bit word from the
** program data (P data) address space. The memReadP32
** executes the specific instructions to reference program P
** data, as opposed to X data. For example see <Typical
** Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pSrc - The address in P memory from which to
** read a 32-bit (two word) value
** Returns :
** --- - Contents of two program memory words
** (32 bits)
** ===================================================================
*/
/*
UWord32 MEM1_memReadP32(UWord32 *pSrc)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memWriteP16 (bean DSP_MEM)
**
** Description :
** The memWriteP16 function writes a 16-bit value into the
** program data, (P data), address space. The memWriteP16
** executes the specific instructions required to write to
** program (P) data, as opposed to X data. For example see
** <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** Data - The 16-bit data to write into P memory
** * pDest - The address to which to write the
** data in P memory
** Returns : Nothing
** ===================================================================
*/
/*
void MEM1_memWriteP16(UWord16 Data,Word16 *pDest)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memWriteP32 (bean DSP_MEM)
**
** Description :
** The memWriteP32 function writes a 32-bit value into the
** program data, (P data), address space. The memWriteP32
** executes specific instructions required to write to
** program P data, as opposed to X data. For example see
** <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** Data - The 32-bit data to write into P memory
** * pDest - The address to which to write the
** data in P memory
** Returns : Nothing
** ===================================================================
*/
/*
void MEM1_memWriteP32(Word32 Data,Word32 *pDest)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memCopyPtoP (bean DSP_MEM)
**
** Description :
** The memCopyPtoP copies a block of data from the P
** (program) data memory to the P data memory. The
** memCopyPtoP executes the specific instructions required
** to read data from program P data memory.
** Parameters :
** NAME - DESCRIPTION
** * pDest - The destination address in P memory
** to which to copy the data
** * pSrc - The source address in P memory from
** which to copy the data
** Count - The size of the data to be copied
** Returns :
** --- - *dest return value
** ===================================================================
*/
/*
void* MEM1_memCopyPtoP(void* pDest,void* pSrc,ssize_t Count)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_MergeFree (bean DSP_MEM)
**
** Description :
** Assumes that pBlock points to a block not in-use. Checks the
** block following to determine its state. If it is not in-use,
** merge it to the current block. pBlock will not change, but the
** size of the block to which it points may increase.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
Int32 MEM1_MergeFree(sPool *pPool,sBlockHead *pBlock,Int32 SizeNeeded)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_SplitBlock (bean DSP_MEM)
**
** Description :
** Assumes that pBlock points to a block larger than SizeNeeded.
** If the block is large enough to contain SizeNeeded plus
** another block, the block is split. The area returned to the
** user is the user portion of the first block.The remainder in
** its entirety will be set to describe a not-in-use block.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void* MEM1_SplitBlock(sPool *pPool,sBlockHead *pBlock,Int32 SizeNeeded)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_SplitBlockRev (bean DSP_MEM)
**
** Description :
** Assumes that pBlock points to a block larger than SizeNeeded.
** If the block is large enough to contain SizeNeeded plus
** another block, the block is split. The area returned is the
** portion of the end of the block. The remainder in its entirety
** will be set to describe a not-in-use block.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void* MEM1_SplitBlockRev(sPool *pPool,sBlockHead *pBlock,UInt32 SizeNeeded)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : Initialize (bean DSP_MEM)
**
** Description :
** This function initializes the memory manager driver.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
static void Initialize(void)
{
// This method is implemented in mem.c
}
*/
/*
** ===================================================================
** Method : MEM1_memMemsetP (bean DSP_MEM)
**
** Description :
** The memset function sets user specified number of bytes
** in 'P' memory to a specific character
** Parameters :
** NAME - DESCRIPTION
** * dest - Pointer to the destination buffer
** array in 'P' memory
** c - Value to fill
** count - Size of array to fill
** Returns :
** --- - *dest return value
** ===================================================================
*/
/*
void* MEM1_memMemsetP(void* dest,int c,ssize_t count)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memCopyPtoX (bean DSP_MEM)
**
** Description :
** The memCopyPtoX copies a block of data from the P
** (program) data memory to the X data memory. The
** memCopyPtoX executes the specific instructions required
** to read data from program P data memory, as opposed to X
** data. For example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pDest - The destination address in X memory
** to which to copy the data
** * pSrc - The source address in P memory from
** which to copy the data
** Count - The size of the data to be copied
** Returns :
** --- - *dest return value
** ===================================================================
*/
/*
void* MEM1_memCopyPtoX(void* pDest,void* pSrc,ssize_t Count)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memCopyXtoP (bean DSP_MEM)
**
** Description :
** The memCopyXtoP copies a block of data from the X data
** memory to the P (program) data memory. The memCopyXtoP
** executes the specific instructions required to write data
** to program P data memory, as opposed to X data. For
** example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pDest - The destination address in P memory
** to which to copy the data
** * pSrc - The source address in X memory from
** which to copy the data
** Count - The size of the data to be copied
** Returns :
** --- - *dest return value
** ===================================================================
*/
/*
void* MEM1_memCopyXtoP(void* pDest,void* pSrc,ssize_t Count)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_Init (bean DSP_MEM)
**
** Description :
** This method initializes the driver.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void MEM1_Init(void)
{
mem_sState InitialState;
/* These variables are defined in linker.cmd */
extern UInt16 memEXbit;
extern UInt16 memNumEMpartitions;
extern UInt16 memNumIMpartitions;
extern char * memIMpartitionAddr;
extern char * memEMpartitionAddr;
InitialState.EXbit = memEXbit;
InitialState.numExtPartitions = memNumEMpartitions;
InitialState.numIntPartitions = memNumIMpartitions;
InitialState.extPartitionList = (mem_sPartition*)&memEMpartitionAddr;
InitialState.intPartitionList = (mem_sPartition*)&memIMpartitionAddr;
memInitialize(&InitialState);
}
/* END MEM1. */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.97 [03.74]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -