Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/rp2_common/hardware_clocks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
pico_simple_hardware_target(clocks)

target_link_libraries(hardware_clocks INTERFACE
hardware_gpio
hardware_irq
hardware_resets
hardware_watchdog
hardware_xosc
hardware_pll
# not currently used by clocks.c, but sensibly bundled here
# as changing frequencies may require upping voltage
hardware_vreg
hardware_watchdog
hardware_xosc
)
4 changes: 4 additions & 0 deletions src/rp2_common/hardware_gpio/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
#include "hardware/structs/iobank0.h"
#include "hardware/irq.h"

#if LIB_PICO_BINARY_INFO
#include "pico/binary_info.h"
#endif

static gpio_irq_callback_t _callbacks[NUM_CORES];

Expand Down Expand Up @@ -141,7 +143,9 @@ void gpio_acknowledge_irq(uint gpio, uint32_t events) {
void gpio_debug_pins_init() {
gpio_init_mask(DEBUG_PIN_MASK);
gpio_set_dir_masked(DEBUG_PIN_MASK, DEBUG_PIN_MASK);
#if LIB_PICO_BINARY_INFO
bi_decl_if_func_used(bi_pin_mask_with_names(DEBUG_PIN_MASK, "Debug"));
#endif
}

void gpio_set_input_enabled(uint gpio, bool enabled) {
Expand Down