Merge pull request #14390 from UbiJCC/patch-1

Add extern "C" around am_hal_secure_ota.h functions
pull/14401/head
Martin Kojtal 2021-03-09 10:57:50 +00:00 committed by GitHub
commit 682a5eab83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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