Skip to content

Commit bc5f421

Browse files
committed
add missing extern C
1 parent 04525b8 commit bc5f421

File tree

2 files changed

+17
-0
lines changed
  • src/rp2_common

2 files changed

+17
-0
lines changed

src/rp2_common/hardware_boot_lock/include/hardware/boot_lock.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
#include "pico.h"
1111

12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
1216
// 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
1317
#ifndef PARAM_ASSERTIONS_ENABLED_HARDWARE_BOOT_LOCK
1418
#define PARAM_ASSERTIONS_ENABLED_HARDWARE_BOOT_LOCK 0
@@ -141,4 +145,9 @@ boot_lock_t *boot_lock_init(uint lock_num);
141145
void boot_locks_reset(void);
142146

143147
#endif
148+
149+
#ifdef __cplusplus
150+
}
151+
#endif
152+
144153
#endif

src/rp2_common/hardware_powman/include/hardware/powman.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include "pico.h"
1111
#include "hardware/structs/powman.h"
1212

13+
#ifdef __cplusplus
14+
extern "C" {
15+
#endif
16+
1317
/** \file hardware/powman.h
1418
* \defgroup hardware_powman hardware_powman
1519
*
@@ -272,4 +276,8 @@ static inline void powman_set_debug_power_request_ignored(bool ignored) {
272276
powman_clear_bits(&powman_hw->dbg_pwrcfg, 0);
273277
}
274278

279+
#ifdef __cplusplus
280+
}
281+
#endif
282+
275283
#endif

0 commit comments

Comments
 (0)