From 9074be5821cfae8a0500b1b15615b0ccf2356016 Mon Sep 17 00:00:00 2001 From: UbiJCC <76826669+UbiJCC@users.noreply.github.com> Date: Sat, 6 Mar 2021 13:50:20 -0500 Subject: [PATCH] Add extern "C" around am_hal_secure_ota.h functions --- .../sdk/mcu/apollo3/hal/am_hal_secure_ota.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal/am_hal_secure_ota.h b/targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal/am_hal_secure_ota.h index 400ccbd845..a6673eba6a 100644 --- a/targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal/am_hal_secure_ota.h +++ b/targets/TARGET_Ambiq_Micro/TARGET_Apollo3/sdk/mcu/apollo3/hal/am_hal_secure_ota.h @@ -210,6 +210,11 @@ typedef struct am_hal_ota_status_e status; } am_hal_ota_status_t; +#ifdef __cplusplus +extern "C" +{ +#endif //__cplusplus + // pOtaDesc should be start of a flash page designated for OTA Descriptor // This call will erase the flash page, which will then be incrementally populated as OTA's are added // 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 // Can be called anytime (generally after coming back from reset to check the status of OTA // Will be also used by sbl_main to identify list of OTA's left for it (would show up as PENDING) uint32_t am_hal_get_ota_status(uint32_t *pOtaDesc, uint32_t maxOta, am_hal_ota_status_t *pStatus); + +#ifdef __cplusplus +} +#endif //__cplusplus #endif // AM_HAL_SECURE_OTA_H