stdlib.h File Reference
#include "pico.h"
#include "pico/stdio.h"
#include "pico/time.h"
#include "hardware/gpio.h"
#include "hardware/uart.h"
Include dependency graph for stdlib.h:

Go to the source code of this file.

Macros

#define PICO_DEFAULT_LED_PIN_INVERTED   0
 

Functions

void setup_default_uart (void)
 Set up the default UART and assign it to the default GPIO'sBy default this will use UART 0, with TX to pin GPIO 0, RX to pin GPIO 1, and the baudrate to 115200. More...
 
void set_sys_clock_48mhz (void)
 Initialise the system clock to 48MHzSet the system clock to 48MHz, and set the peripheral clock to match.
 
void set_sys_clock_pll (uint32_t vco_freq, uint post_div1, uint post_div2)
 Initialise the system clock. More...
 
bool check_sys_clock_khz (uint32_t freq_khz, uint *vco_freq_out, uint *post_div1_out, uint *post_div2_out)
 Check if a given system clock frequency is valid/attainable. More...
 
static bool set_sys_clock_khz (uint32_t freq_khz, bool required)
 Attempt to set a system clock frequency in khzNote that not all clock frequencies are possible; it is preferred that you use src/rp2_common/hardware_clocks/scripts/vcocalc.py to calculate the parameters for use with set_sys_clock_pll. More...