Common Support Modules

The files in directory \D.SignT\Network\DM2DM642EMAC\Common are not required to use with the TCP/IP stack but could facilitate the development. All the Support SW examples make use of these modules


This directory includes:

Common.c     - Common Support Functions: Implementation
Common.h     - Common Support Functions: Definitions and Prototypes
cprintf.c     - Custom printf Functions: Implementation
cprintf.h     - Custom printf: Definitions and Prototypes
nbuffer.c     - Network buffer management: Implementation
nbuffer.h     - Network buffer management: Definitions and Prototypes
timer.c     - DSP timer: Implementation
timer.h     - DSP timer: Definitions and Prototypes
uartio.c     - UART IO: Implementation
uartio.h     - UART IO: Definitions and Prototypes
user_input.gel     - User input
xdump.c     - Hex Dump Functions: Implementation
xdump.h     - Hex Dump: Definitions and Prototypes




Link information:

Use the following linker instruction to link these modules to external memory:


Application linker command file App.cmd:

/* #define COMMONSECTIONS IRAM all common modules linked to internal RAM */
#define COMMONSECTIONS SDRAM /* all common modules linked to external RAM */
#include "../../../Common/CommonSections.cmd"


Linker command file \Common\CommonSections.cmd:

SECTIONS
{
/*------------------------------------------------------------------------*/
/* Support functions */
/*------------------------------------------------------------------------*/
.uarttext > COMMONSECTIONS /* UART code */
.cprintftext > COMMONSECTIONS /* CPrintf section */
.commontext > COMMONSECTIONS /* common code */
}