Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
Functions
clock_device.h File Reference
#include <stdint.h>
#include "hdf.h"

Go to the source code of this file.

Functions

int32_t Clock_devCrystalClockInit (void)
 Initialize crystal clock. More...
 
void Clock_devRCClockInit (void)
 Initialize RC clock. More...
 
void Clock_devRC10KClockInit (void)
 Initialize 10K RC clock. More...
 
void Clock_devRCCalibration (void)
 Calibrate RC clock. More...
 
void Clock_devEnableCrystalClock (void)
 Enable crystal clock. More...
 
void Clock_devDisableCrystalClock (void)
 Disable crystal clock. More...
 
int32_t Clock_devRegisterIRQ (void *cb)
 Register a callback function to clock interrupt. More...
 
int32_t Clock_devUnregisterIRQ (void *cb)
 Un-register a callback function to clock interrupt. More...
 

Detailed Description

This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.

Function Documentation

int32_t Clock_devCrystalClockInit ( void  )

Initialize crystal clock.

The clock source will be switched to crystal clock by this function.

void Clock_devDisableCrystalClock ( void  )

Disable crystal clock.

This function doesn't switch clock source.

void Clock_devEnableCrystalClock ( void  )

Enable crystal clock.

This function doesn't switch clock source.

void Clock_devRC10KClockInit ( void  )

Initialize 10K RC clock.

The clock source will be switched to 10K RC by this function.

void Clock_devRCCalibration ( void  )

Calibrate RC clock.

void Clock_devRCClockInit ( void  )

Initialize RC clock.

The clock source will be switched to RC clock by this function.

int32_t Clock_devRegisterIRQ ( void *  cb)

Register a callback function to clock interrupt.

Parameters
cbThe pointer to callback function.
int32_t Clock_devUnregisterIRQ ( void *  cb)

Un-register a callback function to clock interrupt.

Parameters
cbThe pointer to callback function.