make gpio_acknowledge_irq inline (#2562)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run

This commit is contained in:
Graham Sanderson 2025-07-16 08:17:40 -05:00 committed by GitHub
parent e62cd02a1b
commit c7f37fc211
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

@ -253,11 +253,6 @@ void gpio_set_dormant_irq_enabled(uint gpio, uint32_t events, bool enabled) {
_gpio_set_irq_enabled(gpio, events, enabled, irq_ctrl_base);
}
void gpio_acknowledge_irq(uint gpio, uint32_t events) {
check_gpio_param(gpio);
io_bank0_hw->intr[gpio / 8] = events << (4 * (gpio % 8));
}
#define DEBUG_PIN_MASK (((1u << PICO_DEBUG_PIN_COUNT)-1) << PICO_DEBUG_PIN_BASE)
void gpio_debug_pins_init(void) {
gpio_init_mask(DEBUG_PIN_MASK);

View file

@ -570,7 +570,10 @@ static inline uint32_t gpio_get_irq_event_mask(uint gpio) {
* \note For callbacks set with \ref gpio_set_irq_enabled_with_callback, or \ref gpio_set_irq_callback, this function is called automatically.
* \param event_mask Bitmask of events to clear. See \ref gpio_irq_level for details.
*/
void gpio_acknowledge_irq(uint gpio, uint32_t event_mask);
static inline void gpio_acknowledge_irq(uint gpio, uint32_t event_mask) {
check_gpio_param(gpio);
io_bank0_hw->intr[gpio / 8] = event_mask << (4 * (gpio % 8));
}
/*! \brief Adds a raw GPIO IRQ handler for the specified GPIOs on the current core
* \ingroup hardware_gpio