Skip to content

Commit d97267a

Browse files
UbiJCCgpsimenos
authored andcommitted
Add extern "C" around am_hal_secure_ota.h functions
1 parent a261890 commit d97267a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal/am_hal_secure_ota.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ typedef struct
210210
am_hal_ota_status_e status;
211211
} am_hal_ota_status_t;
212212

213+
#ifdef __cplusplus
214+
extern "C"
215+
{
216+
#endif //__cplusplus
217+
213218
// pOtaDesc should be start of a flash page designated for OTA Descriptor
214219
// This call will erase the flash page, which will then be incrementally populated as OTA's are added
215220
// It will also initialize the OTAPOINTER to point to this descriptor, with LSB indicating it as invalid
@@ -224,5 +229,9 @@ uint32_t am_hal_ota_add(uint32_t ui32ProgamKey, uint8_t imageMagic, uint32_t *pI
224229
// Can be called anytime (generally after coming back from reset to check the status of OTA
225230
// Will be also used by sbl_main to identify list of OTA's left for it (would show up as PENDING)
226231
uint32_t am_hal_get_ota_status(uint32_t *pOtaDesc, uint32_t maxOta, am_hal_ota_status_t *pStatus);
232+
233+
#ifdef __cplusplus
234+
}
235+
#endif //__cplusplus
227236

228237
#endif // AM_HAL_SECURE_OTA_H

0 commit comments

Comments
 (0)