This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x GPMC_CS_TIMING_CONFIG macro usage

Other Parts Discussed in Thread: AM3352
/**
* \brief This function configs the timing parameters for Chip Select signal.\n
*
* \param baseAddr Memory address of GPMC.\n
*
* \param csNum Chip Select Number.\n
* This can take one of the following values :\n
* GPMC_CHIP_SELECT_0 -- For Chip Select 0.\n
* GPMC_CHIP_SELECT_1 -- For Chip Select 1.\n
* GPMC_CHIP_SELECT_2 -- For Chip Select 2.\n
* GPMC_CHIP_SELECT_3 -- For Chip Select 3.\n
* GPMC_CHIP_SELECT_4 -- For Chip Select 4.\n
* GPMC_CHIP_SELECT_5 -- For Chip Select 5.\n
* GPMC_CHIP_SELECT_6 -- For Chip Select 6.\n
* GPMC_CHIP_SELECT_7 -- For Chip Select 7.\n
*
* \param conf Configuration value for chip select timing parameters
* Use the GPMC_CS_TIMING_CONFIG macro to get the value
* of conf. \n
*
* \return None.\n
*
*/
void GPMCCSTimingConfig(unsigned int baseAddr, unsigned int csNum,
unsigned int conf)
{
HWREG(baseAddr + GPMC_CONFIG2(csNum)) = conf;

}

- I am confused on third arguments, i mentioned 3rd argument as macro "GPMC_CS_TIMING_CONFIG", directly, i am getting compilation error how to give this 3rd argument.

Thanks & Regards,

vamsi.