Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Auxiliary Clock (ACLK)

Defines a driver to facilitate interfacing with the auxiliary clock. More...

Enumerations

enum  CLK_SRC_SEL { ACLK0, ACLK1, WICED_ACLK0 = ACLK0, WICED_ACLK1 = ACLK1 }
 
enum  CLK_SRC_FREQ_SEL { ACLK_FREQ_1_MHZ, ACLK_FREQ_24_MHZ, WICED_ACLK_FREQ_24_MHZ = ACLK_FREQ_24_MHZ }
 

Functions

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

Detailed Description

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 Kit Guide or HW User Manual for your device for more information.

Function Documentation

void wiced_hal_aclk_disable ( UINT32  clkSrc)

Disables the desired auxilary clock source.

Parameters
clkSrc- Clock source to disable (aclk0 or aclk1).
Returns
none
void wiced_hal_aclk_enable ( UINT32  frequency,
UINT32  clkSrc,
UINT32  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 HW User Manual or Kit Guide for your device 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