libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
clock.c
Go to the documentation of this file.
1/** @addtogroup clock_file CLOCK peripheral API
2 *
3 * @brief <b>Access functions for the NRF51 Clock Controller </b>
4 *
5 * @ingroup peripheral_apis
6 * LGPL License Terms @ref lgpl_license
7 * @author @htmlonly &copy; @endhtmlonly 2016
8 * Roel Postelmans
9 *
10 */
11
12/*
13 * This file is part of the unicore-mx project.
14 *
15 * This library is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License as published by
17 * the Free Software Foundation, either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public License
26 * along with this library. If not, see <http://www.gnu.org/licenses/>.
27 */
28
31/**@{*/
32
33/** @brief Select nominal frequency of external crystal for HFCLK.
34 *
35 * @details This register has to match the actual crystal used in design to
36 * enable correct behaviour.
37 *
38 * @param[in] freq enum clock_xtal_freq
39 * */
41{
42 CLOCK_XTALFREQ = freq;
43}
44/**@}*/
45
#define CLOCK_XTALFREQ
Definition: 51/clock.h:42
clock_xtal_freq
Definition: 51/clock.h:46
void clock_set_xtal_freq(enum clock_xtal_freq freq)
Select nominal frequency of external crystal for HFCLK.
Definition: clock.c:40