Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
Macros | Functions
clock_device.c File Reference
#include "clock_device.h"
#include "hwcfg.h"
#include "errno.h"

Macros

#define CLOCK_INIT_RETRY_COUNT   15
 

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 ()
 Calibrate RC clock. More...
 
void Clock_devEnableCrystalClock (void)
 Enable crystal clock. More...
 
void Clock_devDisableCrystalClock (void)
 Disable crystal clock. More...
 
void ClkMon_Handler (void)
 

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.

Macro Definition Documentation

#define CLOCK_INIT_RETRY_COUNT   15

Function Documentation

void ClkMon_Handler ( void  )
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.