Classes | Macros | Functions
clk.h File Reference
#include <stdint.h>
Include dependency graph for clk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __attribute__
 

Macros

#define CM_CLK_CTL_BUSY   (1 << 7)
 
#define CM_CLK_CTL_ENAB   (1 << 4)
 
#define CM_CLK_CTL_FLIP   (1 << 8)
 
#define CM_CLK_CTL_KILL   (1 << 5)
 
#define CM_CLK_CTL_MASH(val)   ((val & 0x3) << 9)
 
#define CM_CLK_CTL_PASSWD   (0x5a << 24)
 
#define CM_CLK_CTL_SRC_GND   (0 << 0)
 
#define CM_CLK_CTL_SRC_HDMIAUX   (7 << 0)
 
#define CM_CLK_CTL_SRC_OSC   (1 << 0)
 
#define CM_CLK_CTL_SRC_PLLA   (4 << 0)
 
#define CM_CLK_CTL_SRC_PLLC   (5 << 0)
 
#define CM_CLK_CTL_SRC_PLLD   (6 << 0)
 
#define CM_CLK_CTL_SRC_TSTDBG0   (2 << 0)
 
#define CM_CLK_CTL_SRC_TSTDBG1   (3 << 0)
 
#define CM_CLK_DIV_DIVF(val)   ((val & 0xfff) << 0)
 
#define CM_CLK_DIV_DIVI(val)   ((val & 0xfff) << 12)
 
#define CM_CLK_DIV_PASSWD   (0x5a << 24)
 
#define CM_PCM_OFFSET   (0x00101098)
 
#define CM_PWM_OFFSET   (0x001010a0)
 

Functions

 aligned (4))) cm_clk_t
 

Macro Definition Documentation

◆ CM_CLK_CTL_BUSY

#define CM_CLK_CTL_BUSY   (1 << 7)

Definition at line 40 of file clk.h.

◆ CM_CLK_CTL_ENAB

#define CM_CLK_CTL_ENAB   (1 << 4)

Definition at line 42 of file clk.h.

◆ CM_CLK_CTL_FLIP

#define CM_CLK_CTL_FLIP   (1 << 8)

Definition at line 39 of file clk.h.

◆ CM_CLK_CTL_KILL

#define CM_CLK_CTL_KILL   (1 << 5)

Definition at line 41 of file clk.h.

◆ CM_CLK_CTL_MASH

#define CM_CLK_CTL_MASH (   val)    ((val & 0x3) << 9)

Definition at line 38 of file clk.h.

◆ CM_CLK_CTL_PASSWD

#define CM_CLK_CTL_PASSWD   (0x5a << 24)

Definition at line 37 of file clk.h.

◆ CM_CLK_CTL_SRC_GND

#define CM_CLK_CTL_SRC_GND   (0 << 0)

Definition at line 43 of file clk.h.

◆ CM_CLK_CTL_SRC_HDMIAUX

#define CM_CLK_CTL_SRC_HDMIAUX   (7 << 0)

Definition at line 50 of file clk.h.

◆ CM_CLK_CTL_SRC_OSC

#define CM_CLK_CTL_SRC_OSC   (1 << 0)

Definition at line 44 of file clk.h.

◆ CM_CLK_CTL_SRC_PLLA

#define CM_CLK_CTL_SRC_PLLA   (4 << 0)

Definition at line 47 of file clk.h.

◆ CM_CLK_CTL_SRC_PLLC

#define CM_CLK_CTL_SRC_PLLC   (5 << 0)

Definition at line 48 of file clk.h.

◆ CM_CLK_CTL_SRC_PLLD

#define CM_CLK_CTL_SRC_PLLD   (6 << 0)

Definition at line 49 of file clk.h.

◆ CM_CLK_CTL_SRC_TSTDBG0

#define CM_CLK_CTL_SRC_TSTDBG0   (2 << 0)

Definition at line 45 of file clk.h.

◆ CM_CLK_CTL_SRC_TSTDBG1

#define CM_CLK_CTL_SRC_TSTDBG1   (3 << 0)

Definition at line 46 of file clk.h.

◆ CM_CLK_DIV_DIVF

#define CM_CLK_DIV_DIVF (   val)    ((val & 0xfff) << 0)

Definition at line 54 of file clk.h.

◆ CM_CLK_DIV_DIVI

#define CM_CLK_DIV_DIVI (   val)    ((val & 0xfff) << 12)

Definition at line 53 of file clk.h.

◆ CM_CLK_DIV_PASSWD

#define CM_CLK_DIV_PASSWD   (0x5a << 24)

Definition at line 52 of file clk.h.

◆ CM_PCM_OFFSET

#define CM_PCM_OFFSET   (0x00101098)

Definition at line 62 of file clk.h.

◆ CM_PWM_OFFSET

#define CM_PWM_OFFSET   (0x001010a0)

Definition at line 63 of file clk.h.

Function Documentation

◆ aligned()

aligned ( )


ws281x
Author(s): Alexey Rogachevskiy , Oleg Kalachev
autogenerated on Wed Jun 15 2022 02:46:00