@web-font-path: "roboto-debian.css";
Loading...
Searching...
No Matches
xosc.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_XOSC_H
8#define _HARDWARE_XOSC_H
9
10#include "pico.h"
11#include "hardware/structs/xosc.h"
12
13
14// Allow lengthening startup delay to accommodate slow-starting oscillators
15
16// PICO_CONFIG: PICO_XOSC_STARTUP_DELAY_MULTIPLIER, Multiplier to lengthen xosc startup delay to accommodate slow-starting oscillators, type=int, min=1, default=1, group=hardware_xosc
17#ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER
18#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 1
19#endif
20
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
37void xosc_init(void);
38
44void xosc_disable(void);
45
53void xosc_dormant(void);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif
void xosc_init(void)
Initialise the crystal oscillator system.
Definition xosc.c:29
void xosc_dormant(void)
Set the crystal oscillator system to dormant.
Definition xosc.c:52
void xosc_disable(void)
Disable the Crystal oscillator.
Definition xosc.c:43