Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
AuxClkDriver

Enumerations

enum  CLK_SRC_SEL { WICED_ACLK0, WICED_ACLK1 }
 Defines a driver to facilitate interfacing with the auxiliary clock. More...
 
enum  CLK_SRC_FREQ_SEL { ACLK_FREQ_1_MHZ, WICED_ACLK_FREQ_24_MHZ }
 

Functions

void wiced_hal_aclk_enable (uint32_t frequency, uint32_t clkSrc, uint32_t baseFreqSel)
 Configures, enables, and starts the aclk to be active on a preconfigured GPIO pin. More...
 
void wiced_hal_aclk_disable (uint32_t clkSrc)
 Disables the desired auxilary clock source. More...
 

Detailed Description

Enumeration Type Documentation

Defines a driver to facilitate interfacing with the auxiliary clock.

Use this driver to output a clock to a GPIO pin for external use. Two clock sources are avaliable: clk0 or clk1, as well as two base frequencies used to calulate the prescaler : 1 MHz or 24 MHz. Note that the desired GPIO pin must have already been configured to output for aclk. See the HW muxing section in the User Documentation for more information.

Function Documentation

void wiced_hal_aclk_disable ( uint32_t  clkSrc)

Disables the desired auxilary clock source.

Parameters
clkSrc- Clock source to disable (aclk0 or aclk1).
Returns
none
void wiced_hal_aclk_enable ( uint32_t  frequency,
uint32_t  clkSrc,
uint32_t  baseFreqSel 
)

Configures, enables, and starts the aclk to be active on a preconfigured GPIO pin.

(!) Note that the desired GPIO pin must have already been configured to output for aclk. See the HW muxing section in the User Documentation for more information.

Parameters
frequency- Desired frequency to output; 0 is the same as disable.
clkSrc- ACLK0 or ACLK1
baseFreqSel- ACLK_FREQ_1_MHZ or ACLK_FREQ_24_MHZ.
Returns
none