Select one of the symbols to view example projects that use it.
 
Outline
#define _HARDWARE_XOSC_H
#include "pico.h"
#include "hardware/structs/xosc.h"
#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER
xosc_init();
xosc_disable();
xosc_dormant();
Files
loading...
SourceVuRaspberry Pi Pico SDK and ExamplesPicoSDKsrc/rp2_common/hardware_xosc/include/hardware/xosc.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause *//* ... */ #ifndef _HARDWARE_XOSC_H #define _HARDWARE_XOSC_H #include "pico.h" #include "hardware/structs/xosc.h" // Allow lengthening startup delay to accommodate slow-starting oscillators // 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 #ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 1 #endif #ifdef __cplusplus extern "C" { #endif /** \file hardware/xosc.h * \defgroup hardware_xosc hardware_xosc * * \brief Crystal Oscillator (XOSC) API *//* ... */ /*! \brief Initialise the crystal oscillator system * \ingroup hardware_xosc * * This function will block until the crystal oscillator has stabilised. **//* ... */ void xosc_init(void); /*! \brief Disable the Crystal oscillator * \ingroup hardware_xosc * * Turns off the crystal oscillator source, and waits for it to become unstable **//* ... */ void xosc_disable(void); /*! \brief Set the crystal oscillator system to dormant * \ingroup hardware_xosc * * Turns off the crystal oscillator until it is woken by an interrupt. This will block and hence * the entire system will stop, until an interrupt wakes it up. This function will * continue to block until the oscillator becomes stable after its wakeup. **//* ... */ void xosc_dormant(void); #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.