Menu Toggle
v1.5.0
pll.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
#ifndef _HARDWARE_PLL_H
8
#define _HARDWARE_PLL_H
9
10
#include "
pico.h
"
11
#include "hardware/structs/pll.h"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
29
typedef
pll_hw_t
*
PLL
;
30
31
#define pll_sys pll_sys_hw
32
#define pll_usb pll_usb_hw
33
34
#ifndef PICO_PLL_VCO_MIN_FREQ_MHZ
35
#define PICO_PLL_VCO_MIN_FREQ_MHZ 750
36
#endif
37
38
#ifndef PICO_PLL_VCO_MAX_FREQ_MHZ
39
#define PICO_PLL_VCO_MAX_FREQ_MHZ 1600
40
#endif
41
50
void
pll_init
(
PLL
pll, uint ref_div, uint vco_freq, uint post_div1, uint post_div2);
51
60
void
pll_deinit
(
PLL
pll);
61
62
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif
pll_init
void pll_init(PLL pll, uint ref_div, uint vco_freq, uint post_div1, uint post_div2)
Initialise specified PLL.
Definition:
pll.c:13
pll_hw_t
Definition:
pll.h:24
pico.h
pll_deinit
void pll_deinit(PLL pll)
Release/uninitialise specified PLL.
Definition:
pll.c:75