Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
clock_control_litex.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Antmicro <www.antmicro.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef CLK_CTRL_LITEX_H
14#define CLK_CTRL_LITEX_H
15
21
22#include <zephyr/types.h>
23
25#define MMCM DT_NODELABEL(clock0)
27#define NCLKOUT DT_PROP_LEN(MMCM, clock_output_names)
28
38
42
43#endif /* CLK_CTRL_LITEX_H */
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Configuration for a single MMCM clock output.
Definition clock_control_litex.h:32
uint8_t duty
Duty cycle of the clock signal, in percent.
Definition clock_control_litex.h:36
uint8_t clkout_nr
Index of the clock output to configure.
Definition clock_control_litex.h:33
uint16_t phase
Phase offset, in degrees.
Definition clock_control_litex.h:35
uint32_t rate
Frequency to set, in Hz.
Definition clock_control_litex.h:34