Part Number: TMS320F28379S
Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
I am porting an f280025 code to f28379. Do I need to use the ASysCtl_selectCMPHPMux() for ADC configuration. If yes, then what is the equivalent function.
//*****************************************************************************
//
//! Select the value for CMPLPMXSEL for F28379S.
//!
//! \param select is of type ASysCtl_CMPLPMuxSelect.
//! \param value is 0, 1, 2, 3, or 4.
//!
//! This function is used to write a value to one mux select at a time.
//! The parameter \e select can be one of the following values:
//!
//! - \b ASYSCTL_CMPLPMUX_SELECT_1
//! - \b ASYSCTL_CMPLPMUX_SELECT_2
//! - \b ASYSCTL_CMPLPMUX_SELECT_3
//! - \b ASYSCTL_CMPLPMUX_SELECT_4
//!
//! \return None.
//
//*****************************************************************************
static inline void
ASysCtl_selectCMPLPMux(ASysCtl_CMPLPMuxSelect select, uint32_t value)
{
ASSERT(value <= 4);
EALLOW;
//
// Set the value for the appropriate Mux Select.
//
HWREG(ANALOGSUBSYS_BASE + ASYSCTL_O_CMPLPMXSEL) =
(HWREG(ANALOGSUBSYS_BASE + ASYSCTL_O_CMPLPMXSEL) &
~((uint32_t)ASYSCTL_CMPLPMXSEL_CMP1LPMXSEL_M << (uint32_t)select)) |
(value << (uint32_t)select);
EDIS;
}


