125 clk->
PCLKCR3 &= (~cpuTimerNumber);
348 clk->
PCLKCR1 &= (~(1 << pwmNumber));
504 clk->
PCLKCR3 |= cpuTimerNumber;
742 clk->
PCLKCR1 |= 1 << pwmNumber;
873 clk->
XCLK |= preScaler;
CLK_XClkInSrc_e
Enumeration to define the clock in source.
#define CLK_CLKCTL_INTOSC2OFF_BITS
Defines the location of the INTOSC2OFF bits in the CLKCTL register.
void CLK_disableCpuTimerClock(CLK_Handle clkHandle, const CLK_CpuTimerNumber_e cpuTimerNumber)
Disables the CPU timer clock.
#define CLK_PCLKCR0_SPIBENCLK_BITS
Defines the location of the SPIBENCLK bits in the PCLKCR0 register.
void CLK_disableAdcClock(CLK_Handle clkHandle)
Disables the ADC clock.
Defines the clock (CLK) object.
#define CLK_XCLK_XCLKINSEL_BITS
Defines the location of the XCLKINSEL bits in the XCLK register.
void CLK_enableSpiaClock(CLK_Handle clkHandle)
Enables the SPI-A clock.
CLK_Osc2Src_e
Enumeration to define the clock oscillator 2 source.
#define CLK_CLKCTL_OSCCLKSRCSEL_BITS
Defines the location of the OSCCLKSRCSEL bits in the CLKCTL register.
#define DISABLE_PROTECTED_REGISTER_WRITE_MODE
Define to disable protected register writes.
#define CLK_CLKCTL_WDCLKSRCSEL_BITS
Defines the location of the WDCLKSRCSEL bits in the CLKCTL register.
void CLK_disableSpibClock(CLK_Handle clkHandle)
Disables the SPI-B clock.
void CLK_setXClkInSrc(CLK_Handle clkHandle, const CLK_XClkInSrc_e src)
Sets the XCLKIN Clock Source.
void CLK_disableTbClockSync(CLK_Handle clkHandle)
Disables the ePWM module time base clock sync signal.
void CLK_enableTbClockSync(CLK_Handle clkHandle)
Enables the ePWM module time base clock sync signal.
void CLK_disableEqep1Clock(CLK_Handle clkHandle)
Disables the EQEP1 clock.
void CLK_setTimer2PreScale(CLK_Handle clkHandle, const CLK_Timer2PreScaler_e preScaler)
void CLK_setOscSrc(CLK_Handle clkHandle, const CLK_OscSrc_e src)
Sets the oscillator clock source.
void CLK_setWatchDogSrc(CLK_Handle clkHandle, const CLK_WdClkSrc_e src)
Sets the watchdog clock source.
void CLK_enableClkIn(CLK_Handle clkHandle)
Enables the XCLKIN oscillator input.
void CLK_disableEcanaClock(CLK_Handle clkHandle)
Disables the ECANA clock.
#define CLK_CLKCTL_XTALOSCOFF_BITS
Defines the location of the XTALOSCOFF bits in the CLKCTL register.
void CLK_enableSciaClock(CLK_Handle clkHandle)
Enables the SCI-A clock.
void CLK_enableCpuTimerClock(CLK_Handle clkHandle, const CLK_CpuTimerNumber_e cpuTimerNumber)
Enables the CPU timer clock.
void CLK_enableWatchDogHaltMode(CLK_Handle clkHandle)
Enables the watchdog halt mode ignore.
CLK_LowSpdPreScaler_e
Enumeration to define the low speed clock prescaler, which sets the clock frequency.
#define CLK_XCLK_XCLKOUTDIV_BITS
Defines the location of the XCLKOUTDIV bits in the XCLK register.
#define CLK_PCLKCR0_HRPWMENCLK_BITS
Defines the location of the HRPWMENCLK bits in the PCLKCR0 register.
#define CLK_CLKCTL_TMR2CLKSRCSEL_BITS
Defines the location of the TMR2CLKSRCSEL bits in the CLKCTL register.
#define CLK_CLKCTL_INTOSC1OFF_BITS
Defines the location of the INTOSC1OFF bits in the CLKCTL register.
void CLK_disableScibClock(CLK_Handle clkHandle)
Disables the SCI-B clock.
void CLK_enableCompClock(CLK_Handle clkHandle, const CLK_CompNumber_e compNumber)
Enables the comparator clock.
void CLK_enableOsc2(CLK_Handle clkHandle)
Enables internal oscillator 2.
#define CLK_CLKCTL_INTOSC2HALTI_BITS
Defines the location of the INTOSC2HALTI bits in the CLKCTL register.
void CLK_disableClkIn(CLK_Handle clkHandle)
Disables the XCLKIN oscillator input.
void CLK_enableScibClock(CLK_Handle clkHandle)
Enables the SCI-B clock.
CLK_Handle CLK_init(void *pMemory, const size_t numBytes)
Initializes the clock (CLK) object handle.
void CLK_enableClaClock(CLK_Handle clkHandle)
Enables the CLA clock.
void CLK_setTimer2Src(CLK_Handle clkHandle, const CLK_Timer2Src_e src)
Sets the timer 2 clock source.
volatile uint16_t LOSPCP
Low-Speed Peripheral Clock Pre-Scaler Register.
#define ENABLE_PROTECTED_REGISTER_WRITE_MODE
Define to allow protected register writes.
void CLK_setOsc2Src(CLK_Handle clkHandle, const CLK_Osc2Src_e src)
Sets the oscillator 2 clock source.
CLK_CompNumber_e
Enumeration to define the comparator numbers.
#define CLK_CLKCTL_INTOSC1HALTI_BITS
Defines the location of the INTOSC1HALTI bits in the CLKCTL register.
CLK_ClkOutPreScaler_e
Enumeration to define the external clock output frequency.
struct _CLK_Obj_ * CLK_Handle
Defines the clock (CLK) handle.
#define CLK_PCLKCR0_SCIAENCLK_BITS
Defines the location of the SCIAENCLK bits in the PCLKCR0 register.
void CLK_enableSpibClock(CLK_Handle clkHandle)
Enables the SPI-B clock.
void CLK_enableGpioInputClock(CLK_Handle clkHandle)
Enables the GPIO input clock.
CLK_Timer2PreScaler_e
Enumeration to define the timer 2 prescaler, which sets the timer 2 frequency.
void CLK_enableEqep2Clock(CLK_Handle clkHandle)
Enables the EQEP2 clock.
void CLK_disableOsc2HaltMode(CLK_Handle clkHandle)
Disables internal oscillator 2 halt mode ignore.
void CLK_disablePwmClock(CLK_Handle clkHandle, const PWM_Number_e pwmNumber)
Disables the pwm clock.
#define CLK_PCLKCR3_GPIOINENCLK_BITS
Defines the location of the GPIOINENCLK bits in the PCLKCR3 register.
#define CLK_PCLKCR0_TBCLKSYNC_BITS
Defines the location of the TBCLKSYNC bits in the PCLKCR0 register.
Contains public interface to various functions related to the clock (CLK) object. ...
void CLK_enableEqep1Clock(CLK_Handle clkHandle)
Enables the EQEP1 clock.
void CLK_enableLinAClock(CLK_Handle clkHandle)
Enables the LIN-A clock.
void CLK_setLowSpdPreScaler(CLK_Handle clkHandle, const CLK_LowSpdPreScaler_e preScaler)
Sets the low speed peripheral clock prescaler.
void CLK_disableI2cClock(CLK_Handle clkHandle)
Disables the I2C clock.
#define CLK_PCLKCR0_I2CAENCLK_BITS
Defines the location of the I2CAENCLK bits in the PCLKCR0 register.
CLK_Timer2Src_e
Enumeration to define the timer 2 source.
volatile uint16_t XCLK
XCLKOUT/XCLKIN Control.
void CLK_disableSpiaClock(CLK_Handle clkHandle)
Disables the SPI-A clock.
void CLK_enableOsc1(CLK_Handle clkHandle)
Enables internal oscillator 1.
void CLK_enableEcap1Clock(CLK_Handle clkHandle)
Enables the ECAP1 clock.
#define CLK_PCLKCR0_ECANAENCLK_BITS
Defines the location of the ECANAENCLK bits in the PCLKCR0 register.
#define CLK_PCLKCR0_LINAENCLK_BITS
Defines the location of the LINAENCLK bits in the PCLKCR0 register.
void CLK_disableOsc1HaltMode(CLK_Handle clkHandle)
Disables internal oscillator 1 halt mode ignore.
void CLK_disableSciaClock(CLK_Handle clkHandle)
Disables the SCI-A clock.
void CLK_enableEcanaClock(CLK_Handle clkHandle)
Enables the ECANA clock.
#define CLK_CLKCTL_WDHALTI_BITS
Defines the location of the WDHALTI bits in the CLKCTL register.
void CLK_disableEqep2Clock(CLK_Handle clkHandle)
Disables the EQEP2 clock.
volatile uint16_t PCLKCR1
Peripheral Clock Control Register 1.
void CLK_disableClaClock(CLK_Handle clkHandle)
Disables the CLA clock.
#define CLK_PCLKCR0_ADCENCLK_BITS
Defines the location of the ADCENCLK bits in the PCLKCR0 register.
CLK_WdClkSrc_e
Enumeration to define the watchdog clock source.
void CLK_disableEcap1Clock(CLK_Handle clkHandle)
Disables the ECAP1 clock.
void CLK_enableI2cClock(CLK_Handle clkHandle)
Enables the I2C clock.
#define CLK_PCLKCR1_ECAP1ENCLK_BITS
Defines the location of the ECAP1ENCLK bits in the PCLKCR1 register.
#define CLK_PCLKCR1_EQEP2ENCLK_BITS
Defines the location of the EQEP2ENCLK bits in the PCLKCR1 register.
volatile uint16_t CLKCTL
Clock Control Register.
void CLK_enableOsc1HaltMode(CLK_Handle clkHandle)
Enables internal oscillator 1 halt mode ignore.
#define CLK_PCLKCR0_SPIAENCLK_BITS
Defines the location of the SPIAENCLK bits in the PCLKCR0 register.
void CLK_enableCrystalOsc(CLK_Handle clkHandle)
Enables the crystal oscillator.
#define CLK_CLKCTL_XCLKINOFF_BITS
Defines the location of the XCLKINOFF bits in the CLKCTL register.
void CLK_disableLinAClock(CLK_Handle clkHandle)
Disables the LIN-A clock.
void CLK_disableGpioInputClock(CLK_Handle clkHandle)
Disables the GPIO input clock.
void CLK_setClkOutPreScaler(CLK_Handle clkHandle, const CLK_ClkOutPreScaler_e preScaler)
Sets the external clock out prescaler.
void CLK_disableWatchDogHaltMode(CLK_Handle clkHandle)
Disables the watchdog halt mode ignore.
#define CLK_PCLKCR3_CLA1ENCLK_BITS
Defines the location of the CLA1ENCLK bits in the PCLKCR3 register.
volatile uint16_t PCLKCR3
Peripheral Clock Control Register 3.
void CLK_disableCompClock(CLK_Handle clkHandle, const CLK_CompNumber_e compNumber)
Disables the comparator clock.
volatile uint16_t PCLKCR0
Peripheral Clock Control Register 0.
void CLK_enableOsc2HaltMode(CLK_Handle clkHandle)
Enables internal oscillator 2 halt mode ignore.
#define CLK_PCLKCR0_SCIBENCLK_BITS
Defines the location of the SCIBENCLK bits in the PCLKCR0 register.
CLK_CpuTimerNumber_e
Enumeration to define the CPU timer numbers.
void CLK_enableAdcClock(CLK_Handle clkHandle)
Enables the ADC clock.
PWM_Number_e
Enumeration to define the pulse width modulation (PWM) numbers.
#define CLK_PCLKCR1_EQEP1ENCLK_BITS
Defines the location of the EQEP1ENCLK bits in the PCLKCR1 register.
void CLK_disableOsc2(CLK_Handle clkHandle)
Disables internal oscillator 2.
void CLK_enablePwmClock(CLK_Handle clkHandle, const PWM_Number_e pwmNumber)
Enables the pwm clock.
void CLK_disableHrPwmClock(CLK_Handle clkHandle)
Disables the HRPWM clock.
CLK_OscSrc_e
Enumeration to define the clock oscillator source.
#define CLK_CLKCTL_TMR2CLKPRESCALE_BITS
Defines the location of the TMR2CLKPRESCALE bits in the CLKCTL register.
void CLK_disableCrystalOsc(CLK_Handle clkHandle)
Disables the crystal oscillator.
#define CLK_CLKCTL_OSCCLKSRC2SEL_BITS
Defines the location of the OSCCLKSRC2SEL bits in the CLKCTL register.
void CLK_enableHrPwmClock(CLK_Handle clkHandle)
Enables the HRPWM clock.
void CLK_disableOsc1(CLK_Handle clkHandle)
Disables internal oscillator 1.