add missing extern C (#2284)

This commit is contained in:
Graham Sanderson 2025-02-17 10:53:50 -06:00 committed by GitHub
parent c691da85e5
commit 7b96a34513
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 0 deletions

View file

@ -9,6 +9,10 @@
#include "pico.h"
#ifdef __cplusplus
extern "C" {
#endif
// PICO_CONFIG: PARAM_ASSERTIONS_ENABLED_HARDWARE_BOOT_LOCK, Enable/disable assertions in the hardware_boot_lock module, type=bool, default=0, group=hardware_boot_lock
#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_BOOT_LOCK
#define PARAM_ASSERTIONS_ENABLED_HARDWARE_BOOT_LOCK 0
@ -141,4 +145,9 @@ boot_lock_t *boot_lock_init(uint lock_num);
void boot_locks_reset(void);
#endif
#ifdef __cplusplus
}
#endif
#endif

View file

@ -10,6 +10,10 @@
#include "pico.h"
#include "hardware/structs/powman.h"
#ifdef __cplusplus
extern "C" {
#endif
/** \file hardware/powman.h
* \defgroup hardware_powman hardware_powman
*
@ -272,4 +276,8 @@ static inline void powman_set_debug_power_request_ignored(bool ignored) {
powman_clear_bits(&powman_hw->dbg_pwrcfg, 0);
}
#ifdef __cplusplus
}
#endif
#endif