Fix some hardware_library dependencies (#383)

This commit is contained in:
Graham Sanderson 2021-05-11 10:34:11 -05:00 committed by GitHub
parent e57b99a652
commit 36dda1c5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -1,11 +1,13 @@
pico_simple_hardware_target(clocks) pico_simple_hardware_target(clocks)
target_link_libraries(hardware_clocks INTERFACE target_link_libraries(hardware_clocks INTERFACE
hardware_gpio
hardware_irq
hardware_resets hardware_resets
hardware_watchdog
hardware_xosc
hardware_pll hardware_pll
# not currently used by clocks.c, but sensibly bundled here # not currently used by clocks.c, but sensibly bundled here
# as changing frequencies may require upping voltage # as changing frequencies may require upping voltage
hardware_vreg hardware_vreg
hardware_watchdog
hardware_xosc
) )

View File

@ -10,7 +10,9 @@
#include "hardware/structs/iobank0.h" #include "hardware/structs/iobank0.h"
#include "hardware/irq.h" #include "hardware/irq.h"
#if LIB_PICO_BINARY_INFO
#include "pico/binary_info.h" #include "pico/binary_info.h"
#endif
static gpio_irq_callback_t _callbacks[NUM_CORES]; static gpio_irq_callback_t _callbacks[NUM_CORES];
@ -141,7 +143,9 @@ void gpio_acknowledge_irq(uint gpio, uint32_t events) {
void gpio_debug_pins_init() { void gpio_debug_pins_init() {
gpio_init_mask(DEBUG_PIN_MASK); gpio_init_mask(DEBUG_PIN_MASK);
gpio_set_dir_masked(DEBUG_PIN_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")); bi_decl_if_func_used(bi_pin_mask_with_names(DEBUG_PIN_MASK, "Debug"));
#endif
} }
void gpio_set_input_enabled(uint gpio, bool enabled) { void gpio_set_input_enabled(uint gpio, bool enabled) {