mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
add missing extern C (#2284)
This commit is contained in:
parent
c691da85e5
commit
7b96a34513
2 changed files with 17 additions and 0 deletions
|
|
@ -9,6 +9,10 @@
|
||||||
|
|
||||||
#include "pico.h"
|
#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
|
// 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
|
#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_BOOT_LOCK
|
||||||
#define PARAM_ASSERTIONS_ENABLED_HARDWARE_BOOT_LOCK 0
|
#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);
|
void boot_locks_reset(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -10,6 +10,10 @@
|
||||||
#include "pico.h"
|
#include "pico.h"
|
||||||
#include "hardware/structs/powman.h"
|
#include "hardware/structs/powman.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/** \file hardware/powman.h
|
/** \file hardware/powman.h
|
||||||
* \defgroup hardware_powman hardware_powman
|
* \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);
|
powman_clear_bits(&powman_hw->dbg_pwrcfg, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Loading…
Add table
Reference in a new issue