mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14390 from UbiJCC/patch-1
Add extern "C" around am_hal_secure_ota.h functionspull/14401/head
commit
682a5eab83
|
|
@ -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
|
||||
|
|
@ -225,4 +230,8 @@ uint32_t am_hal_ota_add(uint32_t ui32ProgamKey, uint8_t imageMagic, uint32_t *pI
|
|||
// 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue