HALFRED  0.4.0
Data Structures | Macros | Typedefs
hal_clk.h File Reference

Clocks API. More...

Detailed Description

Clocks API.

Purpose
HALFRED Hardware Abstraction Layer
Version
Revision
1500
License
$License$
#include <stdint.h>
#include "hal_config.h"
#include "hal_defs.h"

Go to the source code of this file.

Data Structures

struct  ClockControllerDesc
 Clock controller descriptor. More...
 

Macros

#define CC_DEFAULT_CLOCK   0
 Identifier of a default system clock (usually main clock of the CPU)
 
#define CC_Init(cc)   (cc)->Init(cc)
 
#define CC_Deinit(cc)   (cc)->Deinit(cc)
 
#define CC_SetClockSource(cc, clk, clk_src, freq)   (cc)->SetClockSource((cc), (clk), (clk_src), (freq))
 
#define CC_GetClockSource(cc, clk)   (cc)->GetClockSource((cc), (clk))
 
#define CC_GetClockSourceFreq(cc, clk)   (cc)->GetClockSourceFreq((cc), (clk))
 
#define CC_SetClockFreq(cc, clk, freq)   (cc)->SetClockFreq((cc), (clk), (freq))
 
#define CC_GetClockFreq(cc, clk)   (cc)->GetClockFrequency((cc), (clk))
 

Typedefs

typedef struct
ClockControllerDesc
ClockController
 Clock controller handler.