@@ -26,23 +26,6 @@ extern "C" {
2626 * more accurate than the ring oscillator.
2727 */
2828
29- /*! \brief Set frequency of the Ring Oscillator
30- * \ingroup hardware_rosc
31- *
32- * \param code The drive strengths. See the datasheet for information on this value.
33- */
34- void rosc_set_freq (uint32_t code );
35-
36- /*! \brief Set range of the Ring Oscillator
37- * \ingroup hardware_rosc
38- *
39- * Frequency range. Frequencies will vary with Process, Voltage & Temperature (PVT).
40- * Clock output will not glitch when changing the range up one step at a time.
41- *
42- * \param range 0x01 Low, 0x02 Medium, 0x03 High, 0x04 Too High.
43- */
44- void rosc_set_range (uint range );
45-
4629/*! \brief Disable the Ring Oscillator
4730 * \ingroup hardware_rosc
4831 *
@@ -67,29 +50,6 @@ void rosc_set_dormant(void);
6750*/
6851void rosc_restart (void );
6952
70- /*! \brief Get the next ROSC freq code
71- * \ingroup hardware_rosc
72- *
73- * Given a ROSC freq code, return the next-numerically-higher code.
74- * Top result bit is set when called on maximum ROSC code.
75- *
76- * \param code The current ROSC freq code.
77- * \return The next ROSC freq code.
78- */
79- uint32_t next_rosc_code (uint32_t code );
80-
81- /*! \brief Set the frequency of the Ring Oscillator within a range
82- * \ingroup hardware_rosc
83- *
84- * This function will set the frequency of the Ring Oscillator to the first frequency within the range.
85- * This will only be accurate if clk_ref is currently running from an accurate source (eg the XOSC).
86- *
87- * \param low_mhz The bottom of the range to search for.
88- * \param high_mhz The top of the range to search for.
89- * \return The frequency of the Ring Oscillator within the range in MHz, or 0 if no frequency within the range is found.
90- */
91- uint rosc_find_freq_mhz (uint32_t low_mhz , uint32_t high_mhz );
92-
9353/*! \brief Measure the frequency of the Ring Oscillator
9454 * \ingroup hardware_rosc
9555 *
@@ -99,25 +59,6 @@ uint rosc_find_freq_mhz(uint32_t low_mhz, uint32_t high_mhz);
9959 */
10060uint rosc_measure_freq_khz (void );
10161
102- /*! \brief Set the output divider of the Ring Oscillator
103- * \ingroup hardware_rosc
104- *
105- * \if rp2040_specific
106- * div = 0 divides by 32
107- * div = 1-31 divides by div
108- * any other value sets div=31
109- * \endif
110- *
111- * \if rp2350_specific
112- * div = 0 divides by 128
113- * div = 1-127 divides by div
114- * any other value sets div=128
115- * \endif
116- *
117- * \param div The output divider.
118- */
119- void rosc_set_div (uint32_t div );
120-
12162inline static void rosc_clear_bad_write (void ) {
12263 hw_clear_bits (& rosc_hw -> status , ROSC_STATUS_BADWRITE_BITS );
12364}
0 commit comments