Texas Instruments TMS320C6000 Benutzerhandbuch

Seite von 62
BOARD_SUPPORT
3-3
 BOARD API Module
3.2
BOARD API Reference  
Returns value of specified memory-mapped register
BOARD_readReg
Function
Uint32 BOARD_readReg(
  BOARD_Reg boardRegister
);
Arguments
boardRegister
Register enumeration
C6711 DSK
-
BOARD_REG_IOPORT
Return Value
Uint32
Returns specified register value
Description
Returns the value of the specified memory-mapped register.
Example
Uint32 boardRegVal; 
boardRegVal = BOARD_readReg(BOARD_REG_IOPORT);
Compile time constant
BOARD_SUPPORT
Constant
BOARD_SUPPORT
Description
Compile time constant that has a value of 1 if the board supports the
different modules via 
MODULE_SUPPORT
 constants and 0 otherwise. You
are not required to use this constant.
Currently, all devices support this module.
Example
#if (BOARD_SUPPORT)
  /* do DIP operations */
#endif