RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
pwmss.h File Reference

Shared PWMSS module functions used by PWM, eQEP and eCAP (when added). More...

Go to the source code of this file.

Macros

#define AM335X_CM_PER_EPWMSSx_CLKCTRL_MODULEMODE_ENABLE   (0x2u)
 
#define AM335X_CM_PER_EPWMSSx_CLKCTRL_MODULEMODE   (0x00000003u)
 
#define AM335X_CM_PER_EPWMSSx_CLKCTRL_IDLEST_FUNC   (0x0u)
 
#define AM335X_CM_PER_EPWMSSx_CLKCTRL_IDLEST_SHIFT   (0x00000010u)
 
#define AM335X_CM_PER_EPWMSSx_CLKCTRL_IDLEST   (0x00030000u)
 

Enumerations

enum  BBB_PWMSS { BBB_PWMSS0 = 0 , BBB_PWMSS1 , BBB_PWMSS2 , BBB_PWMSS_COUNT }
 The set of possible PWM subsystem module. More...
 

Functions

rtems_status_code pwmss_module_clk_config (BBB_PWMSS pwmss_id)
 This function configures the L3 and L4_PER system clocks. It also configures the system clocks for the specified ePWMSS instance.
 

Detailed Description

Shared PWMSS module functions used by PWM, eQEP and eCAP (when added).

Enumeration Type Documentation

◆ BBB_PWMSS

enum BBB_PWMSS

The set of possible PWM subsystem module.

Enumerated type to define various instance of pwm module.

Function Documentation

◆ pwmss_module_clk_config()

rtems_status_code pwmss_module_clk_config ( BBB_PWMSS  pwmss_id)

This function configures the L3 and L4_PER system clocks. It also configures the system clocks for the specified ePWMSS instance.

Parameters
pwmss_idThe instance number of ePWMSS whose system clocks have to be configured.

'pwmss_id' can take one of the following values: (0 <= pwmss_id <= 2)

Returns
True if successful False if Unsuccessful